3.4.0 • Published 7 years ago
eslint-plugin-wyze v3.4.0
eslint-plugin-wyze
My personal ESLint rules.
Installation
There is a peerDependencies on eslint.
$ npm i --save-dev eslint-plugin-wyze eslintUsage
package.json
{
// ...
"eslintConfig": {
"plugins": [
"wyze"
]
}
}.eslintrc
{
"plugins": [
"wyze"
]
}Supported Rules
- func-call-arg-spacing: Enforces spacing inside function call arguments. (fixable)
- func-params-spacing: Enforces spacing inside function parameters. (fixable)
- max-file-length: Keep files to a maximum length.
- newline-after-export: Ensures
exportstatements are followed by a newline. (fixable) - sort-destructuring-keys: Ensures keys are sorted for object destructuring.
- sort-imports: Sorts imports by
namedanddefault. (fixable) - space-around-conditional: Always put spacing around your conditional expressions. (fixable)
Recommended Config
We support a recommended config for the rules.
Enable
{
"extends": "plugin:wyze/recommended",
"plugins": [
"wyze"
]
}Rules
{
"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"
}
}Change Log
v3.3.1 (2017-06-27)
- [
9f0504d104] - Upgrade dependencies (Neil Kistner) - [
22bea1f744] - Ensure rest property is last insort-destructuring-keysrule (Neil Kistner) - [
3f04cd2c66] - Fix bug insort-destructuring-keyswhen 10+ keys are used (Neil Kistner)
License
MIT © Neil Kistner