You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.7 KiB
69 lines
1.7 KiB
4 years ago
|
{
|
||
|
"root": true,
|
||
|
|
||
|
"extends": "@ljharb",
|
||
|
|
||
|
"rules": {
|
||
|
"array-bracket-newline": 0,
|
||
|
"object-curly-newline": 0,
|
||
|
"camelcase": [0],
|
||
|
"complexity": [0],
|
||
|
"eqeqeq": [2, "allow-null"],
|
||
|
"func-name-matching": 0,
|
||
|
"id-length": [2, { "min": 1, "max": 40 }],
|
||
|
"indent": [2, 4],
|
||
|
"max-len": [2, 120, 4, {
|
||
|
"ignoreUrls": true,
|
||
|
"ignoreComments": true,
|
||
|
"ignoreRegExpLiterals": true,
|
||
|
"ignoreStrings": true,
|
||
|
"ignoreTemplateLiterals": true
|
||
|
}],
|
||
|
"max-lines": 0,
|
||
|
"max-lines-per-function": 0,
|
||
|
"max-nested-callbacks": [2, 5],
|
||
|
"max-params": [2, 7],
|
||
|
"max-statements": [1, 30],
|
||
|
"new-cap": [2, { "capIsNewExceptions": ["ToInteger", "ToObject", "ToPrimitive", "ToUint32"] }],
|
||
|
"no-constant-condition": [1],
|
||
|
"no-extend-native": [2, {"exceptions": ["Date", "Error", "RegExp"]}],
|
||
|
"no-extra-parens": [0],
|
||
|
"no-extra-semi": [1],
|
||
|
"no-func-assign": [1],
|
||
|
"no-implicit-coercion": [2, {
|
||
|
"boolean": false,
|
||
|
"number": false,
|
||
|
"string": true
|
||
|
}],
|
||
|
"no-invalid-this": [0],
|
||
|
"no-magic-numbers": [0],
|
||
|
"no-native-reassign": [2, {"exceptions": ["Date", "parseInt"]}],
|
||
|
"no-new-func": [1],
|
||
|
"no-plusplus": [1],
|
||
|
"no-restricted-syntax": [2, "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
|
||
|
"no-shadow": [1],
|
||
|
"no-unused-vars": [1, { "vars": "all", "args": "after-used" }],
|
||
|
"operator-linebreak": [2, "before"],
|
||
|
"quote-props": [1, "as-needed", { "keywords": true }],
|
||
|
"sort-keys": [0],
|
||
|
"spaced-comment": [0],
|
||
|
"strict": [0],
|
||
|
|
||
|
"multiline-comment-style": 1,
|
||
|
},
|
||
|
|
||
|
"overrides": [
|
||
|
{
|
||
|
"files": "tests/**",
|
||
|
"rules": {
|
||
|
"max-len": 0,
|
||
|
"max-lines": 0,
|
||
|
"max-statements-per-line": [2, { "max": 2 }],
|
||
|
},
|
||
|
"env": {
|
||
|
"jasmine": true
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
}
|