|
| 1 | +module.exports = { |
| 2 | + parser: 'vue-eslint-parser', |
| 3 | + parserOptions: { |
| 4 | + parser: '@typescript-eslint/parser', |
| 5 | + ecmaVersion: 2020, |
| 6 | + sourceType: 'module', |
| 7 | + ecmaFeatures: { |
| 8 | + jsx: true, |
| 9 | + }, |
| 10 | + }, |
| 11 | + extends: [ |
| 12 | + 'plugin:vue/vue3-recommended', |
| 13 | + 'plugin:@typescript-eslint/recommended', |
| 14 | + 'prettier/@typescript-eslint', |
| 15 | + 'plugin:prettier/recommended', |
| 16 | + ], |
| 17 | + rules: { |
| 18 | + '@typescript-eslint/ban-ts-ignore': 'off', |
| 19 | + '@typescript-eslint/explicit-function-return-type': 'off', |
| 20 | + '@typescript-eslint/no-explicit-any': 'off', |
| 21 | + '@typescript-eslint/no-var-requires': 'off', |
| 22 | + '@typescript-eslint/no-empty-function': 'off', |
| 23 | + 'vue/custom-event-name-casing': 'off', |
| 24 | + 'no-use-before-define': 'off', |
| 25 | + '@typescript-eslint/no-use-before-define': 'off', |
| 26 | + '@typescript-eslint/ban-ts-comment': 'off', |
| 27 | + '@typescript-eslint/ban-types': 'off', |
| 28 | + '@typescript-eslint/no-non-null-assertion': 'off', |
| 29 | + '@typescript-eslint/explicit-module-boundary-types': 'off', |
| 30 | + '@typescript-eslint/no-unused-vars': [ |
| 31 | + 'error', |
| 32 | + { |
| 33 | + argsIgnorePattern: '^h$', |
| 34 | + varsIgnorePattern: '^h$', |
| 35 | + }, |
| 36 | + ], |
| 37 | + 'no-unused-vars': [ |
| 38 | + 'error', |
| 39 | + { |
| 40 | + argsIgnorePattern: '^h$', |
| 41 | + varsIgnorePattern: '^h$', |
| 42 | + }, |
| 43 | + ], |
| 44 | + 'space-before-function-paren': 'off', |
| 45 | + quotes: ['error', 'single'], |
| 46 | + 'comma-dangle': ['error', 'never'], |
| 47 | + }, |
| 48 | +}; |
0 commit comments