|
| 1 | +module.exports = { |
| 2 | + prettier: true, |
| 3 | + space: true, |
| 4 | + nodeVersion: false, |
| 5 | + extends: [ |
| 6 | + 'xo-lass', |
| 7 | + ], |
| 8 | + envs: [ |
| 9 | + 'node', |
| 10 | + 'browser', |
| 11 | + ], |
| 12 | + overrides: [ |
| 13 | + { |
| 14 | + files: 'test/**/*.js', |
| 15 | + envs: [ |
| 16 | + 'mocha', |
| 17 | + ], |
| 18 | + rules: { |
| 19 | + 'block-scoped-var': 'warn', |
| 20 | + complexity: 'warn', |
| 21 | + 'default-case': 'warn', |
| 22 | + eqeqeq: 'warn', |
| 23 | + 'func-name-matching': 'warn', |
| 24 | + 'func-names': 'warn', |
| 25 | + 'guard-for-in': 'warn', |
| 26 | + 'handle-callback-err': 'warn', |
| 27 | + 'import/no-extraneous-dependencies': 'warn', |
| 28 | + 'import/no-unassigned-import': 'warn', |
| 29 | + 'import/order': 'warn', |
| 30 | + 'max-nested-callbacks': 'warn', |
| 31 | + 'new-cap': 'warn', |
| 32 | + 'no-eq-null': 'warn', |
| 33 | + 'no-extend-native': 'warn', |
| 34 | + 'no-implicit-coercion': 'warn', |
| 35 | + 'no-multi-assign': 'warn', |
| 36 | + 'no-negated-condition': 'warn', |
| 37 | + 'no-prototype-builtins': 'warn', |
| 38 | + 'no-redeclare': 'warn', |
| 39 | + 'no-undef': 'warn', |
| 40 | + 'no-unused-expressions': 'warn', |
| 41 | + 'no-unused-vars': 'warn', |
| 42 | + 'no-use-extend-native/no-use-extend-native': 'warn', |
| 43 | + 'no-useless-escape': 'warn', |
| 44 | + 'no-var': 'warn', |
| 45 | + 'no-void': 'warn', |
| 46 | + 'node/no-deprecated-api': 'warn', |
| 47 | + 'prefer-rest-params': 'warn', |
| 48 | + 'prefer-spread': 'warn', |
| 49 | + 'unicorn/filename-case': 'warn', |
| 50 | + 'valid-jsdoc': 'warn', |
| 51 | + 'node/no-path-concat': 'warn', |
| 52 | + 'unicorn/no-empty-file': 'warn', |
| 53 | + }, |
| 54 | + }, |
| 55 | + ], |
| 56 | + rules: { |
| 57 | + 'unicorn/prevent-abbreviations': [ |
| 58 | + 'warn', |
| 59 | + { |
| 60 | + replacements: { |
| 61 | + res: false, |
| 62 | + args: false, |
| 63 | + fn: false, |
| 64 | + err: false, |
| 65 | + e: false, |
| 66 | + i: false, |
| 67 | + }, |
| 68 | + }, |
| 69 | + ], |
| 70 | + 'no-bitwise': 'warn', |
| 71 | + 'node/prefer-global/buffer': 'warn', |
| 72 | + 'node/prefer-global/process': 'warn', |
| 73 | + 'unicorn/no-new-array': 'warn', |
| 74 | + 'unicorn/no-this-assignment': 'warn', |
| 75 | + 'unicorn/prefer-spread': 'warn', |
| 76 | + 'unicorn/catch-error-name': 'warn', |
| 77 | + 'unicorn/prefer-code-point': 'warn', |
| 78 | + 'node/no-unsupported-features': [ |
| 79 | + 'error', |
| 80 | + { |
| 81 | + version: 8, |
| 82 | + ignores: [ |
| 83 | + 'syntax', |
| 84 | + ], |
| 85 | + }, |
| 86 | + ], |
| 87 | + }, |
| 88 | + globals: [ |
| 89 | + 'ActiveXObject', |
| 90 | + ], |
| 91 | +}; |
0 commit comments