Fix update incompatibility

It seems that prettier supports vue in version `v1.15` and above.
See: https://github.com/prettier/prettier/releases/tag/1.15.0

So I guess that interferes with the old vue linter rules in place. I
graduated the vlue rule from `recommended` to `essential` and now
running `yarn run lint --fix` is doing fine.
This commit is contained in:
Robert Schäfer 2019-05-29 13:18:18 +02:00
parent 4ab08fb472
commit ec1a24cbd3

View File

@ -10,7 +10,7 @@ module.exports = {
}, },
extends: [ extends: [
'standard', 'standard',
'plugin:vue/recommended', 'plugin:vue/essential',
'plugin:prettier/recommended' 'plugin:prettier/recommended'
], ],
// required to lint *.vue files // required to lint *.vue files
@ -25,7 +25,9 @@ module.exports = {
'no-console': ['error'], 'no-console': ['error'],
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/component-name-in-template-casing': ['error', 'kebab-case'], 'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'prettier/prettier': ['error'], 'prettier/prettier': ['error', {
htmlWhitespaceSensitivity: 'ignore'
}],
// 'newline-per-chained-call': [2] // 'newline-per-chained-call': [2]
} }
} }