Skip to content

tools: strange linting issue #19250

Description

@vsemozhetbyt
  • Version: master
  • Platform: Windows 7 x64
  • Subsystem: tools

The case of drive letter (i.e. j: vs J:) causes different behavior. Moreover, this difference is opposite in various shells.

cmd.exe:

j:\temp\_git\node-fork> node j:/temp/_git/node-fork/tools/node_modules/eslint/bin/eslint.js .eslintrc.js

[no errors]

j:\temp\_git\node-fork> node J:/temp/_git/node-fork/tools/node_modules/eslint/bin/eslint.js .eslintrc.js

j:\temp\_git\node-fork\.eslintrc.js
  1:1  error  Definition for rule 'node-core/no-unescaped-regexp-dot' was not found  node-core/no-unescaped-regexp-dot

✖ 1 problem (1 error, 0 warnings)

Git Bash:

vmb@vmb-nb MINGW64 /j/temp/_git/node-fork (master)
$ node j:/temp/_git/node-fork/tools/node_modules/eslint/bin/eslint.js .eslintrc.js

J:\temp\_git\node-fork\.eslintrc.js
  1:1  error  Definition for rule 'node-core/no-unescaped-regexp-dot' was not found  node-core/no-unescaped-regexp-dot

✖ 1 problem (1 error, 0 warnings)

vmb@vmb-nb MINGW64 /j/temp/_git/node-fork (master)
$ node J:/temp/_git/node-fork/tools/node_modules/eslint/bin/eslint.js .eslintrc.js

[no errors]

cc @nodejs/linting @nodejs/platform-windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues and PRs for confirmed bugs.toolsIssues and PRs related to the tools directory.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions