-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.js
47 lines (45 loc) · 1.36 KB
/
vue.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
const path = require('path');
module.exports = {
extends: [
path.join(__dirname, 'index.js'),
'plugin:vue/recommended',
],
env: {
node: true,
es6: true,
},
rules: {
// Enable rules in <template>
'vue/array-bracket-spacing': ['error', 'never'],
'vue/arrow-spacing': ['error', { before: true, after: true }],
'vue/block-spacing': ['error', 'always'],
'vue/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'vue/camelcase': ['error', { properties: 'never' }],
'vue/comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'always-multiline',
}],
'vue/eqeqeq': ['error', 'always', { null: 'ignore' }],
'vue/key-spacing': ['error', { beforeColon: false, afterColon: true }],
'vue/object-curly-spacing': ['error', 'always'],
'vue/space-infix-ops': 'error',
'vue/space-unary-ops': ['error', {
words: true,
nonwords: false,
overrides: {
},
}],
// Vue specific
'vue/component-name-in-template-casing': 'error',
'vue/match-component-file-name': ['error', {
extensions: ['vue'],
shouldMatchCase: true,
}],
'vue/no-boolean-default': 'error',
'vue/require-direct-export': 'error',
'vue/v-on-function-call': 'error',
},
};