0.1.7 • Published 7 months ago

eslint-plugin-absolute-imports-checker v0.1.7

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

eslint-plugin-absolute-imports-checker

ESLint plugin that checks absolute and relative paths with Feature Sliced Design architecture.

Plugin was created with generator-eslint.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-absolute-imports-checker:

npm install eslint-plugin-absolute-imports-checker --save-dev

Usage

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

{
  "plugins": ["absolute-imports-checker"]
}

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

{
  "rules": {
    "absolute-imports-checker/path-checker": 2
  }
}