|
44 | 44 | "import/first": "off", // https://github.com/vuejs/vue-eslint-parser/issues/58 |
45 | 45 | "@typescript-eslint/no-explicit-any": "off", |
46 | 46 | "@typescript-eslint/explicit-module-boundary-types": "off", |
47 | | - "vue/first-attribute-linebreak": 0 |
| 47 | + "vue/first-attribute-linebreak": 0, |
| 48 | + |
| 49 | + "@typescript-eslint/no-unused-vars": [ |
| 50 | + "error", |
| 51 | + { |
| 52 | + "argsIgnorePattern": "^_", |
| 53 | + "varsIgnorePattern": "^_" |
| 54 | + } |
| 55 | + ], |
| 56 | + "no-unused-vars": [ |
| 57 | + "error", |
| 58 | + { |
| 59 | + "argsIgnorePattern": "^_", |
| 60 | + "varsIgnorePattern": "^_" |
| 61 | + } |
| 62 | + ], |
| 63 | + "@typescript-eslint/ban-ts-comment": "off", |
| 64 | + "@typescript-eslint/ban-types": "off" |
48 | 65 | }, |
49 | 66 | "overrides": [ |
50 | 67 | { |
|
57 | 74 | "vue/no-v-html": 0, |
58 | 75 | "vue-scoped-css/enforce-style-type": ["error", { "allows": ["scoped"] }] |
59 | 76 | } |
| 77 | + }, |
| 78 | + { |
| 79 | + "files": ["*.ts", "*.tsx"], // https://github.com/typescript-eslint eslint-recommended |
| 80 | + "rules": { |
| 81 | + "constructor-super": "off", // ts(2335) & ts(2377) |
| 82 | + "getter-return": "off", // ts(2378) |
| 83 | + "no-const-assign": "off", // ts(2588) |
| 84 | + "no-dupe-args": "off", // ts(2300) |
| 85 | + "no-dupe-class-members": "off", // ts(2393) & ts(2300) |
| 86 | + "no-dupe-keys": "off", // ts(1117) |
| 87 | + "no-func-assign": "off", // ts(2539) |
| 88 | + "no-import-assign": "off", // ts(2539) & ts(2540) |
| 89 | + "no-new-symbol": "off", // ts(2588) |
| 90 | + "no-obj-calls": "off", // ts(2349) |
| 91 | + "no-redeclare": "off", // ts(2451) |
| 92 | + "no-setter-return": "off", // ts(2408) |
| 93 | + "no-this-before-super": "off", // ts(2376) |
| 94 | + "no-undef": "off", // ts(2304) |
| 95 | + "no-unreachable": "off", // ts(7027) |
| 96 | + "no-unsafe-negation": "off", // ts(2365) & ts(2360) & ts(2358) |
| 97 | + "no-var": "error", // ts transpiles let/const to var, so no need for vars any more |
| 98 | + "prefer-const": "error", // ts provides better types with const |
| 99 | + "prefer-rest-params": "error", // ts provides better types with rest args over arguments |
| 100 | + "prefer-spread": "error", // ts transpiles spread to apply, so no need for manual apply |
| 101 | + "valid-typeof": "off" // ts(2367) |
| 102 | + } |
60 | 103 | } |
61 | 104 | ] |
62 | 105 | } |
0 commit comments