From 90683f0c060fde397c920f2ceb5aa2b2a89b7e92 Mon Sep 17 00:00:00 2001 From: jon r Date: Sat, 22 Feb 2025 21:50:22 +0100 Subject: [PATCH] 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. --- front/.eslintrc.cjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/front/.eslintrc.cjs b/front/.eslintrc.cjs index 6a2ecc376..bf893b886 100644 --- a/front/.eslintrc.cjs +++ b/front/.eslintrc.cjs @@ -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: [ {