|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + env: { |
| 4 | + node: true |
| 5 | + }, |
| 6 | + 'extends': [ |
| 7 | + 'plugin:vue/vue3-essential', |
| 8 | + 'eslint:recommended', |
| 9 | + '@vue/typescript/recommended' |
| 10 | + ], |
| 11 | + parserOptions: { |
| 12 | + ecmaVersion: 2020 |
| 13 | + }, |
| 14 | + rules: { |
| 15 | + 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', |
| 16 | + 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', |
| 17 | + 'vue/no-deprecated-slot-attribute': 'off', |
| 18 | + '@typescript-eslint/no-explicit-any': 'off', |
| 19 | + }, |
| 20 | + overrides: [ |
| 21 | + { |
| 22 | + files: [ |
| 23 | + '**/__tests__/*.{j,t}s?(x)', |
| 24 | + '**/tests/unit/**/*.spec.{j,t}s?(x)' |
| 25 | + ], |
| 26 | + env: { |
| 27 | + jest: true |
| 28 | + } |
| 29 | + } |
| 30 | + ] |
| 31 | +} |
0 commit comments