GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Fix] `no-unresolved`: check import() by aladdin-add · Pull Request #2026 · import-js/eslint-plugin-import

Conversation

@aladdin-add

@aladdin-add aladdin-add commented Apr 12, 2021 •
edited by ljharb
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

dynamic import has changed in estree

refs: estree/estree#197

Fixes #2024

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@aladdin-add @ljharb
[Fix] no-unresolved: check import()
96ed3c7
Fixes import-js#2024.

refs: https://github.com/estree/estree/blob/master/es2020.md#importexpression
@aladdin-add aladdin-add changed the title fix: no-unresolved check import() (fixes #2024) wip: fix: no-unresolved check import() (fixes #2024) Apr 12, 2021
@aladdin-add
aladdin-add marked this pull request as draft April 12, 2021 09:47
@coveralls

coveralls commented Apr 12, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.9%) to 82.398% when pulling 96ed3c7 on aladdin-add:issue2024 into ab82094 on benmosher:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aladdin-add aladdin-add changed the title wip: fix: no-unresolved check import() (fixes #2024) fix: no-unresolved check import() (fixes #2024) Apr 12, 2021
@aladdin-add
aladdin-add marked this pull request as ready for review April 12, 2021 10:15
@aladdin-add
aladdin-add force-pushed the issue2024 branch 2 times, most recently from 1dfde11 to 2420b04 Compare April 12, 2021 10:21
@aladdin-add

aladdin-add commented Apr 12, 2021

Copy link
Copy Markdown
Contributor Author

Require “Allow Edits” / Require “Allow Edits” (pull_request_target)

I didn't see the option in the page. :-( 

ljharb reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aladdin-add

aladdin-add commented May 10, 2021

Copy link
Copy Markdown
Contributor Author

friendly ping @ljharb

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ljharb

ljharb commented May 11, 2021

Copy link
Copy Markdown
Member

@aladdin-add i'll take a look soon, but merging this is still blocked on #1986.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ljharb

ljharb commented May 11, 2021

Copy link
Copy Markdown
Member

As for the "allow edits" failure; that's because you're making a PR from a fork that's not "aladdin-add", it's "hello-weiran", so due to a github bug, that means you'd need to explicitly give me write perms on https://github.com/hello-weiran/eslint-plugin-import so I can force push to the PR branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ljharb

ljharb commented May 12, 2021

Copy link
Copy Markdown
Member

This might be a duplicate of #2012.

I'll rebase this after landing that, and keep whatever I can.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aladdin-add

aladdin-add commented May 12, 2021

Copy link
Copy Markdown
Contributor Author

didn't notice that. seems this one is no longer needed, so it can be closed now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aladdin-add aladdin-add closed this May 12, 2021
@aladdin-add aladdin-add reopened this May 12, 2021
@aladdin-add
aladdin-add force-pushed the issue2024 branch 9 times, most recently from 2b05677 to 6f46b6f Compare May 13, 2021 02:45
@aladdin-add

aladdin-add commented May 13, 2021

Copy link
Copy Markdown
Contributor Author

the "allow edits" seems working after transfering the repo to "aladdin-add" group.

ljharb reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aladdin-add

aladdin-add commented May 13, 2021

Copy link
Copy Markdown
Contributor Author

@ljharb ptal~

ljharb reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aladdin-add
aladdin-add force-pushed the issue2024 branch 3 times, most recently from 56c4516 to 46da178 Compare May 13, 2021 03:32
@ljharb
ljharb force-pushed the issue2024 branch from 46da178 to 8789753 Compare May 13, 2021 04:54
@ljharb ljharb changed the title fix: no-unresolved check import() (fixes #2024) [Fix] no-unresolved: check import() May 13, 2021
@ljharb
ljharb force-pushed the issue2024 branch from 8789753 to 794c50d Compare May 13, 2021 05:02
@ljharb

ljharb commented May 13, 2021

Copy link
Copy Markdown
Member

@aladdin-add still looks like there's some test failures; can you take a look?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aladdin-add

aladdin-add commented May 13, 2021

Copy link
Copy Markdown
Contributor Author

sure, will do!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aladdin-add

aladdin-add commented May 13, 2021

Copy link
Copy Markdown
Contributor Author

the strange thing is: I was not able to repro it - it's working on my computer.

image
maybe it is related to the "Typescript"?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aladdin-add
aladdin-add force-pushed the issue2024 branch 2 times, most recently from 5be09ba to b7569a6 Compare May 13, 2021 06:26
@ljharb

ljharb commented May 13, 2021

Copy link
Copy Markdown
Member

What npm version are you using to install it? On node 10+, we're using npm 7 latest in CI.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aladdin-add

aladdin-add commented May 13, 2021

Copy link
Copy Markdown
Contributor Author

my local env:
node.js v16.1.0
npm: 7.12.1

On node 10+, we're using npm 7 latest in CI.

I don't think so - there was an error when upgrading npm
https://github.com/benmosher/eslint-plugin-import/pull/2026/checks?check_run_id=2573212587#step:3:532

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ljharb

ljharb commented May 13, 2021

Copy link
Copy Markdown
Member

While that’s concerning, node 15 and 16 would still ship with some version of npm 7. I’ll have to look into that failure separately.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aladdin-add

aladdin-add commented May 13, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

it seems not related to npm. I switched to npm v6.14.13(local env), and the tests was not failing.

ljharb reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aladdin-add
aladdin-add force-pushed the issue2024 branch from 4c73292 to 89ec8ca Compare May 13, 2021 09:37
@aladdin-add

aladdin-add commented May 13, 2021

Copy link
Copy Markdown
Contributor Author

it turns out the node.js/npm version is not as expected. (tested on my fork)

image

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ljharb

ljharb commented May 13, 2021

Copy link
Copy Markdown
Member

That's a problem that I thought I'd fixed :-/ i'll take a look at it on master.

aladdin-add reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ljharb

ljharb commented May 13, 2021

Copy link
Copy Markdown
Member

Fixed the tests in master, will rebase now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ljharb
ljharb force-pushed the issue2024 branch from 89ec8ca to 96ed3c7 Compare May 13, 2021 17:46
@ljharb ljharb closed this May 13, 2021
@ljharb ljharb reopened this May 13, 2021
@ljharb
ljharb merged commit 96ed3c7 into import-js:master May 13, 2021
@aladdin-add
aladdin-add deleted the issue2024 branch August 3, 2021 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

no-unresolved does not check dynamic import

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@aladdin-add @coveralls @ljharb
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.