Skip to content

Commit 170c4df

Browse files
Rel1cxCopilot
andauthored
Update packages/plugins/eslint-plugin-react-naming-convention/src/rules/filename.ts
Co-authored-by: Copilot <[email protected]> Signed-off-by: REL1CX <[email protected]>
1 parent 4a2cb19 commit 170c4df

File tree

1 file changed

+4
-4
lines changed
  • packages/plugins/eslint-plugin-react-naming-convention/src/rules

1 file changed

+4
-4
lines changed

packages/plugins/eslint-plugin-react-naming-convention/src/rules/filename.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ const defaultOptions = [
3434
{
3535
excepts: [
3636
"index",
37-
"/^_/",
38-
"/^\\$/",
39-
"/^[0-9]+$/",
40-
"/^\\[[^\\]]+\\]$/",
37+
String.raw`/^_/`,
38+
String.raw`/^\$/`,
39+
String.raw`/^[0-9]+$/`,
40+
String.raw`/^\[[^\]]+\]$/`,
4141
],
4242
rule: "PascalCase",
4343
},

0 commit comments

Comments
 (0)