chore(eslint): add ignorePatterns + comma-dangle: never rule
Without ignorePatterns, eslint will go havoc in the locales and randomly delete strings, probably due to some kind of vue-i18n static code analysis for keys that are not used. Let's keep them, for now. This doesn't stop us from manually removing the statement and running the fmt command to see the avoided outcome.
This commit is contained in:
parent
c1d33132e7
commit
90683f0c06
|
@ -22,6 +22,9 @@ module.exports = {
|
|||
plugins: [
|
||||
'vue'
|
||||
],
|
||||
ignorePatterns: [
|
||||
'src/locales/*.json'
|
||||
],
|
||||
rules: {
|
||||
// NOTE: Nicer for the eye
|
||||
'operator-linebreak': ['error', 'before'],
|
||||
|
@ -55,7 +58,10 @@ module.exports = {
|
|||
'@typescript-eslint/no-this-alias': 'off',
|
||||
|
||||
// TODO (wvffle): Remove after API Client
|
||||
'@typescript-eslint/no-explicit-any': 'off'
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
|
||||
// Configure TypeScript style
|
||||
'comma-dangle': ['error', 'never']
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue