-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
38 lines (38 loc) · 1.21 KB
/
index.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
module.exports = {
rules: {
'attributes-single-line': require('./rules/attributes-single-line'),
'tag-delimiter-no-spaces': require('./rules/tag-delimiter-no-spaces'),
'attribute-hyphenation-with-tag': require('./rules/attribute-hyphenation-with-tag'),
'singleline-html-element-content-inline': require('./rules/singleline-html-element-content-inline'),
},
configs: {
recommended: {
plugins: [ 'vue-oboi' ],
rules: {
'max-len': 'off',
'vue/max-len': 'off',
'vue/max-attributes-per-line': 'off',
'vue/attribute-hyphenation': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue-oboi/attributes-single-line': [ 'error' ],
'vue-oboi/tag-delimiter-no-spaces': [ 'error', 'all' ],
'vue-oboi/attribute-hyphenation-with-tag': [ 'warn' ],
'vue-oboi/singleline-html-element-content-inline': [ 'warn' ],
},
},
},
parser: require.resolve('vue-eslint-parser'),
plugins: [ 'vue-oboi' ],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
es6: true,
},
};