-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path.eslintrc.js
54 lines (54 loc) · 1.35 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
47
48
49
50
51
52
53
54
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'eslint:recommended',
'@vue/typescript/recommended'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-tabs': 'off',
indent: [0, 'tab'],
'object-curly-spacing': ['error', 'never'],
semi: 0,
'object-property-newline': 'off',
'space-before-function-paren': ['error', {
anonymous: 'always',
named: 'never',
asyncArrow: 'always'
}],
'eol-last': 'off',
'quote-props': ['error', 'as-needed'],
'no-trailing-spaces': ['error', {
skipBlankLines: true,
ignoreComments: true
}],
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/class-name-casing': 'off',
'@typescript-eslint/no-this-alias': 'off',
'vue/valid-v-on': 'off',
'vue/valid-v-for': 'off',
'vue/valid-v-else': 'off',
'vue/no-unused-vars': 'off',
'vue/no-parsing-error': [
2,
{
'x-invalid-end-tag': false
}
],
'no-useless-escape': 'off',
'no-extra-boolean-cast': 'off',
'no-case-declarations': 'off'
}
}