UNPKG

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