build: cleanup tsconfig files
[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 extends: [
11 'plugin:vue/vue3-essential',
12 'eslint:recommended',
13 '@vue/eslint-config-typescript/recommended',
14 '@vue/eslint-config-prettier',
15 ],
16
17 parserOptions: {
18 ecmaVersion: 'latest',
19 },
20
21 rules: {
22 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
23 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
24 'vue/require-v-for-key': 'off',
25 'vue/multi-word-component-names': 'off',
26 },
27
28 overrides: [
29 {
30 files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
31 env: {
32 mocha: true,
33 },
34 },
35 ],
36 });