Skip to content

Commit 66a9670

Browse files
committed
fix: streamline no-shadow handling
1 parent 92dcf3a commit 66a9670

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.eslintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ module.exports = {
4848
'n/no-unsupported-features/es-syntax': 'off',
4949
'@typescript-eslint/no-extra-semi': 'off',
5050
'n/no-missing-import': 'off',
51+
// https://github.com/typescript-eslint/typescript-eslint/issues/2483
52+
'no-shadow': 'off',
53+
'@typescript-eslint/no-shadow': 'error',
5154
},
5255
},
5356
{

packages/runtime/src/helpers/types.ts

-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ export interface RoutesManifest {
5252
rewrites: Rewrites
5353
}
5454

55-
// I have no idea what eslint is up to here but it gives an error
56-
// eslint-disable-next-line no-shadow
5755
export const enum ApiRouteType {
5856
SCHEDULED = 'experimental-scheduled',
5957
BACKGROUND = 'experimental-background',

0 commit comments

Comments
 (0)