Skip to content

Getting an error, don't know how to fix, or where to start looking #360

@1951FDG

Description

@1951FDG

eslint v8.57.1
eslint-find-rules v4.1.0

eslint-find-rules -u ./node_modules/@eslint/js/src/configs/eslint-recommended.js

Error: 'filePath' should not be a directory path.

at CLIEngine.getConfigForFile (/xxx/node_modules/eslint/lib/cli-engine/cli-engine.js:974:17)
at ESLint.calculateConfigForFile (/xxx/node_modules/eslint/lib/eslint/eslint.js:667:26)
at /xxx/node_modules/eslint-find-rules/dist/lib/rule-finder.js:30:58
at Generator.next (<anonymous>)
at step (/xxx/node_modules/eslint-find-rules/dist/lib/rule-finder.js:81:191)
at /xxx/node_modules/eslint-find-rules/dist/lib/rule-finder.js:81:361 {
  messageTemplate: 'print-config-with-directory-path'
}

Apparently the config file path is accepted, because otherwise an additional error would be reported;

Error: Cannot read config file:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions