@sumerian/eslint-config
v0.1.2
Published
ESLint config by Sumerian for Sumerians
Downloads
1
Readme
@sumerian/eslint-config
ESLint config by Sumerian for Sumerians
Installation
npm i --D eslint @sumerian/eslint-config
This package only contains rules. It doesn't modify env, parserOptions, etc. We recommend adding the following .eslintrc.json
in your project root:
{
"env": {
"browser": true,
"node": true,
"es2020": true
},
"extends": [
"eslint:recommended",
"@sumerian"
],
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
}
}
Rules worth reviewing
eslint:recommended
rules turned off
Ignored rules
The developer who configured our current ESLint version didn't know what this rules mean or didn't have a strong opinion. Ignored rules included in eslint:recommended
aren't overwritten, so they're still available.
no-control-regex
no-irregular-whitespace
no-misleading-character-class
no-unreachable-loop
no-useless-backreference
consistent-return
no-div-regex
no-unused-expressions
no-void
no-with
prefer-named-capture-group
prefer-regex-literals
require-unicode-regexp
wrap-iife
func-names
func-style
function-paren-newline
jsx-quotes
new-parens
newline-per-chained-call
one-var
one-var-declaration-per-line
padding-line-between-statements
unicode-bom
no-new-symbol
require-yield
symbol-description
yield-star-spacing
Other observations
accessor-pairs
has the default options. It doesn't warn for getters without setters.class-methods-use-this
is ignored because we don't allow usage ofclass
.max-classes-per-file
is ignored because we don't allow usage ofclass
.no-constructor-return
is ignored because we don't allow usage ofclass
.no-eq-null
is ignored becauseeqeqeq
is set tosmart
.