Skip to content

ESLint plugin for projects based on FSD architecture principles

Notifications You must be signed in to change notification settings

roman-adamchik/eslint-plugin-fsd-slivki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-fsd-slivki

ESLint plugin for projects based on FSD architecture principles

Github for docs and contribution - https://github.com/lumpendog/eslint-plugin-fsd-slivki

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-fsd-slivki:

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

Usage

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

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

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

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

Rules

Plugin is in development. Only 2 rules are working currently. No auto-fix available yet.

Name Description
path-check-layers Importing modules from upper layers is forbidden in FSD
path-check-public-api Check for using only public API paths for importing modules
path-check-relative Check import paths to be relative inside one slice

About

ESLint plugin for projects based on FSD architecture principles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published