$ cnpm install eslint-plugin-wyze
My personal ESLint rules.
There is a peerDependencies
on eslint
.
$ npm i --save-dev eslint-plugin-wyze eslint
{
// ...
"eslintConfig": {
"plugins": [
"wyze"
]
}
}
{
"plugins": [
"wyze"
]
}
export
statements are followed by a newline. (fixable)named
and default
. (fixable)We support a recommended config for the rules.
{
"extends": "plugin:wyze/recommended",
"plugins": [
"wyze"
]
}
{
"rules": {
"wyze/func-call-arg-spacing": "error",
"wyze/func-params-spacing": "error",
"wyze/max-file-length": "error",
"wyze/newline-after-export": "error",
"wyze/sort-destructuring-keys": "error",
"wyze/sort-imports": "error",
"wyze/space-around-conditional": "error"
}
}
9f0504d104
] - Upgrade dependencies (Neil Kistner)22bea1f744
] - Ensure rest property is last in sort-destructuring-keys
rule (Neil Kistner)3f04cd2c66
] - Fix bug in sort-destructuring-keys
when 10+ keys are used (Neil Kistner)MIT © Neil Kistner
Copyright 2014 - 2016 © taobao.org |