-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.js
37 lines (37 loc) · 1.15 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
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard',
'@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',
"semi": ["error", "always"],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"operator-linebreak": ["error", "after"],
"indent": "off",
'@typescript-eslint/indent': [
'error',
2
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": "off",
"no-useless-constructor": "off",
"no-unused-expressions": "off",
"promise/param-names": "off",
"@typescript-eslint/no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"prefer-promise-reject-errors": ["error", {"allowEmptyReject": true}],
"@typescript-eslint/no-non-null-assertion": "off",
"no-async-promise-executor": "off"
}
}