Commit | Line | Data |
---|---|---|
a0ede750 JB |
1 | const { defineConfig } = require('eslint-define-config'); |
2 | ||
3 | module.exports = defineConfig({ | |
32de5a57 LM |
4 | root: true, |
5 | ||
6 | env: { | |
7 | node: true, | |
8 | }, | |
9 | ||
cbac2373 JB |
10 | plugins: ['import'], |
11 | ||
32de5a57 | 12 | extends: [ |
32de5a57 | 13 | 'eslint:recommended', |
7afb608e | 14 | 'plugin:import/recommended', |
01ff4231 | 15 | 'plugin:vue/vue3-recommended', |
6c1761d4 | 16 | '@vue/eslint-config-prettier', |
7afb608e | 17 | '@vue/eslint-config-typescript/recommended', |
32de5a57 LM |
18 | ], |
19 | ||
cbac2373 JB |
20 | settings: { |
21 | 'import/resolver': { | |
22 | typescript: { | |
23 | project: './tsconfig.json', | |
24 | }, | |
25 | }, | |
26 | }, | |
27 | ||
32de5a57 | 28 | parserOptions: { |
6c1761d4 | 29 | ecmaVersion: 'latest', |
32de5a57 LM |
30 | }, |
31 | ||
32 | rules: { | |
33 | 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | |
34 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | |
35 | 'vue/require-v-for-key': 'off', | |
36 | 'vue/multi-word-component-names': 'off', | |
cbac2373 JB |
37 | 'sort-imports': [ |
38 | 'error', | |
39 | { | |
40 | ignoreDeclarationSort: true, | |
41 | }, | |
42 | ], | |
43 | 'import/order': 'error', | |
32de5a57 | 44 | }, |
a0ede750 | 45 | }); |