eslint-plugin-fsd-checker-by-adelkkaa
v0.1.0
Published
plugin for course UlbiTV
Downloads
689
Maintainers
Readme
eslint-plugin-fsd-checker-by-adelkkaa
This plugin checks the correct use of absolute imports using FSD, using ("@/*) as an alias
plugin for course UlbiTV
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-fsd-checker-by-adelkkaa
:
npm install eslint-plugin-fsd-checker-by-adelkkaa --save-dev
Usage
In your configuration file, import the plugin eslint-plugin-fsd-checker-by-adelkkaa
and add fsd-checker
to the plugins
key:
import fsd-checker from "eslint-plugin-fsd-checker-by-adelkkaa";
export default [
{
plugins: {
fsd-checker
}
}
];
Then configure the rules you want to use under the rules
key.
import fsd-checker from "eslint-plugin-fsd-checker-by-adelkkaa";
export default [
{
plugins: {
'fsd-checker-by-adelkkaa',
},
rules: {
'fsd-checker-by-adelkkaa/fsd-path-checker': 'error',
}
}
];
Configurations
TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).