eslint-plugin-fsd-architecture-checker

0.0.21 • Public • Published

eslint-plugin-fsd-architecture-checker

checks import paths according to FSD architecture GitHub: https://github.com/viacheslavorlov/eslint-plugin-fsd-architecture-checker

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-fsd-architecture-checker:

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

Usage

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

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

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

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

Rules

If you have trouble with opening this rules documentation visit GitHub: https://github.com/viacheslavorlov/eslint-plugin-fsd-architecture-checker

Name Description
import-path-checker checks if modules imported according to FSD rules
public-api-import imports from other modules should be only from public api
layers-import-order.md
force make imports only from lower layers

Package Sidebar

Install

npm i eslint-plugin-fsd-architecture-checker

Weekly Downloads

1

Version

0.0.21

License

ISC

Unpacked Size

26.9 kB

Total Files

14

Last publish

Collaborators

  • viacheslav-orlov