-
-
Notifications
You must be signed in to change notification settings - Fork 263
Open
Labels
bugSomething isn't workingSomething isn't workingnostaleThis issue or pull request is not stale, keep it openThis issue or pull request is not stale, keep it open
Description
Describe the bug
I tried pointing MegaLinter to my eslint.config.js
, but it yielded the error:
❌ Linted [JAVASCRIPT] files with [eslint]: Found 1 error(s) - (1.49s)
- Using [eslint v8.57.0] https://megalinter.io/7.11.1/descriptors/javascript_eslint
- MegaLinter key: [JAVASCRIPT_ES]
- Rules config: [/eslint.config.js]
- Number of files analyzed: [20]
--Error detail:
Invalid option '--eslintrc' - perhaps you meant '--ignore'?
You're using eslint.config.js, some command line flags are no longer available. Please see https://eslint.org/docs/latest/use/command-line-interface for details.
To Reproduce
- Add these settings to
.mega-linter.yml
JAVASCRIPT_ES_CONFIG_FILE: ./eslint.config.js
- Run megalinter
Expected behavior
Flat ESLint config file is picked up, and runs without error.
ethanchristensen01, kilinkis, Ali-Dalal and vogler
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingnostaleThis issue or pull request is not stale, keep it openThis issue or pull request is not stale, keep it open