|
1 | 1 | { |
2 | | - "root": true, |
3 | | - "extends": ["airbnb-base", "plugin:eslint-plugin/recommended"], |
4 | | - "plugins": ["eslint-plugin"], |
5 | | - "env": { |
6 | | - "es6": true, |
7 | | - "node": true |
8 | | - }, |
9 | | - "parserOptions": { |
10 | | - "ecmaVersion": 6, |
11 | | - "ecmaFeatures": { |
12 | | - "jsx": true |
13 | | - }, |
14 | | - "sourceType": "script", |
15 | | - }, |
16 | | - "ignorePatterns": [ |
17 | | - "coverage/", |
18 | | - ".nyc_output/", |
19 | | - ], |
20 | | - "rules": { |
21 | | - "comma-dangle": [2, "always-multiline"], |
22 | | - "object-shorthand": [2, "always", { |
23 | | - "ignoreConstructors": false, |
24 | | - "avoidQuotes": false, // this is the override vs airbnb |
25 | | - }], |
26 | | - "max-len": [2, 120, { |
27 | | - "ignoreStrings": true, |
28 | | - "ignoreTemplateLiterals": true, |
29 | | - "ignoreComments": true, |
30 | | - }], |
31 | | - "consistent-return": 0, |
| 2 | + "root": true, |
| 3 | + "extends": ["airbnb-base", "plugin:eslint-plugin/recommended"], |
| 4 | + "plugins": ["eslint-plugin"], |
| 5 | + "env": { |
| 6 | + "es6": true, |
| 7 | + "node": true |
| 8 | + }, |
| 9 | + "parserOptions": { |
| 10 | + "ecmaVersion": 6, |
| 11 | + "ecmaFeatures": { |
| 12 | + "jsx": true |
| 13 | + }, |
| 14 | + "sourceType": "script", |
| 15 | + }, |
| 16 | + "ignorePatterns": [ |
| 17 | + "coverage/", |
| 18 | + ".nyc_output/", |
| 19 | + ], |
| 20 | + "rules": { |
| 21 | + "comma-dangle": [2, "always-multiline"], |
| 22 | + "object-shorthand": [2, "always", { |
| 23 | + "ignoreConstructors": false, |
| 24 | + "avoidQuotes": false, // this is the override vs airbnb |
| 25 | + }], |
| 26 | + "max-len": [2, 120, { |
| 27 | + "ignoreStrings": true, |
| 28 | + "ignoreTemplateLiterals": true, |
| 29 | + "ignoreComments": true, |
| 30 | + }], |
| 31 | + "consistent-return": 0, |
32 | 32 |
|
33 | | - "prefer-destructuring": [2, { "array": false, "object": false }, { "enforceForRenamedProperties": false }], |
34 | | - "prefer-object-spread": 0, // until node 8 is required |
35 | | - "prefer-rest-params": 0, // until node 6 is required |
36 | | - "prefer-spread": 0, // until node 6 is required |
37 | | - "function-call-argument-newline": 1, // TODO: enable |
38 | | - "function-paren-newline": 0, |
39 | | - "no-plusplus": [2, {"allowForLoopAfterthoughts": true}], |
40 | | - "no-param-reassign": 1, |
41 | | - "no-restricted-syntax": [2, { |
42 | | - "selector": "ObjectPattern", |
43 | | - "message": "Object destructuring is not compatible with Node v4" |
44 | | - }], |
45 | | - "strict": [2, "safe"], |
46 | | - "valid-jsdoc": [2, { |
47 | | - "requireReturn": false, |
48 | | - "requireParamDescription": false, |
49 | | - "requireReturnDescription": false, |
50 | | - }], |
| 33 | + "prefer-destructuring": [2, { "array": false, "object": false }, { "enforceForRenamedProperties": false }], |
| 34 | + "prefer-object-spread": 0, // until node 8 is required |
| 35 | + "prefer-rest-params": 0, // until node 6 is required |
| 36 | + "prefer-spread": 0, // until node 6 is required |
| 37 | + "function-call-argument-newline": 1, // TODO: enable |
| 38 | + "function-paren-newline": 0, |
| 39 | + "no-plusplus": [2, {"allowForLoopAfterthoughts": true}], |
| 40 | + "no-param-reassign": 1, |
| 41 | + "no-restricted-syntax": [2, { |
| 42 | + "selector": "ObjectPattern", |
| 43 | + "message": "Object destructuring is not compatible with Node v4" |
| 44 | + }], |
| 45 | + "strict": [2, "safe"], |
| 46 | + "valid-jsdoc": [2, { |
| 47 | + "requireReturn": false, |
| 48 | + "requireParamDescription": false, |
| 49 | + "requireReturnDescription": false, |
| 50 | + }], |
51 | 51 |
|
52 | | - "eslint-plugin/consistent-output": 0, |
53 | | - "eslint-plugin/require-meta-docs-description": [2, { "pattern": "^(Enforce|Require|Disallow)" }], |
54 | | - "eslint-plugin/require-meta-schema": 0, |
55 | | - "eslint-plugin/require-meta-type": 0 |
56 | | - }, |
57 | | - "overrides": [ |
58 | | - { |
59 | | - "files": "tests/**", |
60 | | - "rules": { |
61 | | - "no-template-curly-in-string": 1, |
62 | | - }, |
63 | | - }, |
64 | | - { |
65 | | - "files": "markdown.config.js", |
66 | | - "rules": { |
67 | | - "no-console": 0, |
68 | | - }, |
69 | | - }, |
70 | | - { |
71 | | - "files": ".github/workflows/*.js", |
72 | | - "parserOptions": { |
73 | | - "ecmaVersion": 2019, |
74 | | - }, |
75 | | - "rules": { |
76 | | - "camelcase": 0, |
77 | | - "no-console": 0, |
78 | | - "no-restricted-syntax": 0, |
79 | | - }, |
80 | | - }, |
81 | | - ], |
82 | | -} |
| 52 | + "eslint-plugin/consistent-output": 0, |
| 53 | + "eslint-plugin/require-meta-docs-description": [2, { "pattern": "^(Enforce|Require|Disallow)" }], |
| 54 | + "eslint-plugin/require-meta-schema": 0, |
| 55 | + "eslint-plugin/require-meta-type": 0 |
| 56 | + }, |
| 57 | + "overrides": [ |
| 58 | + { |
| 59 | + "files": "tests/**", |
| 60 | + "rules": { |
| 61 | + "no-template-curly-in-string": 1, |
| 62 | + }, |
| 63 | + }, |
| 64 | + { |
| 65 | + "files": "markdown.config.js", |
| 66 | + "rules": { |
| 67 | + "no-console": 0, |
| 68 | + }, |
| 69 | + }, |
| 70 | + { |
| 71 | + "files": ".github/workflows/*.js", |
| 72 | + "parserOptions": { |
| 73 | + "ecmaVersion": 2019, |
| 74 | + }, |
| 75 | + "rules": { |
| 76 | + "camelcase": 0, |
| 77 | + "no-console": 0, |
| 78 | + "no-restricted-syntax": 0, |
| 79 | + }, |
| 80 | + }, |
| 81 | + ], |
| 82 | + } |
0 commit comments