-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
37 lines (36 loc) · 988 Bytes
/
.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
const isProd = process.env.NODE_ENV === 'production';
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/vue3-essential',
'@vue/standard',
'@vue/typescript/recommended'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
'no-console': isProd ? 'warn' : 'off',
'no-debugger': isProd ? 'warn' : 'off',
'comma-dangle': 'off',
'semi': ["error", "always"],
'@typescript-eslint/no-empty-function': isProd ? 'error' : 'warn',
"@typescript-eslint/no-use-before-define": ["error", { "functions": false }],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {
"delimiter": "comma",
"requireLast": false
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
}],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'space-before-function-paren': ["warn", "never"]
}
}