Turn off no-undef for the TS files too. [skip build]
This commit is contained in:
1 parent
d6fe94ff48
commit
c46d4d367e
1 file changed
+3
-1
+3
-1
@@ -94,5 +94,7 @@ export default [
|
||||
...(config.settings ? { settings: config.settings } : {}),
|
||||
})),
|
||||
),
|
||||
{ files: ['*.ts'], rules: { 'no-undef': 'off' } },
|
||||
// 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.
|
||||
{ files: ['**/*.ts', '**/*.tsx'], rules: { 'no-undef': 'off' } },
|
||||
];
|
||||
Reference in new issue
Block a user