1 | {
|
2 | "root": true,
|
3 |
|
4 | "extends": "@ljharb",
|
5 |
|
6 | "ignorePatterns": [
|
7 | "Gruntfile.js",
|
8 | "*.min.js",
|
9 | ],
|
10 |
|
11 | "rules": {
|
12 | "array-bracket-newline": [0],
|
13 | "array-element-newline": [0],
|
14 | "callback-return": [0],
|
15 | "complexity": [1],
|
16 | "consistent-return": [1],
|
17 | "eqeqeq": [2, "allow-null"],
|
18 | "func-name-matching": [0],
|
19 | "global-require": [0],
|
20 | "id-length": [2, { "min": 1, "max": 40 }],
|
21 | "indent": [2, 2],
|
22 | "max-depth": [2, 5],
|
23 | "max-len": 0,
|
24 | "max-lines": [1],
|
25 | "max-lines-per-function": [0],
|
26 | "max-params": [2, 4],
|
27 | "max-statements": [1, 25],
|
28 | "max-statements-per-line": [2, { "max": 2 }],
|
29 | "multiline-comment-style": [0],
|
30 | "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"] }],
|
31 | "no-constant-condition": [1],
|
32 | "no-extend-native": [2, { "exceptions": ["Set"] }],
|
33 | "no-extra-parens": 0,
|
34 | "no-implicit-coercion": [2, {
|
35 | "boolean": false,
|
36 | "number": false,
|
37 | "string": true
|
38 | }],
|
39 | "no-invalid-this": [0],
|
40 | "no-loss-of-precision": [1],
|
41 | "no-native-reassign": [2, { "exceptions": ["Number", "Promise", "RegExp"] }],
|
42 | "no-negated-condition": [1],
|
43 | "no-param-reassign": [1],
|
44 | "no-plusplus": [1],
|
45 | "no-restricted-syntax": [2, "DebuggerStatement", "LabeledStatement", "WithStatement"],
|
46 | "no-shadow": [1],
|
47 | "no-underscore-dangle": [0],
|
48 | "no-unused-vars": [1, { "vars": "all", "args": "after-used" }],
|
49 | "no-use-before-define": [1],
|
50 | "no-useless-call": [0],
|
51 | "object-curly-newline": [1],
|
52 | "sort-keys": [0],
|
53 | "spaced-comment": [0],
|
54 | "strict": [0]
|
55 | },
|
56 | "overrides": [
|
57 | {
|
58 | "files": "test/**",
|
59 | "env": {
|
60 | "browser": true,
|
61 | "mocha": true,
|
62 | },
|
63 | "globals": {
|
64 | "assert": false,
|
65 | "expect": false,
|
66 | "chai": false,
|
67 | },
|
68 | "rules": {
|
69 | "array-callback-return": 0,
|
70 | "func-name-matching": 0,
|
71 | "max-lines-per-function": 0,
|
72 | "max-statements-per-line": [2, { "max": 2 }],
|
73 | "no-restricted-properties": 1,
|
74 | "symbol-description": 0,
|
75 | "prefer-promise-reject-errors": 0,
|
76 | "consistent-return": 0,
|
77 | },
|
78 | },
|
79 | {
|
80 | "files": "test-sham/**",
|
81 | "env": {
|
82 | "mocha": true,
|
83 | },
|
84 | "globals": {
|
85 | "expect": false,
|
86 | },
|
87 | "rules": {
|
88 | "max-nested-callbacks": [2, 5],
|
89 | },
|
90 | }
|
91 | ]
|
92 | }
|