Skip to content

fix: do not consider resolved path in extensions rule #374

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

Conversation

dword-design
Copy link
Contributor

@dword-design dword-design commented Jun 5, 2025

I just ran into the following issue:

I'm migrating to TypeScript and I have import foo from './foo.js'; in a file and there is foo.ts. I also have 'import-x/extensions': ['error', 'ignorePackages', { js: 'never', ts: 'never' }] configured so that the dev omits .jsand then the resolver will correctly resolve foo.ts. But this is not the case because eslint-plugin-import-x will only suggest to omit the extension if the extension of the import statement is equal to the resolved path.

My suggestion is to not || the paths but the extensions. So, if the import path has an extension, take this, otherwise take the one from the resolved path.

Yeah, I think the solution isn't ideal yet, there are failing tests. Maybe someone can help with it.

EDIT: Closed in favor of extensionAlias option from eslint-import-resolver-typescript which prevents the case where import path and resolved path are not aligned.


Important

Change extension determination in extensions.ts to use importPath directly, affecting ESLint extension rules in TypeScript projects.

  • Behavior:
    • In extensions.ts, change extension determination to use importPath directly instead of resolvedPath.
    • Affects ESLint rule for extensions, particularly in TypeScript projects where import and resolved paths differ.
  • Functions:
    • Modify createRule in extensions.ts to use path.extname(importPath).slice(1) for extension extraction.
  • Misc:
    • Remove unused resolvedPath variable in extensions.ts.

This description was created by Ellipsis for 5a078d5. You can customize this summary. It will automatically update as commits are pushed.

Summary by CodeRabbit

  • Refactor
    • Simplified the process for extracting file extensions from import paths, improving efficiency.

Copy link

coderabbitai bot commented Jun 5, 2025

Walkthrough

The change reverses the priority for extracting file extensions from import paths. It now first attempts to get the extension from the original import path string, and only if that fails, it falls back to using the resolved import path.

Changes

Files Change Summary
src/rules/extensions.ts Reversed priority for extracting file extensions: now tries original import path first, then resolved path.

Possibly related PRs

Suggested labels

bug

Suggested reviewers

  • JounQin

Poem

A hop and a skip, the code's now more neat,
No more resolving paths before finding the treat.
Extensions are plucked right from the vine,
Simpler and clearer—oh, how divine!
🐇✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

src/rules/extensions.ts

Oops! Something went wrong! :(

ESLint: 9.28.0

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/lib/index.js' imported from /eslint.config.js
at finalizeResolution (node:internal/modules/esm/resolve:274:11)
at moduleResolve (node:internal/modules/esm/resolve:859:10)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:799:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:723:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:706:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:307:38)
at #link (node:internal/modules/esm/module_job:170:49)


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bed3350 and e6f8e88.

📒 Files selected for processing (1)
  • src/rules/extensions.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/rules/extensions.ts
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Codacy Static Code Analysis
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codesandbox-ci bot commented Jun 5, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

pkg-pr-new bot commented Jun 5, 2025

Open in StackBlitz

npm i https://pkg.pr.new/eslint-plugin-import-x@374

commit: 5a078d5

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to 5a078d5 in 49 seconds. Click for details.
  • Reviewed 17 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/rules/extensions.ts:326
  • Draft comment:
    Using the raw importPath to extract the extension now aligns with the intended behavior described in the PR. Verify that this change correctly handles edge cases (e.g. TS files resolved from .js imports) and that tests are updated accordingly.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_5f04JNX6JDw7WJ5U

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@JounQin
Copy link
Member

JounQin commented Jun 5, 2025

Tests are failing, or maybe you can raise a new issue or a PR with failing test case first.

Copy link

changeset-bot bot commented Jun 5, 2025

⚠️ No Changeset found

