@vnva/eslint-plugin
My eslint rules
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install @vnva/eslint-plugin
:
npm install @vnva/eslint-plugin --save-dev
Usage
Add @vnva/eslint-plugin
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["@vnva/eslint-plugin"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@vnva/rule-name": 2
}
}
Rules
--fix
CLI option.
Name | Description | |
---|---|---|
no-snake-case-identifiers | Do not use snake_case, use camelCase |