My personal ESLint rules.
There is a peerDependencies
on eslint@^3.16
.
$ npm i --save-dev eslint-plugin-justinanastos eslint
{
// ...
"eslintConfig": {
"plugins": [
"justinanastos"
]
}
}
{
"plugins": [
"justinanastos"
]
}
- 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-braces: Enforce braces around switch statements. (🔧 fixable)
We support a recommended config for the rules.
{
"extends": "plugin:justinanastos/recommended",
"plugins": [
"justinanastos"
]
}
MIT © Justin Anastos