|
1 | 1 | module.exports = {
|
2 |
| - env: { |
3 |
| - browser: true, |
4 |
| - es6: true, |
5 |
| - node: true, |
6 |
| - }, |
7 |
| - extends: [ |
8 |
| - 'airbnb-base', |
9 |
| - ], |
10 |
| - globals: { |
11 |
| - Atomics: 'readonly', |
12 |
| - SharedArrayBuffer: 'readonly', |
13 |
| - }, |
14 |
| - parserOptions: { |
15 |
| - ecmaVersion: 5, |
16 |
| - sourceType: "script", |
17 |
| - }, |
18 |
| - rules: { |
19 |
| - "strict": ["error", "function"], |
20 |
| - "no-cond-assign": ["error", "except-parens"], |
21 |
| - "no-var": "off", |
22 |
| - "vars-on-top": "off", |
23 |
| - "prefer-destructuring": "off", |
24 |
| - "prefer-spread": "off", |
25 |
| - "prefer-template": "off", |
26 |
| - "prefer-arrow-callback": "off", |
27 |
| - "comma-dangle": "off", |
28 |
| - "object-shorthand": "off", |
29 |
| - "no-throw-literal": "off", |
30 |
| - "no-param-reassign": "off", |
31 |
| - "no-bitwise": "off", |
32 |
| - "camelcase": "off", |
33 |
| - "dot-notation": "off", |
34 |
| - "indent": ["error", 4, { "SwitchCase": 1 }], |
35 |
| - "quotes": ["error", "double"], |
36 |
| - }, |
| 2 | + env: { |
| 3 | + browser: true, |
| 4 | + es6: true, |
| 5 | + node: true |
| 6 | + }, |
| 7 | + extends: [ |
| 8 | + "airbnb-base" |
| 9 | + ], |
| 10 | + globals: { |
| 11 | + Atomics: "readonly", |
| 12 | + SharedArrayBuffer: "readonly" |
| 13 | + }, |
| 14 | + ignorePatterns: [ |
| 15 | + "/dist/", |
| 16 | + "/examples/", |
| 17 | + "/node_modules/", |
| 18 | + "/out/", |
| 19 | + "/src/shell-post.js", |
| 20 | + "/src/shell-pre.js", |
| 21 | + "/test/", |
| 22 | + "!/.eslintrc.js" |
| 23 | + ], |
| 24 | + parserOptions: { |
| 25 | + ecmaVersion: 5, |
| 26 | + sourceType: "script" |
| 27 | + }, |
| 28 | + rules: { |
| 29 | + camelcase: "off", |
| 30 | + "comma-dangle": "off", |
| 31 | + "dot-notation": "off", |
| 32 | + indent: ["error", 4, { SwitchCase: 1 }], |
| 33 | + "no-bitwise": "off", |
| 34 | + "no-cond-assign": ["error", "except-parens"], |
| 35 | + "no-param-reassign": "off", |
| 36 | + "no-throw-literal": "off", |
| 37 | + "no-var": "off", |
| 38 | + "object-shorthand": "off", |
| 39 | + "prefer-arrow-callback": "off", |
| 40 | + "prefer-destructuring": "off", |
| 41 | + "prefer-spread": "off", |
| 42 | + "prefer-template": "off", |
| 43 | + quotes: ["error", "double"], |
| 44 | + strict: ["error", "function"], |
| 45 | + "vars-on-top": "off" |
| 46 | + } |
37 | 47 | };
|
0 commit comments