@01taylop/eslint-plugin-wyze
v4.0.0-beta.1
Published
My personal ESLint rules.
Downloads
10
Maintainers
Readme
eslint-plugin-wyze
My personal ESLint rules.
Installation
There is a peerDependencies
on eslint
.
$ npm i --save-dev eslint-plugin-wyze eslint
Usage
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
export
statements are followed by a newline. (fixable) - sort-destructuring-keys: Ensures keys are sorted for object destructuring.
- sort-imports: Sorts imports by
named
anddefault
. (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.4.0 (2018-07-11)
- [
409135348d
] - Fixsort-imports
auto-fix with TypeScript parser (#24) (Justin Anastos) - [
ef1fb7b259
] - Add support for default values (#21) (Jakub Rożek) - [
aea583cbd3
] - Update code to reflect new lint rules (Neil Kistner) - [
8281a343f7
] - Upgrade dependencies and remove prelint command (Neil Kistner) - [
18ec073bf2
] - Drop support for Node 4 (Neil Kistner)
License
MIT © Neil Kistner