Skip to content

tony-show/eslint-plugin-fsd-architecture

Repository files navigation

eslint-plugin-fsd-architecture

ESlint plugin to comply with FSD (Feature Sliced Design) frontend architecture rules. FSD Architecture documentation

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-fsd-architecture:

npm install eslint-plugin-fsd-architecture --save-dev

Usage

Add fsd-architecture to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "fsd-architecture"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "fsd-architecture/rule-name": 2
    }
}

Rules

Name               Description
import-path-check Checking imports against FSD architecture rules
layer-imports Rule for check imports from layers structure of FSD architecture
public-api-imports FSD Architecture rule for public api imports

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published