-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.cjs
37 lines (37 loc) · 969 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module.exports = {
root: true,
env: {
node: true,
es2021: true,
browser: true,
jest: true,
},
extends: ['plugin:vue/essential', '@vue/airbnb', 'plugin:prettier/recommended'],
plugins: ['prettier'],
rules: {
'prettier/prettier': 'error',
'no-console': 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'max-len': 0,
'no-param-reassign': 0,
'global-require': 0,
'prefer-destructuring': ['error', { object: false, array: false }],
'import/no-dynamic-require': 0,
'consistent-return': 0,
'no-underscore-dangle': 0,
'no-shadow': 0,
'operator-linebreak': 0,
'vue/multi-word-component-names': 0,
},
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 13,
sourceType: 'module',
requireConfigFile: false,
},
overrides: [
{
files: ['**/__tests__/*.{cj,j,t}s?(x)', '**/tests/unit/**/*.spec.{cj,j,t}s?(x)', '*.vue'],
},
],
};