-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
44 lines (43 loc) · 1.08 KB
/
.eslintrc.js
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
38
39
40
41
42
43
44
module.exports = {
root: true,
env: {
node: true,
es6: true,
jest: true,
},
extends: [
'eslint:recommended',
'plugin:vue/base',
'plugin:vue/vue3-essential',
'plugin:vue/vue3-recommended',
'plugin:vue/vue3-strongly-recommended',
'prettier',
'prettier/vue',
'prettier/unicorn',
'prettier/standard',
'plugin:prettier/recommended',
'@vue/prettier',
'plugin:unicorn/recommended',
],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-unused-vars': 0,
'unicorn/filename-case': [
'warn',
{
case: 'pascalCase',
ignore: ['.*.js', 'babel.config.js'],
},
],
'unicorn/consistent-function-scoping': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/no-null': 'off',
'vue/attribute-hyphenation': 'off',
// 'array-bracket-spacing': ['always', { objectsInArrays: false }],
// 'vue/no-v-model-argument': 1
},
}