|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + env: { |
| 4 | + browser: true, |
| 5 | + node: true, |
| 6 | + es6: true |
| 7 | + }, |
| 8 | + extends: [ |
| 9 | + "plugin:vue/vue3-essential", |
| 10 | + "eslint:recommended", |
| 11 | + "@vue/typescript/recommended", |
| 12 | + "@vue/prettier", |
| 13 | + "@vue/eslint-config-typescript" |
| 14 | + ], |
| 15 | + parser: "vue-eslint-parser", |
| 16 | + parserOptions: { |
| 17 | + parser: "@typescript-eslint/parser", |
| 18 | + ecmaVersion: 2020, |
| 19 | + sourceType: "module", |
| 20 | + jsxPragma: "React", |
| 21 | + ecmaFeatures: { |
| 22 | + jsx: true, |
| 23 | + tsx: true |
| 24 | + } |
| 25 | + }, |
| 26 | + rules: { |
| 27 | + // TS |
| 28 | + "@typescript-eslint/no-unused-expressions": "off", |
| 29 | + "@typescript-eslint/no-explicit-any": "off", |
| 30 | + "no-debugger": "off", |
| 31 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 32 | + "@typescript-eslint/ban-types": "off", |
| 33 | + "@typescript-eslint/ban-ts-comment": "off", |
| 34 | + "@typescript-eslint/no-empty-function": "off", |
| 35 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 36 | + "@typescript-eslint/no-unused-vars": [ |
| 37 | + "error", |
| 38 | + { |
| 39 | + argsIgnorePattern: "^_", |
| 40 | + varsIgnorePattern: "^_" |
| 41 | + } |
| 42 | + ], |
| 43 | + "no-unused-vars": [ |
| 44 | + "error", |
| 45 | + { |
| 46 | + argsIgnorePattern: "^_", |
| 47 | + varsIgnorePattern: "^_" |
| 48 | + } |
| 49 | + ], |
| 50 | + // Vue |
| 51 | + "vue/no-v-html": "off", |
| 52 | + "vue/require-default-prop": "off", |
| 53 | + "vue/require-explicit-emits": "off", |
| 54 | + "vue/multi-word-component-names": "off", |
| 55 | + "vue/html-self-closing": [ |
| 56 | + "error", |
| 57 | + { |
| 58 | + html: { |
| 59 | + void: "always", |
| 60 | + normal: "always", |
| 61 | + component: "always" |
| 62 | + }, |
| 63 | + svg: "always", |
| 64 | + math: "always" |
| 65 | + } |
| 66 | + ], |
| 67 | + // Prettier |
| 68 | + "prettier/prettier": [ |
| 69 | + "error", |
| 70 | + { |
| 71 | + endOfLine: "auto" |
| 72 | + } |
| 73 | + ] |
| 74 | + } |
| 75 | +} |
0 commit comments