0.0.10 • Published 5 months ago
eslint-plugin-sherry-plugin v0.0.10
eslint-plugin-sherry-plugin
checking the correctness of imports fsd
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-sherry-plugin
:
npm install eslint-plugin-sherry-plugin --save-dev
Usage
In your configuration file, import the plugin eslint-plugin-sherry-plugin
and add sherry-plugin
to the plugins
key:
import sherry-plugin from "eslint-plugin-sherry-plugin";
export default [
{
plugins: {
sherry-plugin
}
}
];
Then configure the rules you want to use under the rules
key.
import sherry-plugin from "eslint-plugin-sherry-plugin";
export default [
{
plugins: {
sherry-plugin
},
rules: {
"sherry-plugin/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.