ESLint 9+ plugin for enforcing Feature-Sliced Design (FSD) architecture rules with Flat Config support. Current stable version is 1.2.1, regularly released on npm. Provides presets (recommended, strict, base) and individual rules for layer boundaries, public API discipline, relative import hygiene, UI/business-logic separation, and import ordering. Built for modern ESLint, works with TypeScript, path aliases, custom folder naming, and tsconfig mapping. Key differentiator: opinionated FSD rules with flexible configuration and real file resolution.
npm install eslint-plugin-fsd-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import the plugin and use the recommended preset with an additional rule override in ESLint 9 flat config.
Use import syntax with an ESLint 9 flat config. Do not use require().
Upgrade ESLint to version 9 or later.
Update to v1.0.11 or later to use presets as flat config arrays.
Update to v1.2.1 for the test infrastructure fix.
Update to v1.0.12 or later for ESLint v10 readiness.
Change to import syntax: import fsdPlugin from 'eslint-plugin-fsd-lint';
Use the new flat config: export default [fsdPlugin.configs.recommended];
Use the preset directly as a flat config array item, do not destructure .rules.
Run npm install --save-dev eslint-plugin-fsd-lint and ensure it is in the project's dependencies.