|
| 1 | +const base = require("./base"); |
| 2 | + |
| 3 | +const baseRules = base.rules; |
| 4 | +// This rule can be parsed with ES5 |
| 5 | +delete baseRules["import/no-duplicates"]; |
| 6 | + |
| 7 | +module.exports = { |
| 8 | + extends: ["eslint:recommended"], |
| 9 | + parserOptions: { |
| 10 | + ecmaVersion: 5, |
| 11 | + sourceType: "script" |
| 12 | + }, |
| 13 | + env: { |
| 14 | + browser: true, |
| 15 | + commonjs: true |
| 16 | + }, |
| 17 | + rules: Object.assign({}, baseRules, { |
| 18 | + // Disable all rules about ES6 |
| 19 | + "arrow-body-style": "off", |
| 20 | + "arrow-parens": "off", |
| 21 | + "arrow-spacing": "off", |
| 22 | + "constructor-super": "off", |
| 23 | + "generator-star-spacing": "off", |
| 24 | + "no-class-assign": "off", |
| 25 | + "no-confusing-arrow": "off", |
| 26 | + "no-const-assign": "off", |
| 27 | + "no-dupe-class-members": "off", |
| 28 | + "no-duplicate-imports": "off", |
| 29 | + "no-new-symbol": "off", |
| 30 | + "no-restricted-imports": "off", |
| 31 | + "no-this-before-super": "off", |
| 32 | + "no-useless-computed-key": "off", |
| 33 | + "no-useless-constructor": "off", |
| 34 | + "no-useless-rename": "off", |
| 35 | + "no-var": "off", |
| 36 | + "object-shorthand": "off", |
| 37 | + "prefer-arrow-callback": "off", |
| 38 | + "prefer-const": "off", |
| 39 | + "prefer-destructuring": "off", |
| 40 | + "prefer-numeric-literals": "off", |
| 41 | + "prefer-reflect": "off", |
| 42 | + "prefer-rest-params": "off", |
| 43 | + "prefer-spread": "off", |
| 44 | + "prefer-template": "off", |
| 45 | + "require-yield": "off", |
| 46 | + "rest-spread-spacing": "off", |
| 47 | + "sort-imports": "off", |
| 48 | + "symbol-description": "off", |
| 49 | + "template-curly-spacing": "off", |
| 50 | + "yield-star-spacing": "off" |
| 51 | + }) |
| 52 | +}; |
0 commit comments