Skip to content

Commit

Permalink
fix: streamline no-shadow handling
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed May 2, 2023
1 parent 92dcf3a commit 66a9670
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ module.exports = {
'n/no-unsupported-features/es-syntax': 'off',
'@typescript-eslint/no-extra-semi': 'off',
'n/no-missing-import': 'off',
// https://github.com/typescript-eslint/typescript-eslint/issues/2483
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
},
},
{
Expand Down
2 changes: 0 additions & 2 deletions packages/runtime/src/helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ export interface RoutesManifest {
rewrites: Rewrites
}

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

0 comments on commit 66a9670

Please sign in to comment.