Skip to content

[StimulusBundle] ESLint unhappy with escape \/ #60983

Closed
symfony/recipes
#1436
@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy