-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
executable file
·39 lines (39 loc) · 961 Bytes
/
.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
module.exports = {
root: true,
env: {
browser: true,
node: true
},
extends: [
'standard',
'plugin:vue/recommended'
],
parserOptions: {
parser: 'babel-eslint'
},
// add your custom rules here
rules: {
'vue/html-indent': ['warn', 4],
'brace-style': ['warn'],
'comma-dangle': [2, 'only-multiline'],
'comma-spacing': ['warn'],
indent: ['warn', 4],
'no-console': [
1,
{
allow: ['warn', 'error']
}
],
'no-extra-semi': 2,
'no-multiple-empty-lines': ['warn'],
'no-trailing-spaces': ['warn'],
'no-unused-vars': ['warn'],
'padded-blocks': ['warn'],
quotes: ['warn'],
semi: [1,'always'],
'space-before-function-paren': 'off',
'space-infix-ops': ['warn'],
'spaced-comment': ['warn']
},
globals: {}
};