52 lines
1.8 KiB
Plaintext
52 lines
1.8 KiB
Plaintext
{
|
|
"root": true,
|
|
|
|
"extends": "@ljharb",
|
|
|
|
"rules": {
|
|
"callback-return": [0],
|
|
"complexity": [1],
|
|
"consistent-return": [1],
|
|
"dot-notation": [2, { "allowKeywords": false }],
|
|
"eqeqeq": [2, "allow-null"],
|
|
"func-name-matching": [0],
|
|
"global-require": [0],
|
|
"id-length": [2, { "min": 1, "max": 40 }],
|
|
"indent": [2, 2],
|
|
"max-depth": [2, 5],
|
|
"max-lines": [1],
|
|
"max-params": [2, 4],
|
|
"max-nested-callbacks": [2, 5],
|
|
"max-statements": [1, 25],
|
|
"max-statements-per-line": [2, { "max": 2 }],
|
|
"new-cap": [2, { "capIsNewExceptions": ["Call", "Construct", "CreateHTML", "GetIterator", "GetMethod", "IsCallable", "IsConstructor", "IsPromise", "IsRegExp", "IteratorClose", "IteratorComplete", "IteratorNext", "IteratorStep", "Map", "OrigNumber", "RequireObjectCoercible", "SameValue", "SameValueZero", "Set", "SpeciesConstructor", "ToInteger", "ToLength", "ToNumber", "ToObject", "ToString", "ToUint32", "TypeIsObject"] }],
|
|
"no-constant-condition": [1],
|
|
"no-continue": [1],
|
|
"no-extend-native": [2, { "exceptions": ["Set"] }],
|
|
"no-extra-parens": [1],
|
|
"no-func-assign": [1],
|
|
"no-implicit-coercion": [2, {
|
|
"boolean": false,
|
|
"number": false,
|
|
"string": true
|
|
}],
|
|
"no-invalid-this": [0],
|
|
"no-invalid-regexp": [2, { "allowConstructorFlags": ["u", "y"] }],
|
|
"no-magic-numbers": [0],
|
|
"no-native-reassign": [2, { "exceptions": ["Number", "Promise", "RegExp"] }],
|
|
"no-negated-condition": [1],
|
|
"no-plusplus": [1],
|
|
"no-restricted-syntax": [2, "DebuggerStatement", "LabeledStatement", "WithStatement"],
|
|
"no-shadow": [1],
|
|
"no-underscore-dangle": [0],
|
|
"no-unused-vars": [1, { "vars": "all", "args": "after-used" }],
|
|
"no-use-before-define": [1],
|
|
"no-useless-call": [0],
|
|
"object-curly-newline": [1],
|
|
"operator-linebreak": [2, "after"],
|
|
"sort-keys": [0],
|
|
"spaced-comment": [0],
|
|
"strict": [0]
|
|
}
|
|
}
|