eslint-plugin-learn-plugins
v0.0.2
Published
learn how 2 create plugins
Maintainers
Readme
eslint-plugin-learn-plugins
learn how 2 create plugins
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-learn-plugins:
npm install eslint-plugin-learn-plugins --save-devUsage
In your configuration file, import the plugin eslint-plugin-learn-plugins and add learn-plugins to the plugins key:
import { defineConfig } from "eslint/config";
import learn-plugins from "eslint-plugin-learn-plugins";
export default defineConfig([
{
plugins: {
learn-plugins
}
}
]);Then configure the rules you want to use under the rules key.
import { defineConfig } from "eslint/config";
import learn-plugins from "eslint-plugin-learn-plugins";
export default defineConfig([
{
plugins: {
learn-plugins
},
rules: {
"learn-plugins/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.
