Skip to content

Port no-declare-current-package tslint->eslint#645

Merged
sandersn merged 2 commits into
masterfrom
port-no-declare-current-package
Mar 22, 2023
Merged

Port no-declare-current-package tslint->eslint#645
sandersn merged 2 commits into
masterfrom
port-no-declare-current-package

Conversation

@sandersn
Copy link
Copy Markdown
Member

  1. I used program.getRootFileNames just like the old rule. Although that may be inefficient in typescript-eslint, I didn't want to have to write a different way to locate the package name.
  2. flatMap's type interferes with changes post-4.7, so I simplified the type.

@sandersn sandersn requested a review from andrewbranch as a code owner March 21, 2023 22:36
@sandersn sandersn merged commit 5d65907 into master Mar 22, 2023
@sandersn sandersn deleted the port-no-declare-current-package branch March 22, 2023 18:07
sandersn added a commit to DefinitelyTyped/DefinitelyTyped that referenced this pull request Mar 22, 2023
sandersn added a commit to DefinitelyTyped/DefinitelyTyped that referenced this pull request Mar 22, 2023
* Port no-declare-current-package

Depends on
microsoft/DefinitelyTyped-tools#645

* add no-single-declare-module exemptions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant