build(deps-dev): update overrides got version
[e-mobility-charging-stations-simulator.git] / ui / web / .eslintrc.js
1 const { defineConfig } = require('eslint-define-config');
2
3 module.exports = defineConfig({
4 root: true,
5
6 env: {
7 node: true,
8 },
9
10 plugins: ['import'],
11
12 extends: [
13 'eslint:recommended',
14 'plugin:import/recommended',
15 'plugin:vue/vue3-recommended',
16 '@vue/eslint-config-prettier',
17 '@vue/eslint-config-typescript/recommended',
18 ],
19
20 settings: {
21 'import/resolver': {
22 typescript: {
23 project: './tsconfig.json',
24 },
25 },
26 },
27
28 parserOptions: {
29 ecmaVersion: 'latest',
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',
37 'sort-imports': [
38 'error',
39 {
40 ignoreDeclarationSort: true,
41 },
42 ],
43 'import/order': 'error',
44 },
45 });