UNPKG

1.57 kBPlain TextView Raw
1{
2 "root": true,
3
4 "extends": "@ljharb",
5
6 "rules": {
7 "array-bracket-newline": 0,
8 "object-curly-newline": 0,
9 "camelcase": [0],
10 "complexity": [0],
11 "eqeqeq": [2, "allow-null"],
12 "func-name-matching": 0,
13 "id-length": [2, { "min": 1, "max": 40 }],
14 "indent": [2, 4],
15 "max-lines": 0,
16 "max-lines-per-function": 0,
17 "max-nested-callbacks": [2, 5],
18 "max-params": [2, 7],
19 "max-statements": [1, 30],
20 "new-cap": [2, { "capIsNewExceptions": ["ToInteger", "ToObject", "ToPrimitive", "ToUint32"] }],
21 "no-constant-condition": [1],
22 "no-extend-native": [2, {"exceptions": ["Date", "Error", "RegExp"]}],
23 "no-extra-parens": [0],
24 "no-extra-semi": [1],
25 "no-func-assign": [1],
26 "no-implicit-coercion": [2, {
27 "boolean": false,
28 "number": false,
29 "string": true,
30 "disallowTemplateShorthand": false,
31 "allow": []
32 }],
33 "no-invalid-this": [0],
34 "no-magic-numbers": [0],
35 "no-native-reassign": [2, {"exceptions": ["Date", "parseInt"]}],
36 "no-new-func": [1],
37 "no-plusplus": [1],
38 "no-restricted-syntax": [2, "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
39 "no-shadow": [1],
40 "no-unused-vars": [1, { "vars": "all", "args": "after-used" }],
41 "operator-linebreak": [2, "before"],
42 "sort-keys": [0],
43 "spaced-comment": [0],
44 "strict": [0],
45
46 "multiline-comment-style": 0,
47 },
48
49 "overrides": [
50 {
51 "files": "tests/**",
52 "rules": {
53 "max-len": 0,
54 "max-lines": 0,
55 "max-statements-per-line": [2, { "max": 2 }],
56 },
57 "env": {
58 "jasmine": true
59 },
60 },
61 ],
62}