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