You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add-ons Linter doesn't support the v flag (unicodeSets) in regular expression.
constre=/foo/v;
What happened?
Code: JS_SYNTAX_ERROR
Message: JavaScript syntax error (Parsing as module error: Invalid regular expression flag at line: 3 and column: 14) (Parsing as script error: Invalid regular expression flag at line: 3 and column: 14)
Description: There is a JavaScript syntax error in your code, which might be related to some experimental JavaScript features that aren't an official part of the language specification and therefore not supported yet. The validation cannot continue on this file.
What did you expect to happen?
No error.
Anything else we should know?
I think it's the JavaScript parser that doesn't support this new feature. If Add-ons Linter uses ESLint to parse JavaScript files, ESLint 9.10.0 supports v flag. Add-ons Linter uses ESLint 8.57.1 (that is deprecated). Upgrading to v9 requires migrating to FlatConfig. The other eslint-plugin-no-unsanitized dependency has been compatible with ESLint v9 since 4.1.0.
The text was updated successfully, but these errors were encountered:
Describe the problem and steps to reproduce it:
Add-ons Linter doesn't support the
v
flag (unicodeSets
) in regular expression.What happened?
What did you expect to happen?
No error.
Anything else we should know?
I think it's the JavaScript parser that doesn't support this new feature. If Add-ons Linter uses ESLint to parse JavaScript files, ESLint 9.10.0 supports
v
flag. Add-ons Linter uses ESLint 8.57.1 (that is deprecated). Upgrading to v9 requires migrating to FlatConfig. The other eslint-plugin-no-unsanitized dependency has been compatible with ESLint v9 since 4.1.0.The text was updated successfully, but these errors were encountered: