eslint-plugin-path-control

0.0.4 • Public • Published

eslint-plugin-path-control

This is a plugin for checking and fixing paths according to the FSD architecture

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-path-control:

npm install eslint-plugin-path-control --save-dev

Usage

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

{
    "plugins": [
        "path-control"
    ]
}

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

{
    "rules": {
        "path-control/fsd-path": 2
    }
}

Rules

TODO: Run eslint-doc-generator to generate the rules list.

Package Sidebar

Install

npm i eslint-plugin-path-control

Weekly Downloads

1

Version

0.0.4

License

ISC

Unpacked Size

6.33 kB

Total Files

7

Last publish

Collaborators

  • rauanio