-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.js
42 lines (42 loc) · 970 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
40
41
42
module.exports = {
root: true,
env: {
node: true,
jest: true
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 8,
sourceType: 'module'
},
extends: [
'eslint:recommended',
'plugin:vue/recommended',
'standard'
],
plugins: [
'vue'
],
rules: {
'arrow-parens': 0,
'generator-star-spacing': 0,
'no-console': 1,
'no-restricted-imports': [2, { 'paths': ['lodash-es'] }],
'prefer-arrow-callback': 1,
'semi': ['error', 'never'],
'vue/attributes-order': 1,
'vue/max-attributes-per-line': 1,
'vue/order-in-components': 2,
'vue/no-confusing-v-for-v-if': 1,
'vue/no-v-html': 1,
'vue/html-closing-bracket-newline': ['error', {
'singleline': 'never',
'multiline': 'always'
}],
'vue/singleline-html-element-content-newline': ['error', {
'ignoreWhenNoAttributes': true,
'ignores': ['pre', 'textarea']
}]
}
}