0.0.1 • Published 8 months ago
eslint-plugin-wup-fsd v0.0.1
eslint-plugin-wup-fsd
Eslint plugin with rules for correct FSD operation
Installation
You'll first need to install ESLint:
npm i -D eslint
Next, install eslint-plugin-wup-fsd
:
npm i -D eslint-plugin-wup-fsd
Usage
In your configuration file, import the plugin eslint-plugin-wup-fsd
and add wup-fsd
to the plugins
key:
import eslintFsd from "eslint-plugin-wup-fsd";
export default [
{
plugins: {
'wup-fsd': eslintFsd,
}
}
];
Then configure the rules you want to use under the rules
key.
import eslintFsd from "eslint-plugin-wup-fsd";
export default [
{
plugins: {
'wup-fsd': eslintFsd,
},
rules: {
"wup-fsd/rule-name": "warn"
}
}
];