forked from ets-berkeley-edu/damien
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
81 lines (81 loc) · 2.08 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
72
73
74
75
76
77
78
79
80
81
module.exports = {
root: true,
env: {
browser: true,
node: true
},
extends: [
'@vue/typescript',
'plugin:vue/strongly-recommended',
'eslint:recommended',
'plugin:vue-a11y/recommended'
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: require.resolve('@typescript-eslint/parser')
},
plugins: [
'vue',
'vue-a11y'
],
rules: {
'eqeqeq': 2,
'multiline-html-element-content-newline': 0,
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unexpected-multiline': 2,
'quotes': [2, 'single'],
'semi': [2, 'never'],
'vue-a11y/label-has-for': [
2,
{
'components': [ 'label' ],
'required': {
'every': [ 'id' ]
},
'allowChildren': false
}
],
'vue-a11y/no-onchange': 'off',
'vue/array-bracket-spacing': 2,
'vue/arrow-spacing': 2,
'vue/attributes-order': 2,
'vue/block-spacing': 2,
'vue/brace-style': 2,
'vue/camelcase': 2,
'vue/comma-dangle': 2,
'vue/component-name-in-template-casing': 2,
'vue/eqeqeq': 2,
'vue/html-closing-bracket-newline': 2,
'vue/html-closing-bracket-spacing': 2,
'vue/html-end-tags': 2,
'vue/html-indent': 2,
'vue/html-quotes': 2,
'vue/html-self-closing': 0,
'vue/key-spacing': 2,
'vue/match-component-file-name': 2,
'vue/max-attributes-per-line': ['error', {
singleline: 3,
multiline: {
max: 1,
allowFirstLine: false
}
}],
'vue/no-boolean-default': 2,
'vue/no-restricted-syntax': 2,
'vue/no-use-v-if-with-v-for': 2,
'vue/no-v-html': 0,
'vue/object-curly-spacing': 0,
'vue/require-default-prop': 2,
'vue/require-direct-export': 2,
'vue/require-prop-types': 2,
'vue/script-indent': 0,
'vue/singleline-html-element-content-newline': 0,
'vue/space-infix-ops': 2,
'vue/space-unary-ops': 2,
'vue/v-bind-style': 2,
'vue/v-on-function-call': 2,
'vue/v-on-style': 2,
"vue/valid-v-slot": 0
}
}