npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fluidframework/eslint-config-fluid

v13.0.0

Published

Shareable ESLint config for the Fluid Framework

Readme

@fluidframework/eslint-config-fluid

This package contains a shared ESLint config used by all the packages in the Fluid Framework repo.

Requirements

  • ESLint 9 (recommended), or
  • ESLint 8.21+ with ESLINT_USE_FLAT_CONFIG=true environment variable

This package uses ESLint's flat config format exclusively. Legacy .eslintrc format is not supported.

Usage

Import the desired configuration and spread it into your eslint.config.mts:

// eslint.config.mts
import { strict } from "@fluidframework/eslint-config-fluid";
export default [...strict];

The package root exports the standard flat and server configs. For specialized cases, explicit subpaths are also available: @fluidframework/eslint-config-fluid/flat.mts and @fluidframework/eslint-config-fluid/server.mts.

ESLint 8.21+ Users

If you're using ESLint 8.21-8.x, you must enable flat config support via environment variable:

ESLINT_USE_FLAT_CONFIG=true eslint .

Or in your npm scripts:

{
	"scripts": {
		"lint": "cross-env ESLINT_USE_FLAT_CONFIG=true eslint ."
	}
}

Note: ESLint 8.x flat config support was experimental. We recommend upgrading to ESLint 9 for the best experience.

Modular Structure

The flat config is organized into a modular structure for maintainability:

eslint-config-fluid/
├── flat.mts                    # Main entry point (~30 lines)
├── library/
│   ├── constants.mts           # Shared constants (ignores, file patterns, import restrictions)
│   ├── settings.mts            # Plugin settings (import-x, jsdoc)
│   ├── rules/
│   │   ├── base.mts            # Base rules from eslint:recommended, typescript-eslint, etc.
│   │   ├── recommended.mts     # Rules for recommended config (unicorn, type safety)
│   │   └── strict.mts          # Rules for strict config (jsdoc requirements, explicit access)
│   └── configs/
│       ├── base.mts            # Base config builder with all plugins
│       ├── overrides.mts       # Shared overrides (test files, React, JS files)
│       └── factory.mts         # Config factory functions

This structure ensures:

  • No single file exceeds ~250 lines
  • Single source of truth for constants and settings
  • Each module has a single responsibility
  • Easy to understand and maintain

Configurations

Recommended

The standard named config for use in Fluid Framework libraries.

import { recommended } from "@fluidframework/eslint-config-fluid";
export default [...recommended];

This configuration is recommended for all libraries in the repository, though use of the strict config is preferred whenever reasonable.

Strict

The strictest config for use in Fluid Framework libraries. Recommended for highest code quality enforcement.

import { strict } from "@fluidframework/eslint-config-fluid";
export default [...strict];

Use of this config is encouraged for libraries with public facing APIs, and those used as external-facing examples (e.g. those mentioned on fluidframework.com).

Strict-Biome

A version of the "strict" config that disables rules covered by Biome's "recommended" lint config. Intended for projects using both ESLint and Biome.

import { strictBiome } from "@fluidframework/eslint-config-fluid";
export default [...strictBiome];

Changing the lint config

If you want to change the shared lint config (that is, this package), you need to do the following:

  1. Make the change in the config.
  2. Publish a pre-release package.
  3. Update the core packages to use the pre-release lint config.

When updating the lint config (step 1), run npm run build and commit any resulting changes.

Tracking lint config changes over time

One question that comes up often when we make changes to our lint config is, "what changed?" This applies even when we don't make any changes other than upgrading deps, because the dependency upgrade might include a new rule.

ESLint provides a way to print the config that would apply to a file (--print-config), so we use this capability to print out the applied config as a JSON file. As we make changes to the config, we can print out the config again and get a diff to review as part of a PR -- just like we do with API reports for code changes.

Scripts

| Script | Description | |--------|-------------| | build | npm run print-config | | build:readme:disabled | markdown-magic --files "**/*.md" | | clean | rimraf --glob dist "**/*.build.log" | | format | npm run prettier:fix | | prettier | prettier --check . | | prettier:fix | prettier --write . | | print-configs | tsx scripts/print-configs.ts printed-configs | | test | echo TODO: add tests in @fluidframework/eslint-config-fluid | | test:mocha | mocha "src/test/**/*.test.mts" |

See GitHub for more details on the Fluid Framework and packages within.