eslint-config-kswedberg
Advanced tools
Comparing version 3.0.1 to 3.1.0
{ | ||
"name": "eslint-config-kswedberg", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "A shareable eslint config", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -140,2 +140,11 @@ | ||
}], | ||
'comma-dangle': [ | ||
'warn', { | ||
arrays: 'always-multiline', | ||
objects: 'always-multiline', | ||
imports: 'never', | ||
exports: 'never', | ||
functions: 'ignore' | ||
} | ||
], | ||
'comma-spacing': ['error', {before: false, after: true}], | ||
@@ -152,3 +161,3 @@ 'eol-last': 'warn', | ||
{ | ||
MemberExpression: 'off' | ||
MemberExpression: 0 | ||
} | ||
@@ -279,1 +288,54 @@ ], | ||
}; | ||
module.exports.vue = { | ||
'vue/attribute-hyphenation': 'off', | ||
'vue/html-self-closing': [ | ||
'warn', | ||
{ | ||
svg: 'any', | ||
} | ||
], | ||
'vue/html-closing-bracket-newline': 'warn', | ||
'vue/html-indent': 'warn', | ||
'vue/max-attributes-per-line': [ | ||
'warn', { | ||
singleline: 3, | ||
multiline: { | ||
max: 1, | ||
allowFirstLine: false, | ||
}, | ||
}, | ||
], | ||
'vue/multiline-html-element-content-newline': 'warn', | ||
'vue/no-spaces-around-equal-signs-in-attribute': 'warn', | ||
'vue/singleline-html-element-content-newline': 'off', | ||
'vue/this-in-template': 'error', | ||
'vue/v-bind-style': 'warn', | ||
'vue/v-on-style': 'warn', | ||
'vue/v-on-function-call': ['warn', 'never'], | ||
'vue/attributes-order': [ | ||
'error', | ||
{ | ||
order: [ | ||
[ | ||
'CONDITIONALS', | ||
'DEFINITION', | ||
'LIST_RENDERING', | ||
], | ||
[ | ||
'TWO_WAY_BINDING', | ||
'OTHER_DIRECTIVES', | ||
'RENDER_MODIFIERS', | ||
'CONTENT', | ||
], | ||
'EVENTS', | ||
[ | ||
'UNIQUE', | ||
'GLOBAL', | ||
'OTHER_ATTR', | ||
] | ||
] | ||
} | ||
] | ||
}; |
11409
8
449