Skip to content

Commit

Permalink
lint: Enable no-undef
Browse files Browse the repository at this point in the history
  • Loading branch information
gnprice committed May 14, 2022
1 parent dfc90ec commit e32bce5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ rules:
indent: off

# Rules we may want, but need tweaking options and/or migrating code
no-undef: off
no-redeclare: off

# Rules we don't want
Expand All @@ -60,6 +59,8 @@ rules:

overrides:
- files: 't/**/*.d.ts'
globals:
JSX: readonly
rules:
# Allow some things in our test inputs that we don't in normal code.
no-unused-vars: off
Expand Down
2 changes: 1 addition & 1 deletion t/sample/members.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ declare const vIndexer: {

declare class CIndexer {
plainProperty: number[];
[key: number]: string;
[key: number]: string; // eslint-disable-line no-undef
}

declare interface IIndexer {
Expand Down

0 comments on commit e32bce5

Please sign in to comment.