Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(eslint): use eslint-import-resolver-typescript to fix import/no-unresolved #12016

Merged
merged 1 commit into from
Nov 29, 2021

Conversation

chentsulin
Copy link
Contributor

@chentsulin chentsulin commented Oct 30, 2021

Summary

#12011

In the TypeScript section of eslint-plugin-import's README, they say "You will also need to install and configure the TypeScript resolver: eslint-import-resolver-typescript."
It uses paths defined in tsconfig.json to help resolving the packages.

Test plan

yarn lint on my machine returns no errors.

@@ -10,17 +10,19 @@ import dns from 'dns';
// eslint-disable-next-line no-restricted-imports
import {readFileSync} from 'fs';
import {createRequire} from 'module';
import prefixDns from 'node:dns';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is due to #12007 - can you just roll back the change CI is unhappy about?

@codecov-commenter
Copy link

Codecov Report

Merging #12016 (cdaa0c3) into main (eb5b7d3) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #12016   +/-   ##
=======================================
  Coverage   68.90%   68.90%           
=======================================
  Files         324      324           
  Lines       16681    16681           
  Branches     4814     4814           
=======================================
  Hits        11494    11494           
  Misses       5154     5154           
  Partials       33       33           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb5b7d3...cdaa0c3. Read the comment docs.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@SimenB SimenB merged commit 40a9027 into jestjs:main Nov 29, 2021
@chentsulin chentsulin deleted the fix-no-unresolved branch November 29, 2021 16:26
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants