| 1 | module.exports = { |
| 2 | root: true, |
| 3 | |
| 4 | env: { |
| 5 | node: true, |
| 6 | }, |
| 7 | |
| 8 | extends: [ |
| 9 | 'plugin:vue/vue3-essential', |
| 10 | 'eslint:recommended', |
| 11 | '@vue/eslint-config-typescript/recommended', |
| 12 | '@vue/eslint-config-prettier', |
| 13 | ], |
| 14 | |
| 15 | parserOptions: { |
| 16 | ecmaVersion: 'latest', |
| 17 | }, |
| 18 | |
| 19 | rules: { |
| 20 | 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', |
| 21 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', |
| 22 | 'vue/require-v-for-key': 'off', |
| 23 | 'vue/multi-word-component-names': 'off', |
| 24 | }, |
| 25 | |
| 26 | overrides: [ |
| 27 | { |
| 28 | files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'], |
| 29 | env: { |
| 30 | mocha: true, |
| 31 | }, |
| 32 | }, |
| 33 | ], |
| 34 | }; |