mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
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:
parent
4ab08fb472
commit
ec1a24cbd3
@ -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]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user