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