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
RoyRao2333 opened this issue
Nov 16, 2022
· 5 comments
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionblockedThis change can't be completed until another issue is resolvedbugESLint is working incorrectlycoreRelates to ESLint's core APIs and features
mdjermanovic
added
core
Relates to ESLint's core APIs and features
accepted
There is consensus among the team that this change meets the criteria for inclusion
blocked
This change can't be completed until another issue is resolved
and removed
repro:needed
labels
Nov 16, 2022
acceptedThere is consensus among the team that this change meets the criteria for inclusionblockedThis change can't be completed until another issue is resolvedbugESLint is working incorrectlycoreRelates to ESLint's core APIs and features
Environment
Node version: 16.16.0
pnpm version: 7.15.0
Local ESLint version: 8.23.0
Operating System: macOS 13.0.1, M1 Pro
What parser are you using?
@typescript-eslint/parser
What did you do?
Forward slashes are not escaped in no-restricted-syntax.
Regex as below:
Usage as below:
No luck putting my regex in a string or RegExp either.
What did you expect to happen?
It should match the following strings:
What actually happened?
Participation
Additional comments
As you can see, my forward slashed is well escaped, but it came up with the error above.
After I removed
\/
, it went well... How to fix this?The text was updated successfully, but these errors were encountered: