-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyESLint is working incorrectlyrepro:yesIssues with a reproducible exampleIssues with a reproducible exampleruleRelates to ESLint's core rulesRelates to ESLint's core rules
Description
Environment
Node version: v18.10.0
npm version: v8.19.2
Local ESLint version: v8.24.0 (Currently used)
Global ESLint version: Not found
Operating System: linux 5.19.0-2-amd64
What parser are you using?
Default (Espree)
What did you do?
use comma-dangle
with new flat config with languageOptions.ecmaVersion = 'latest'
and comma-dangle
configured as ['error', 'always-multiline']
What did you expect to happen?
comma-dangle
would impart 'error'
for 'functions'
What actually happened?
comma-dangle
does not impart 'error'
for 'functions'
, due to failing ecmaVersion
check
Participation
- I am willing to submit a pull request for this issue.
Additional comments
other rules suffer similarly, expecting ecmaVersion
to be a Number
Metadata
Metadata
Assignees
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyESLint is working incorrectlyrepro:yesIssues with a reproducible exampleIssues with a reproducible exampleruleRelates to ESLint's core rulesRelates to ESLint's core rules
Type
Projects
Status
Complete