forked from getodk/central-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
71 lines (71 loc) · 1.79 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
extends: [
'plugin:vue/recommended',
'@vue/airbnb'
],
env: {
node: true
},
globals: {
'$': false,
alert: false,
document: false,
window: false
},
rules: {
'arrow-parens': 'off',
'class-methods-use-this': 'off',
'comma-dangle': ['error', 'never'],
'curly': 'off',
'implicit-arrow-linebreak': 'off',
'lines-between-class-members': ['error', 'always', {
exceptAfterSingleLine: true
}],
'no-confusing-arrow': ['error', { allowParens: true }],
'no-console': 'error',
'no-debugger': 'error',
'no-multiple-empty-lines': ['error', { max: 3 }],
'no-restricted-syntax': ['error', 'LabeledStatement', 'WithStatement'],
'no-underscore-dangle': 'off',
'nonblock-statement-body-position': 'off',
'object-curly-newline': ['error', {
multiline: true,
minProperties: 0,
consistent: true
}],
'operator-linebreak': ['error', 'after', {
overrides: { '?': 'before', ':': 'before' }
}],
'space-before-function-paren': ['error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always'
}],
'spaced-comment': 'off',
'vue/html-closing-bracket-newline': ['error', {
singleline: 'never',
multiline: 'never'
}],
'vue/html-closing-bracket-spacing': ['error', {
startTag: 'never',
endTag: 'never',
selfClosingTag: 'never'
}],
'vue/html-indent': 'off',
'vue/html-self-closing': ['error', {
html: {
void: 'never',
normal: 'never',
component: 'always'
},
svg: 'always',
math: 'always'
}],
'vue/max-attributes-per-line': 'off',
'vue/singleline-html-element-content-newline': 'off'
}
};