Commit | Line | Data |
---|---|---|
32de5a57 LM |
1 | module.exports = { |
2 | root: true, | |
3 | ||
4 | env: { | |
5 | node: true, | |
6 | }, | |
7 | ||
8 | extends: [ | |
9 | 'plugin:vue/vue3-essential', | |
10 | 'eslint:recommended', | |
6c1761d4 JB |
11 | '@vue/eslint-config-typescript/recommended', |
12 | '@vue/eslint-config-prettier', | |
32de5a57 LM |
13 | ], |
14 | ||
32de5a57 | 15 | parserOptions: { |
6c1761d4 | 16 | ecmaVersion: 'latest', |
32de5a57 LM |
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 | }; |