From cb81749dbf6fdde5f29e8798c17e485c03689cd2 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Tue, 18 Aug 2026 08:23:19 -0400 Subject: [PATCH] fix: update ESLint ignores and improve i18n audit script readability --- .prettierignore | 11 +++++++++++ eslint.config.mjs | 22 ++++++++++++++++++---- scripts/i18n-audit.mjs | 3 ++- 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/.prettierignore b/.prettierignore index 1f69319..464bbef 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,13 @@ LICENSE.md dist/ +build/ +vendor/ +android/ +ios/ +resources/ +.bundle/ +.agents/ +.impeccable/ +package-lock.json +Gemfile.lock +skills-lock.json diff --git a/eslint.config.mjs b/eslint.config.mjs index 53c06bc..f0a7988 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -15,7 +15,17 @@ import globals from 'globals' export default [ { - ignores: ['dist'], + ignores: [ + 'dist', + 'build', + 'vendor', + 'android', + 'ios', + 'resources', + 'public/assets', + '.agents', + '.impeccable', + ], }, js.configs.recommended, react.configs.flat.recommended, @@ -51,7 +61,11 @@ export default [ eslintConfigPrettier, // Disable any rules that conflict with prettier eslintPluginPrettierRecommended, { - files: ['*.{js,ts}'], + files: [ + '*.{js,mjs,cjs,ts}', + 'scripts/**/*.{js,mjs,cjs,ts}', + 'workers/**/*.{js,mjs,cjs,ts}', + ], languageOptions: { globals: globals.node, }, @@ -72,9 +86,9 @@ export default [ sourceType: 'module', }, rules: { + // Formatting rules (indent, space-infix-ops) are owned by prettier here — + // re-enabling them fights prettier/prettier and makes --fix unable to converge. eqeqeq: 'error', - indent: ['error', 2], - 'space-infix-ops': ['error', { int32Hint: false }], }, }, { diff --git a/scripts/i18n-audit.mjs b/scripts/i18n-audit.mjs index 7295c5f..3fccb81 100644 --- a/scripts/i18n-audit.mjs +++ b/scripts/i18n-audit.mjs @@ -52,7 +52,8 @@ const lookup = (ns, key) => const exists = (ns, key) => { if (lookup(ns, key) !== null) return true const dot = key.lastIndexOf('.') - const parent = dot === -1 ? (bundles[ns] ?? null) : lookup(ns, key.slice(0, dot)) + const parent = + dot === -1 ? (bundles[ns] ?? null) : lookup(ns, key.slice(0, dot)) const leaf = key.slice(dot + 1) return ( parent !== null &&