-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.js
63 lines (62 loc) · 1.68 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
const prod = require('./helpers/prod');
module.exports = {
extends: [
'@vue/eslint-config-standard',
'plugin:vue/strongly-recommended',
'./rules/vue/recommended.js',
'./rules/vue/stronglyRecommended.js',
],
rules: {
// Uncategorized
'vue/array-bracket-spacing': [prod(), 'never'],
'vue/arrow-spacing': prod(),
'vue/block-spacing': [prod(), 'always'],
'vue/brace-style': [prod(), '1tbs', { allowSingleLine: true }],
'vue/camelcase': prod(),
'vue/comma-dangle': [prod(), 'always-multiline'],
'vue/component-name-in-template-casing': ['error', 'PascalCase', {
ignores: [
'component',
'router-view',
'router-link',
'slot',
'keep-alive',
'transition',
'transition-group',
],
}],
'vue/dot-location': ['error', 'property'],
'vue/eqeqeq': 'error',
'vue/key-spacing': prod(),
'vue/keyword-spacing': prod(),
'vue/match-component-file-name': ['error', {
extensions: ['jsx', 'vue'],
shouldMatchCase: false,
}],
'vue/no-boolean-default': 'error',
'vue/no-deprecated-scope-attribute': 'error',
'vue/object-curly-spacing': [prod(), 'always'],
'vue/require-direct-export': 'error',
'vue/script-indent': [prod(), 2, {
baseIndent: 1,
switchCase: 1,
}],
'vue/space-infix-ops': ['error', { int32Hint: false }],
'vue/space-unary-ops': 'error',
'vue/v-on-function-call': 'error',
'vue/valid-v-slot': 'error',
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
},
overrides: [
{
files: ['*.vue'],
rules: {
indent: 'off',
},
},
],
};