Add more Vue rules
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
43bd67f864
commit
9273ab56a8
1 changed files with 11 additions and 1 deletions
12
.eslintrc.js
12
.eslintrc.js
|
@ -34,7 +34,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
extends: [
|
extends: [
|
||||||
'plugin:vue/strongly-recommended',
|
'plugin:vue/recommended',
|
||||||
'eslint:recommended', // https://eslint.org/docs/rules/
|
'eslint:recommended', // https://eslint.org/docs/rules/
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@ -134,6 +134,16 @@ module.exports = {
|
||||||
'switch-colon-spacing': ['error'],
|
'switch-colon-spacing': ['error'],
|
||||||
'template-curly-spacing': ['error', 'never'],
|
'template-curly-spacing': ['error', 'never'],
|
||||||
'unicode-bom': ['error', 'never'],
|
'unicode-bom': ['error', 'never'],
|
||||||
|
'vue/new-line-between-multi-line-property': ['error'],
|
||||||
|
'vue/no-empty-component-block': ['error'],
|
||||||
|
'vue/no-reserved-component-names': ['error'],
|
||||||
|
'vue/no-template-target-blank': ['error'],
|
||||||
|
'vue/no-unused-properties': ['error'],
|
||||||
|
'vue/no-unused-refs': ['error'],
|
||||||
|
'vue/no-useless-mustaches': ['error'],
|
||||||
|
'vue/require-name-property': ['error'],
|
||||||
|
'vue/v-for-delimiter-style': ['error'],
|
||||||
|
'vue/v-on-function-call': ['error'],
|
||||||
'wrap-iife': ['error'],
|
'wrap-iife': ['error'],
|
||||||
'yoda': ['error'],
|
'yoda': ['error'],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue