-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
46 lines (46 loc) · 1.12 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
45
46
module.exports = {
root: true,
extends: ['plugin:vue/vue3-essential', 'eslint:recommended'],
env: {
node: true, //此项指定环境的全局变量,下面的配置指定为node环境
},
rules: {
// allow async-await
semi: 0,
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/no-parsing-error': [
2,
{
'x-invalid-end-tag': false,
},
],
'vue/no-v-model-argument': 'off',
'no-undef': 'off',
camelcase: 'off',
'no-mixed-spaces-and-tabs': 0,
'vue/no-mutating-props': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-reserved-props': 'off',
'no-unused-vars': 0,
'vue/no-useless-template-attributes': 'off',
'no-irregular-whitespace': 0,
},
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 2018,
sourceType: 'module',
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: {
mocha: false,
},
},
],
}