Vue UI + UI server
[e-mobility-charging-stations-simulator.git] / src / ui / web / .eslintrc.js
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/typescript/recommended',
12 'plugin:prettier/recommended',
13 ],
14
15 parser: 'vue-eslint-parser',
16
17 parserOptions: {
18 ecmaVersion: 2020,
19 parser: '@typescript-eslint/parser',
20 },
21
22 rules: {
23 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
24 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
25 'vue/require-v-for-key': 'off',
26 'vue/multi-word-component-names': 'off',
27 },
28
29 overrides: [
30 {
31 files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
32 env: {
33 mocha: true,
34 },
35 },
36 ],
37 };