|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + env: { |
| 4 | + node: true, |
| 5 | + builtin: true, |
| 6 | + es6: true, |
| 7 | + browser: true, |
| 8 | + }, |
| 9 | + parser: 'babel-eslint', |
| 10 | + parserOptions: { |
| 11 | + ecmaVersion: 2018, |
| 12 | + sourceType: 'module', |
| 13 | + allowImportExportEverywhere: true, |
| 14 | + ecmaFeatures: { |
| 15 | + jsx: true, |
| 16 | + experimentalDecorators: true, |
| 17 | + }, |
| 18 | + }, |
| 19 | + globals: {}, |
| 20 | + plugins: ['prettier'], |
| 21 | + extends: ['eslint-config-prettier'].map(require.resolve), |
| 22 | + rules: { |
| 23 | + 'prettier/prettier': 'error', |
| 24 | + 'block-scoped-var': 0, |
| 25 | + camelcase: 0, |
| 26 | + 'consistent-return': 2, |
| 27 | + curly: [2, 'all'], |
| 28 | + 'dot-notation': [1, { allowKeywords: true }], |
| 29 | + eqeqeq: [2, 'allow-null'], |
| 30 | + 'global-strict': [0, 'never'], |
| 31 | + 'guard-for-in': 2, |
| 32 | + 'key-spacing': 0, |
| 33 | + 'new-cap': 0, |
| 34 | + 'no-alert': 2, |
| 35 | + 'no-bitwise': 2, |
| 36 | + 'no-caller': 2, |
| 37 | + 'no-cond-assign': [2, 'except-parens'], |
| 38 | + 'no-debugger': 2, |
| 39 | + 'no-dupe-args': 2, |
| 40 | + 'no-dupe-keys': 2, |
| 41 | + 'no-empty': 2, |
| 42 | + 'no-eval': 2, |
| 43 | + 'no-extend-native': 2, |
| 44 | + 'no-extra-bind': 2, |
| 45 | + 'no-extra-parens': 0, |
| 46 | + 'no-func-assign': 2, |
| 47 | + 'no-implied-eval': 2, |
| 48 | + 'no-invalid-regexp': 2, |
| 49 | + 'no-irregular-whitespace': 1, |
| 50 | + 'no-iterator': 2, |
| 51 | + 'no-loop-func': 2, |
| 52 | + 'no-mixed-requires': 0, |
| 53 | + 'no-multi-str': 2, |
| 54 | + 'no-native-reassign': 2, |
| 55 | + 'no-new': 2, |
| 56 | + 'no-param-reassign': 1, |
| 57 | + 'no-proto': 2, |
| 58 | + 'no-redeclare': 0, |
| 59 | + 'no-script-url': 2, |
| 60 | + 'no-self-assign': 2, |
| 61 | + 'no-self-compare': 2, |
| 62 | + 'no-sequences': 2, |
| 63 | + 'no-shadow': 2, |
| 64 | + 'no-undef': 2, |
| 65 | + 'no-underscore-dangle': 0, |
| 66 | + 'no-unreachable': 1, |
| 67 | + 'no-unused-vars': 1, |
| 68 | + 'no-use-before-define': 1, |
| 69 | + 'no-useless-call': 2, |
| 70 | + 'no-useless-concat': 2, |
| 71 | + 'no-var': 2, |
| 72 | + 'no-with': 2, |
| 73 | + quotes: [0, 'single'], |
| 74 | + radix: 2, |
| 75 | + strict: 0, |
| 76 | + 'valid-typeof': 2, |
| 77 | + 'vars-on-top': 0, |
| 78 | + 'prefer-const': [ |
| 79 | + 'error', |
| 80 | + { |
| 81 | + destructuring: 'any', |
| 82 | + ignoreReadBeforeAssign: false, |
| 83 | + }, |
| 84 | + ], |
| 85 | + }, |
| 86 | +}; |
0 commit comments