Turn off the base unused-vars rule for the TS files. [skip build]
Checks / checks (push) Successful in 2m10s
Trigger cinny-mobile / dispatch (push) Successful in 2s

This commit is contained in:
2026-11-01 07:02:36 +11:00
parent 2d3bebdc23
commit 831ce01150
+6 -2
View File
@@ -95,6 +95,10 @@ export default [
})), })),
), ),
// Type-only references (React.DragEvent, PermissionState) are not runtime globals, so no-undef // Type-only references (React.DragEvent, PermissionState) are not runtime globals, so no-undef
// has to be off for the TS files too, not just *.ts. // has to be off for the TS files too, not just *.ts. The base no-unused-vars also double-fires on
{ files: ['**/*.ts', '**/*.tsx'], rules: { 'no-undef': 'off' } }, // type-signature params and enum members, which @typescript-eslint/no-unused-vars handles instead.
{
files: ['**/*.ts', '**/*.tsx'],
rules: { 'no-undef': 'off', 'no-unused-vars': 'off' },
},
]; ];