|
1 | | -{ |
2 | | - "root": true, |
3 | | - "extends": [ |
4 | | - "eslint:recommended" |
5 | | - ], |
6 | | - "parserOptions": { |
7 | | - "ecmaVersion": 5 |
8 | | - }, |
9 | | - "env": { |
10 | | - "commonjs": true |
11 | | - }, |
12 | | - "globals": { |
13 | | - "Promise": true, |
14 | | - "Float32Array": true, |
15 | | - "Float64Array": true, |
16 | | - "Uint8Array": true, |
17 | | - "Int16Array": true, |
18 | | - "Int32Array": true, |
19 | | - "ArrayBuffer": true, |
20 | | - "DataView": true, |
21 | | - "SVGElement": false |
22 | | - }, |
23 | | - "rules": { |
24 | | - "no-trailing-spaces": [2], |
25 | | - "no-multiple-empty-lines": [2, {"max": 2, "maxEOF": 0}], |
26 | | - "eol-last": [2], |
27 | | - "indent": [0], |
28 | | - "indent-legacy": [2, 4, {"SwitchCase": 1}], |
29 | | - "max-len": [0, 80], |
30 | | - "brace-style": [2, "1tbs", {"allowSingleLine": true}], |
31 | | - "curly": [2, "multi-line"], |
32 | | - "camelcase": [2, {"properties": "never"}], |
33 | | - "comma-spacing": [2, {"before": false, "after": true}], |
34 | | - "comma-style": [2, "last"], |
35 | | - "semi": [2], |
36 | | - "semi-spacing": [2, {"before": false, "after": true}], |
37 | | - "key-spacing": [2, {"beforeColon": false, "afterColon": true}], |
38 | | - "keyword-spacing": [2, {"overrides": { |
39 | | - "if": {"after": false}, |
40 | | - "for": {"after": false}, |
41 | | - "while": {"after": false}, |
42 | | - "switch": {"after": false}, |
43 | | - "catch": {"after": false} |
44 | | - }}], |
45 | | - "no-spaced-func": [2], |
46 | | - "space-in-parens": [2, "never"], |
47 | | - "space-before-function-paren": [2, "never"], |
48 | | - "space-before-blocks": [2], |
49 | | - "padded-blocks": [2, "never"], |
50 | | - "spaced-comment": [2, "always"], |
51 | | - "no-tabs": [2], |
52 | | - "no-multi-spaces": [2, {"ignoreEOLComments": true}], |
53 | | - "no-whitespace-before-property": [2], |
54 | | - "no-unexpected-multiline": [2], |
55 | | - "no-floating-decimal": [2], |
56 | | - "space-infix-ops": [2, {"int32Hint": true}], |
57 | | - "quotes": [2, "single"], |
58 | | - "quote-props": ["error", "as-needed"], |
59 | | - "dot-notation": [2], |
60 | | - "dot-location": [2, "property"], |
61 | | - "operator-linebreak": [2, "after"], |
62 | | - "eqeqeq": [2], |
63 | | - "new-cap": [2, { "capIsNewExceptionPattern": "^MathJax\\.." }], |
64 | | - "no-redeclare": [2, {"builtinGlobals": true}], |
65 | | - "no-shadow": [0, {"builtinGlobals": true}], |
66 | | - "block-scoped-var": [2], |
67 | | - "no-unused-vars": [2], |
68 | | - "one-var": [2, {"initialized": "never"}], |
69 | | - "no-undef-init": [2], |
70 | | - "no-use-before-define": [2, "nofunc"], |
71 | | - "no-loop-func": [2], |
72 | | - "no-console": [0], |
73 | | - "no-unused-labels": [2], |
74 | | - "no-useless-escape": [0], |
75 | | - "func-name-matching": ["error", "always"], |
76 | | - "no-prototype-builtins": [0] |
77 | | - } |
78 | | -} |
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "extends": [ |
| 4 | + "eslint:recommended" |
| 5 | + ], |
| 6 | + "parserOptions": { |
| 7 | + "ecmaVersion": 5 |
| 8 | + }, |
| 9 | + "env": { |
| 10 | + "commonjs": true |
| 11 | + }, |
| 12 | + "globals": { |
| 13 | + "Promise": true, |
| 14 | + "Float32Array": true, |
| 15 | + "Float64Array": true, |
| 16 | + "Uint8Array": true, |
| 17 | + "Int16Array": true, |
| 18 | + "Int32Array": true, |
| 19 | + "ArrayBuffer": true, |
| 20 | + "DataView": true, |
| 21 | + "SVGElement": false |
| 22 | + }, |
| 23 | + "rules": { |
| 24 | + "no-trailing-spaces": [2], |
| 25 | + "no-multiple-empty-lines": [2, {"max": 2, "maxEOF": 0}], |
| 26 | + "eol-last": [2], |
| 27 | + "indent": [0], |
| 28 | + "indent-legacy": [2, 4, {"SwitchCase": 1}], |
| 29 | + "max-len": [0, 80], |
| 30 | + "brace-style": [2, "1tbs", {"allowSingleLine": true}], |
| 31 | + "curly": [2, "multi-line"], |
| 32 | + "camelcase": [2, {"properties": "never"}], |
| 33 | + "comma-spacing": [2, {"before": false, "after": true}], |
| 34 | + "comma-style": [2, "last"], |
| 35 | + "semi": [2], |
| 36 | + "semi-spacing": [2, {"before": false, "after": true}], |
| 37 | + "key-spacing": [2, {"beforeColon": false, "afterColon": true}], |
| 38 | + "keyword-spacing": [2, {"overrides": { |
| 39 | + "if": {"after": false}, |
| 40 | + "for": {"after": false}, |
| 41 | + "while": {"after": false}, |
| 42 | + "switch": {"after": false}, |
| 43 | + "catch": {"after": false} |
| 44 | + }}], |
| 45 | + "no-spaced-func": [2], |
| 46 | + "space-in-parens": [2, "never"], |
| 47 | + "space-before-function-paren": [2, "never"], |
| 48 | + "space-before-blocks": [2], |
| 49 | + "padded-blocks": [2, "never"], |
| 50 | + "spaced-comment": [2, "always"], |
| 51 | + "no-tabs": [2], |
| 52 | + "no-multi-spaces": [2, {"ignoreEOLComments": true}], |
| 53 | + "no-whitespace-before-property": [2], |
| 54 | + "no-unexpected-multiline": [2], |
| 55 | + "no-floating-decimal": [2], |
| 56 | + "space-infix-ops": [2, {"int32Hint": true}], |
| 57 | + "quotes": [2, "single"], |
| 58 | + "quote-props": ["error", "as-needed"], |
| 59 | + "dot-notation": [2], |
| 60 | + "dot-location": [2, "property"], |
| 61 | + "operator-linebreak": [2, "after"], |
| 62 | + "eqeqeq": [2], |
| 63 | + "new-cap": [2, { "capIsNewExceptionPattern": "^MathJax\\.." }], |
| 64 | + "no-redeclare": [2, {"builtinGlobals": true}], |
| 65 | + "no-shadow": [0, {"builtinGlobals": true}], |
| 66 | + "block-scoped-var": [2], |
| 67 | + "no-unused-vars": [2], |
| 68 | + "one-var": [2, {"initialized": "never"}], |
| 69 | + "no-undef-init": [2], |
| 70 | + "no-use-before-define": [2, "nofunc"], |
| 71 | + "no-loop-func": [2], |
| 72 | + "no-console": [0], |
| 73 | + "no-unused-labels": [2], |
| 74 | + "no-useless-escape": [0], |
| 75 | + "func-name-matching": ["error", "always"], |
| 76 | + "no-prototype-builtins": [0] |
| 77 | + } |
| 78 | +} |
0 commit comments