Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Codemod adds extra dot path #84616

Open
Open
Labels
LintingRelated to `next lint` or ESLint with Next.js.
@boiseiben

Description

@boiseiben

Link to the code that reproduces this issue

https://github.com/boiseiben/reproduction-app

To Reproduce

Starting from scratch (alternatively, just run the last command after cloning the repo linked above):

pnpm create next-app@canary --example reproduction-template reproduction-appcd reproduction-apppnpx @next/codemod@canary next-lint-to-eslint-cli.

Current vs. Expected behavior

The diff on package.json includes in part:

-    "lint": "next lint",-    "lint:fix": "next lint --fix .",+    "lint": "eslint .",+    "lint:fix": "eslint --fix . .",

That last line seems to have an extra . at the end.

Provide environment information

Operating System:  Platform: linux  Arch: x64  Version:#1 SMP PREEMPT_DYNAMIC Mon Apr 21 17:08:54 UTC 2025  Available memory (MB): 31770  Available CPU cores: 12Binaries:  Node: 24.2.0  npm: 11.3.0  Yarn: N/A  pnpm: 10.15.0Relevant Packages:  next: 15.6.0-canary.51 // Latest available version is detected (15.6.0-canary.51).  eslint-config-next: N/A  react: 19.2.0  react-dom: 19.2.0  typescript: N/ANext.js Config:  output: N/A

Which area(s) are affected? (Select all that apply)

Linting

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

I am pretty sure the issue came fromthis commit and is on or nearthis line, which should have another conditional around it based on checking for what paths might already exist in the command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LintingRelated to `next lint` or ESLint with Next.js.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp