|
1 | 1 | module.exports = { |
2 | | - "extends": [ |
3 | | - "ash-nazg/sauron", |
4 | | - "plugin:node/recommended-script", |
5 | | - "plugin:cypress/recommended" |
| 2 | + "parser": "babel-eslint", |
| 3 | + "extends": [ |
| 4 | + "ash-nazg/sauron", |
| 5 | + "plugin:node/recommended-script", |
| 6 | + "plugin:cypress/recommended" |
| 7 | + ], |
| 8 | + "env": { |
| 9 | + "es6": true |
| 10 | + }, |
| 11 | + "settings": { |
| 12 | + "polyfills": [ |
| 13 | + ] |
| 14 | + }, |
| 15 | + "globals": { |
| 16 | + "Atomics": "readonly", |
| 17 | + "SharedArrayBuffer": "readonly" |
| 18 | + }, |
| 19 | + "overrides": [{ |
| 20 | + files: ["cypress/integration/**/*.js", "test/**"], |
| 21 | + extends: [ |
| 22 | + 'plugin:chai-expect/recommended', |
| 23 | + 'plugin:chai-friendly/recommended' |
6 | 24 | ], |
7 | | - "plugins": [ |
8 | | - "pug" |
9 | | - ], |
10 | | - "env": { |
11 | | - "es6": true |
| 25 | + rules: { |
| 26 | + } |
| 27 | + }, { |
| 28 | + files: ['test/**'], |
| 29 | + env: { |
| 30 | + node: true |
| 31 | + }, |
| 32 | + globals: { |
| 33 | + __dirname: true |
12 | 34 | }, |
13 | | - "settings": { |
14 | | - "polyfills": [ |
15 | | - ] |
| 35 | + extends: [ |
| 36 | + "plugin:node/recommended-module" |
| 37 | + ] |
| 38 | + }, { |
| 39 | + files: [ |
| 40 | + "app/public/js/views/bogus.js", |
| 41 | + "cypress/integration/unit.js", |
| 42 | + "cypress/support/index.js" |
| 43 | + ], |
| 44 | + parserOptions: { |
| 45 | + "ecmaVersion": 2018, |
| 46 | + "sourceType": "module" |
16 | 47 | }, |
17 | | - "globals": { |
18 | | - "Atomics": "readonly", |
19 | | - "SharedArrayBuffer": "readonly" |
| 48 | + }, { |
| 49 | + files: ["*.md"], |
| 50 | + rules: { |
| 51 | + 'node/no-unsupported-features/es-syntax': 'off', |
| 52 | + 'node/no-unpublished-import': 'off' |
20 | 53 | }, |
21 | | - "overrides": [{ |
22 | | - files: ["cypress/integration/**/*.js"], |
23 | | - extends: [ |
24 | | - 'plugin:chai-expect/recommended', |
25 | | - 'plugin:chai-friendly/recommended' |
26 | | - ], |
27 | | - rules: { |
28 | | - } |
29 | | - }, { |
30 | | - files: [ |
31 | | - "app/public/js/views/bogus.js", |
32 | | - "cypress/integration/unit.js", |
33 | | - "cypress/support/index.js" |
34 | | - ], |
35 | | - parserOptions: { |
36 | | - "ecmaVersion": 2018, |
37 | | - "sourceType": "module" |
38 | | - }, |
39 | | - }, { |
40 | | - files: ["*.md"], |
41 | | - rules: { |
42 | | - 'node/no-unsupported-features/es-syntax': 'off', |
43 | | - 'node/no-unpublished-import': 'off' |
44 | | - }, |
45 | | - parserOptions: { |
46 | | - "ecmaVersion": 2018, |
47 | | - "sourceType": "module" |
48 | | - } |
49 | | - }, { |
50 | | - files: ["*.pug"], |
51 | | - rules: { |
52 | | - 'eol-last': 0 |
53 | | - } |
54 | | - }], |
55 | | - "rules": { |
56 | | - "import/no-commonjs": 0, |
57 | | - "import/unambiguous": 0, |
| 54 | + parserOptions: { |
| 55 | + "ecmaVersion": 2018, |
| 56 | + "sourceType": "module" |
| 57 | + } |
| 58 | + }], |
| 59 | + "rules": { |
| 60 | + "import/no-commonjs": 0, |
| 61 | + "import/unambiguous": 0, |
58 | 62 |
|
59 | | - // Browser only |
60 | | - "compat/compat": 0, |
| 63 | + // Browser only |
| 64 | + "compat/compat": 0, |
61 | 65 |
|
62 | | - "no-console": 0 |
63 | | - } |
| 66 | + "no-console": 0 |
| 67 | + } |
64 | 68 | }; |
0 commit comments