forked from MikaelEdebro/vue-airbnb-style-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
59 lines (58 loc) · 1.31 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
module.exports = {
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
},
env: {
browser: true,
jest: true,
},
extends: ['standard', 'plugin:vue/recommended', 'prettier'],
globals: {
window: true,
},
rules: {
'arrow-parens': 'off',
'generator-star-spacing': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'spaced-comment': 'off',
'eol-last': 'off',
'space-before-function-paren': 'off',
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
'prefer-promise-reject-errors': 'off',
// vue-eslint-plugin
// https://github.com/vuejs/eslint-plugin-vue
'vue/max-attributes-per-line': [
'error',
{
singleline: 3,
multiline: {
max: 1,
allowFirstLine: false,
},
},
],
'vue/html-self-closing': [
'error',
{
html: {
void: 'any',
normal: 'any',
component: 'always',
},
svg: 'always',
math: 'always',
},
],
'vue/require-default-prop': 'off',
'vue/attributes-order': ['off', {}],
'vue/attribute-order': ['off', {}],
'vue/html-closing-bracket-newline': [
'error',
{
singleline: 'never',
multiline: 'always',
},
],
},
}