Skip to content

Disable rules from eslint-plugin-node that TS handles#160

Merged
calebeby merged 3 commits intomasterfrom
disable-import-rules
Sep 15, 2020
Merged

Disable rules from eslint-plugin-node that TS handles#160
calebeby merged 3 commits intomasterfrom
disable-import-rules

Conversation

@calebeby
Copy link
Copy Markdown
Member

I was working through changes necessary for this PR and I noticed that these two linting rules were causing problems.

The problems happen in scenarios like this:

import './a'

If the a file is a .ts file, then the code is not actually a problem, but the node/no-missing-import and node/no-missing-require rules flag it as a problem, since they don't recognize .ts files. It is possible to configure those rules to support .ts files, but it is easier (and faster) to just rely on the typescript type checker to tell us if we import something that doesn't exist.

@calebeby calebeby requested a review from a team September 14, 2020 18:33
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Sep 14, 2020

🦋 Changeset is good to go

Latest commit: c5bd7d0

We got this.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@calebeby calebeby merged commit 1c5f202 into master Sep 15, 2020
@calebeby calebeby deleted the disable-import-rules branch September 15, 2020 17:15
@github-actions github-actions Bot mentioned this pull request Sep 15, 2020
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.

2 participants