Skip to content

Commit 006856a

Browse files
authored
fix: ignore underscore-prefixed unused args in eslint (#19)
Add argsIgnorePattern: '^_' to no-unused-vars so intentionally unused handler args prefixed with _ stop failing the frontend lint step.
1 parent 5d89a69 commit 006856a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default defineConfig([
2323
},
2424
},
2525
rules: {
26-
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
26+
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]', argsIgnorePattern: '^_' }],
2727
},
2828
},
2929
])

0 commit comments

Comments
 (0)