Skip to content

Commit b478f5c

Browse files
committed
chore: add ESLint environment declaration for browser in adasync.js
1 parent 7f15299 commit b478f5c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

eslint.config.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default defineConfig(
6464
varsIgnorePattern: '^_',
6565
args: 'after-used',
6666
argsIgnorePattern: '^_',
67+
caughtErrors: 'none', // Allow unused error variables in catch blocks
6768
},
6869
],
6970
'lines-between-class-members': [
@@ -118,4 +119,21 @@ export default defineConfig(
118119
react: { version: 'detect' },
119120
},
120121
},
122+
123+
// Frontend specific configuration
124+
{
125+
files: ['apps/frontend/**/*.{js,jsx,mjs,cjs,ts,tsx}'],
126+
rules: {
127+
'@typescript-eslint/no-unused-vars': [
128+
'warn',
129+
{
130+
vars: 'all',
131+
varsIgnorePattern: '^_|^fetch.*', // Allow unused vars starting with _ or fetch
132+
args: 'after-used',
133+
argsIgnorePattern: '^_',
134+
caughtErrors: 'none',
135+
},
136+
],
137+
},
138+
},
121139
);

0 commit comments

Comments
 (0)