| lib | rule | change | reason |
|---|---|---|---|
| prettier | trailingCommas | es5 |
extensible object properties via duplicating lines that IMHO it's worth the visual noise of a comma (current prettier default) |
| prettier | arrowParens | always |
again with the means of extensibility it is much easier to add a comma and a new param (current prettier default) |
| eslint | prefer-template | error |
let string concatenation RIP |
| eslint | dot-notation | error |
much easier to parse cognitively, leaves [''] notation for dynamic access |
| eslint | no-new-wrappers | error |
read rule link |
| eslint | no-new-object | error |
read rule link |
| eslint | consistent-return | error |
improves predictability and consistency of code |
| eslint | no-confusing-arrow | error |
improves parsing ternary logic as function output |
| eslint | prefer-spread | error |
read rule link |
| eslint | no-param-reassign | error |
one step closer to pure functions and FP best practices |
| eslint | prefer-arrow-callback | error |
read rule link |
| eslint | default-case | error |
add a default case to those switches |
| eslint | eqeqeq | error |
please no type coercion [] == false // true |
| eslint | no-lonely-if | error |
read rule link |
| eslint | radix | error |
read rule link |
| eslint | one-var | ["error", "never"] |
cleaner and declarative |
| eslint | object-shorthand | ["error", "always"] |
😍 |
| eslint | no-throw-literal | error |
read rule link |
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"] },
{ "blankLine": "always", "prev": "directive", "next": "*" },
{ "blankLine": "any", "prev": "directive", "next": "directive" }
],Fixes:
- Validation of v-slot usage
'vue/valid-v-slot': ['error', {
allowModifiers: true,
}],- add component definition name casing, kebab-case
- added prettier & prettier rules
- disabled
vue/max-attributes-per-lineas it is colliding with prettier - created
pitcher.config.jsto inherit globals from - re-ordered vue rules
- applied new eslint rules
- update README.md
- add comments to the files
- added Javascript rules
- added Vue rules
- added .eslintrc.json for the project
- published to npm version 1.0.0