forked from UsingBlockchain/yourdlt-explorer
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
53 lines (47 loc) · 1.44 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
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard',
// 'airbnb-base',
// 'plugin:prettier/recommended'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'curly': ['error', 'multi-or-nest'],
'no-useless-escape': 'off',
'no-var': 'error',
'space-before-function-paren': ['error', {
'anonymous': 'always',
'named': 'never',
'asyncArrow': 'always'
}],
'indent': ['error', 'tab'],
'no-unused-expressions': 'off',
'no-tabs': 0,
'no-mixed-spaces-and-tabs': 0,
'semi': ['error', 'always'],
'newline-per-chained-call': ['error'],
'brace-style': ['error', 'stroustrup'],
// 'array-bracket-newline': ['error', { 'multiline': true, 'minItems': 2 }],
'newline-after-var': ['error', 'always'],
'vue/html-indent': ['error', 'tab', {
'attribute': 1,
'baseIndent': 1,
'closeBracket': 0,
'alignAttributesVertically': false,
'ignores': []
}]
// '@typescript-eslint/no-unused-expressions': 'error'
},
globals: {
'globalConfig': true
},
parserOptions: {
parser: 'babel-eslint'
}
}