import-js / import-js/eslint-plugin-import
ecmaVersion in recommended config is outdated
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
Config `import/recommended` has a hardcoded `parserOptions.ecmaVersion` of 2018
This has the side effect of not being able to parse my `eslint.config.mjs` which uses nullish coalescing (Unless I override with `languageOptions.ecmaVersion = latest` )
Is there a technical reason for not setting it to `latest` (which is currently the ESLint default)?
Contributor guide
Research direction
Start by locating the implementation of the `import/recommended` configuration and inspect how it sets `parserOptions.ecmaVersion`. Check the relevant ESLint configuration behavior for `latest`, then verify that an `eslint.config.mjs` using nullish coalescing parses without an override. Done means the recommended config no longer blocks this syntax, with existing configuration behavior preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- eslint, javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100