Additional rules of ESLint for me.
- Node v0.10, v0.12, v4 or later.
- ESLint v2.0.0 or later.
npm install --save-dev eslint eslint-plugin-mysticatea
.eslintrc
{
"plugins": [
"mysticatea"
],
"rules": {
"mysticatea/arrow-parens": "error",
"mysticatea/block-scoped-var": "error",
"mysticatea/no-literal-call": "error",
"mysticatea/no-use-ignored-vars": "error",
"mysticatea/no-useless-rest-spread": "error",
"arrow-parens": "off",
"block-scoped-var": "off",
"no-redeclare": "off"
}
}
- arrow-parens - Enforce parens of argument lists (excludes too redundant parens) (fixable).
- block-scoped-var - The complete emulation of block-scoping for
var
. - no-literal-call - Disallow a call of a literal.
- no-use-ignored-vars - Disallow a use of ignored variables.
- no-useless-rest-spread - Disallow unnecessary rest/spread operators (fixable).