eslint-plugin-justinanastos
My personal ESLint rules.
Installation
There is a peerDependencies
on eslint@^3.16
.
$ npm i --save-dev eslint-plugin-justinanastos eslint
Usage
package.json
// ... "eslintConfig": "plugins": "justinanastos"
.eslintrc
"plugins": "justinanastos"
Supported Rules
- alpha-object-expression: Enforce alphabetized object expressions. (🔧 fixable)
- chained-semi: Enforce semicolon spacing on chained calls. (🔧 fixable)
- func-arg-line-breaks: Enforce line breaks between all call expression arguments if any arguments are split by a line break. (🔧 fixable)
- import-destructuring-spacing: Enforce whitespace in destructured import statements. (🔧 fixable)
- shortcuts: Enforce airbnb's Comparison Operators & Equality > Shortcuts. (🔧 fixable)
- switch-braches: Enforce braces around switch statements. (🔧 fixable)
Recommended Config
We support a recommended config for the rules.
Enable
"extends": "plugin:justinanastos/recommended" "plugins": "justinanastos"
License
MIT © Justin Anastos