eslint-plugin-minxing
A group of ESLint plugin and presets for the minxing company.
Setup
- Global tools
npm install -g yo
npm install -g generator-eslint
- Generate the eslint-plugin skeleton
- Generate the eslint-rules skeleton
References
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-minxing
:
$ npm install eslint-plugin-minxing --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eeslint-plugin-minxing
globally.
Usage
Add minxing
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"minxing"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"minxing/arrow-parens": ["error", "as-needed"],
"minxing/generator-star-spacing": ["error", "before"],
"minxing/no-array-concat": ["error"],
"minxing/no-string-charcode": ["error"],
"minxing/no-util-format": ["error"],
"minxing/require-yield": 2,
"minxing/no-console": 2
}
}
Supported Rules
- Fill in provided rules here