Skip to content

[StimulusBundle] ESLint unhappy with escape \/ #60983

Open
@craigh

Description

@craigh

Symfony version(s) affected

2.27

Description

The recipe adds csrf_protection_controller.js which has this line:

const tokenCheck = /^[-_\/+a-zA-Z0-9]{24,}$/;

but ESLint doesn't like it

 error  ESLintError4:01:29 PM
[eslint] 
/builds/clerkbase/onboard-app/assets/controllers/csrf_protection_controller.js
  2:25  error  Unnecessary escape character: \/  no-useless-escape

How to reproduce

run ESLint plugin on encore build

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions