0.0.8 • Published 6 months ago
eslint-plugin-fsd-layer-import v0.0.8
eslint-plugin-fsd-layer-import
import rule for fsd architecture
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-fsd-layer-import
:
npm install eslint-plugin-fsd-layer-import --save-dev
Usage
In your configuration file, import the plugin eslint-plugin-fsd-layer-import
and add fsd-layer-import
to the plugins
key:
import fsd-layer-import from "eslint-plugin-fsd-layer-import";
export default [
{
plugins: {
fsd-layer-import
}
}
];
Then configure the rules you want to use under the rules
key.
import fsd-layer-import from "eslint-plugin-fsd-layer-import";
export default [
{
plugins: {
fsd-layer-import
},
rules: {
"fsd-layer-import/rule-name": "warn"
}
}
];
Configurations
TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).
Rules
TODO: Run eslint-doc-generator to generate the rules list.