xref: /openbmc/webui-vue/.eslintrc.js (revision aae4312c)
1module.exports = {
2  root: true,
3  env: {
4    node: true
5  },
6  extends: ['plugin:vue/essential', '@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  },
17  parserOptions: {
18    parser: 'babel-eslint'
19  },
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