-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
37 lines (37 loc) · 968 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
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
'plugin:vue/recommended'
],
plugins: [
'vue'
],
rules: {
'object-curly-spacing': ['warn', 'always'],
'comma-dangle': ['warn', 'never'],
'quotes': ['warn', 'single'],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/component-name-in-template-casing': ['warn', 'kebab-case'],
'vue/html-closing-bracket-newline': ['warn', { 'multiline': 'never' }],
'vue/html-closing-bracket-spacing': ['warn', { 'selfClosingTag': 'never' }],
'vue/script-indent': ['off', 2, {
'baseIndent': 1,
'switchCase': 1
}],
'vue/max-attributes-per-line': ['warn', {
'singleline': 3,
'multiline': {
'max': 1,
'allowFirstLine': false
}
}]
}
}