xref: /openbmc/webui-vue/.eslintrc.js (revision 511650a90260e0922bfeb1091b4babc597d36af6)
1module.exports = {
2  root: true,
3  env: {
4    node: true,
5  },
6  extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'],
7  rules: {
8    'no-console': 'off',
9    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
10    'prettier/prettier': [
11      'error',
12      {
13        singleQuote: true,
14      },
15    ],
16    'vue/component-name-in-template-casing': ['error', 'kebab-case'],
17    'vue/multi-word-component-names': 'off',
18  },
19  parser: 'vue-eslint-parser',
20  overrides: [
21    {
22      files: [
23        '**/__tests__/*.{j,t}s?(x)',
24        '**/tests/unit/**/*.spec.{j,t}s?(x)',
25      ],
26      env: {
27        jest: true,
28      },
29    },
30  ],
31};
32