|
| 1 | +'use strict'; |
| 2 | + |
| 3 | +module.exports = { |
| 4 | + extends: 'airbnb-base', |
| 5 | + parser: 'babel-eslint', |
| 6 | + parserOptions: { |
| 7 | + ecmaVersion: 2019, |
| 8 | + }, |
| 9 | + env: { |
| 10 | + browser: true, |
| 11 | + }, |
| 12 | + overrides: [ |
| 13 | + { |
| 14 | + files: ['*.js', '.*.js'], |
| 15 | + parserOptions: { sourceType: 'script' }, |
| 16 | + }, |
| 17 | + ], |
| 18 | + globals: { |
| 19 | + BigInt: false, |
| 20 | + Atomics: false, |
| 21 | + SharedArrayBuffer: false, |
| 22 | + WeakRef: false, |
| 23 | + }, |
| 24 | + rules: { |
| 25 | + 'quote-props': ['error', 'consistent'], |
| 26 | + 'strict': ['error', 'global'], |
| 27 | + 'prefer-destructuring': 'off', |
| 28 | + 'no-multiple-empty-lines': ['error', { maxBOF: 0, max: 2 }], |
| 29 | + 'arrow-parens': ['error', 'always'], |
| 30 | + 'lines-between-class-members': 'off', |
| 31 | + 'max-classes-per-file': 'off', |
| 32 | + 'no-restricted-syntax': 'off', |
| 33 | + 'import/no-cycle': 'off', |
| 34 | + 'import/extensions': 'off', |
| 35 | + 'import/prefer-default-export': 'off', |
| 36 | + 'import/no-mutable-exports': 'off', |
| 37 | + 'global-require': 'off', |
| 38 | + }, |
| 39 | +}; |
0 commit comments