forked from zhaojh329/rttys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (35 loc) · 985 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
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' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'linebreak-style': ['error', 'unix'],
'quotes': ['error', 'single'],
'brace-style': 'error',
'comma-dangle': 'error',
'comma-spacing': 'error',
'keyword-spacing': 'error',
'no-trailing-spaces': 'error',
'no-unneeded-ternary': 'error',
'space-before-function-paren': ['error', 'never'],
'space-infix-ops': ['error', {'int32Hint': false}],
'arrow-spacing': 'error',
'no-var': 'error',
'no-duplicate-imports': 'error',
'space-before-blocks': 'error',
'space-in-parens': ["error", 'never'],
'no-multi-spaces': 'error',
'eqeqeq': 'error'
}
}