xref: /openbmc/webui-vue/.eslintrc.js (revision b440616c)
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  },
18  parserOptions: {
19    parser: 'babel-eslint',
20  },
21  overrides: [
22    {
23      files: [
24        '**/__tests__/*.{j,t}s?(x)',
25        '**/tests/unit/**/*.spec.{j,t}s?(x)',
26      ],
27      env: {
28        jest: true,
29      },
30    },
31  ],
32};
33