Latest commit: e6f8e88

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@@ -328,9 +328,9 @@ export default createRule<Options, MessageId>({

const resolvedPath = resolve(importPath, context)

// get extension from resolved path, if possible.
// for unresolved, use source value.
const extension = path.extname(resolvedPath || importPath).slice(1)
Copy link
Member

@JounQin JounQin Jun 5, 2025

Choose a reason for hiding this comment

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

This change is incorrect for resolving .xyz but ./abc.js or ./abc is imported.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5a078d5 and bed3350.

📒 Files selected for processing (1)
  • src/rules/extensions.ts (1 hunks)
🧰 Additional context used
🪛 GitHub Check: Lint and Test with Node.js lts/* and ESLint 9 on ubuntu-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 8 on windows-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 8.56 on windows-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on windows-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 9 on windows-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 8.56 on windows-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 9 on windows-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on windows-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on windows-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 8.56 on windows-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 9 on ubuntu-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 8 on ubuntu-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on windows-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 9 on windows-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 9 on ubuntu-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on ubuntu-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 9 on macos-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on windows-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on ubuntu-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 8.56 on ubuntu-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 8.56 on ubuntu-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on macos-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on ubuntu-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on ubuntu-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on macos-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 8.56 on ubuntu-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on macos-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on ubuntu-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on macos-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 8.56 on macos-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 9 on ubuntu-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 8.56 on macos-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 9 on macos-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on macos-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 8.56 on macos-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 9 on macos-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 8 on macos-latest
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: publish
src/rules/extensions.ts

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Actions: CI
src/rules/extensions.ts

[error] 333-333: TypeScript error TS2345: Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Actions: Publish Any Commit
src/rules/extensions.ts

[error] 333-333: TypeScript error TS2345: Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🔇 Additional comments (1)
src/rules/extensions.ts (1)

331-333:

❓ Verification inconclusive

Verify the impact on existing functionality.

The logic change from prioritizing resolved path extension to import path extension aligns with the TypeScript migration use case. However, the failing tests mentioned in the PR comments suggest this change may have broader implications.

Please run the following script to understand which tests are failing and their expected behavior:


🏁 Script executed:

#!/bin/bash
# Check test files related to extensions rule
echo "=== Finding extension-related test files ==="
fd -e js -e ts test | grep -i extension

echo -e "\n=== Searching for test cases that might be affected ==="
rg -A 10 -B 5 "resolvedPath|resolved.*path" --type ts --type js

echo -e "\n=== Looking for existing test cases with import/resolved path discrepancies ==="
rg -A 15 -B 5 "\.js.*\.ts|\.ts.*\.js" --type ts --type js

Length of output: 31446


Verify extension resolution logic and add coverage tests

I didn’t find any existing specs exercising the new prioritization of importPath’s extension over resolvedPath (no extensions-named tests were detected). Please confirm that this change won’t regress existing behavior and consider adding explicit test cases for:

  • src/rules/extensions.ts (lines 331–333)
    const extension =
      path.extname(importPath)?.slice?.(1) ||
      path.extname(resolvedPath).slice(1)
  • Scenarios where importPath and resolvedPath have different extensions (e.g. .ts vs. .js), and when importPath lacks an extension.
  • Fallback behavior when importPath has no sliceable extension.

Add or update tests under test/rules/extensions.spec.ts (or similarly named) to cover these cases.

🧰 Tools
🪛 GitHub Check: Lint and Test with Node.js lts/* and ESLint 9 on ubuntu-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 8 on windows-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 8.56 on windows-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on windows-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 9 on windows-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 8.56 on windows-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 9 on windows-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on windows-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on windows-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 8.56 on windows-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 9 on ubuntu-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 8 on ubuntu-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on windows-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 9 on windows-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 9 on ubuntu-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on ubuntu-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 9 on macos-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on windows-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on ubuntu-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 8.56 on ubuntu-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 8.56 on ubuntu-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on macos-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on ubuntu-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on ubuntu-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on macos-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 8.56 on ubuntu-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on macos-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on ubuntu-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on macos-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 8.56 on macos-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 9 on ubuntu-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 8.56 on macos-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 9 on macos-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on macos-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 22 and ESLint 8.56 on macos-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 18 and ESLint 9 on macos-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: Lint and Test with Node.js 24 and ESLint 8 on macos-latest

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Check: publish

[failure] 333-333:
Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Actions: CI

[error] 333-333: TypeScript error TS2345: Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

🪛 GitHub Actions: Publish Any Commit

[error] 333-333: TypeScript error TS2345: Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'.

@dword-design dword-design deleted the extensions-do-not-consider-resolved-path branch June 5, 2025 20:00
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