-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Looking at the over 260 ESLint rules, there have been a lot of potenchally useful ones implemented since this .eslintrc file was created. It would probably be good to add some them to this repository and your other add-ons.
Here are the rules I would specifically suggest adding (listed in the same order as the documentation):
// Problems
"array-callback-return": "error",
"no-await-in-loop": "error",
"no-constant-binary-expression": "error",
"no-promise-executor-return": "error",
"no-template-curly-in-string": "error",
"no-unmodified-loop-condition": "error",
"no-unreachable-loop": "error",
// Suggestions
"default-param-last": "warn",
"func-names": "warn",
"init-declarations": "warn",
"no-caller": "warn",
"no-else-return": "warn",
"no-extend-native": "warn",
"no-extra-bind": "warn",
"no-extra-label": "warn",
"no-floating-decimal": "warn",
"no-implicit-coercion": "warn",
"no-invalid-this": "warn",
"no-lonely-if": "warn",
"no-new": "warn",
"no-new-func": "error",
"no-octal-escape": "warn",
"no-return-assign": "warn",
"no-return-await": "warn",
"no-undef-init": "warn",
"no-undefined": "warn",
"no-unneeded-ternary": "warn",
"no-useless-computed-key": "warn",
"no-useless-concat": "warn",
"no-useless-rename": "warn",
"no-useless-return": "warn",
"operator-assignment": "warn",
"prefer-exponentiation-operator": "warn",
"prefer-named-capture-group": "warn",
"prefer-object-has-own": "warn",
"prefer-object-spread": "warn",
"prefer-regex-literals": "warn",
"quote-props": ["error", "as-needed"],
"require-unicode-regexp": "warn",
"strict": "warn",
// Layout & Formatting
"block-spacing": "warn",
"comma-dangle": "warn",
"comma-spacing": "warn",
"comma-style": "warn",
"computed-property-spacing": "warn",
"func-call-spacing": "warn",
"key-spacing": "warn",
"keyword-spacing": "warn",
"no-extra-parens": "warn",
"no-trailing-spaces": "warn",
"no-whitespace-before-property": "warn",
"rest-spread-spacing": "warn",
"space-before-blocks": "warn",
"space-in-parens": "warn",
"space-infix-ops": "warn",
"space-unary-ops": "warn",
"switch-colon-spacing": "warn"Many of these would have automatically caught things you have mentioned in your reviews of my various PRs. Using these additional rules to check Unicodify and the Awesome Emoji Picker found a few mostly minor issues.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request