Closed m-shum closed 2 months ago
Thank you for submitting the issue!
However, please also note that this is only a shared config where we can only make sure the default and recommended configs are working fine. We don't have the bandwidth to deal with custom configuration or rules conflicts. If you believe it's a bug in the rules, please create an issue to upstream plugins instead.
Thus, I am converting this to a discussion for now.
Describe the bug
no-cond-assign rule has an except-parens option. This appears to be disabled in this config, which means code like this:
while ((m = regex.exec(str)) !== null)
throws lint errors.I have tried enabling it using
'no-cond-assign': ['error', 'except-parens'],
but the config auto-changes this to'no-cond-assign': ['error', {'except-parens': true}]
, which also throws a lint error as it's incorrect syntax.Reproduction
https://stackblitz.com/edit/github-lzpjei-ccwgoe?file=.vscode%2Fsettings.json,app.vue,eslint.config.js
System Info
Used Package Manager
npm
Validations