Skip to content

Commit 3928c62

Browse files
committed
docs(plugins/naming-convention): update filename rule docs, closes #859
1 parent b36ac05 commit 3928c62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/pages/docs/rules/naming-convention-filename.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Enforces naming convention for JSX files. Can be used to enforce PascalCase, cam
1515
```bash filename="Terminal" {3}
1616
npx eslint --rule '@eslint-react/naming-convention/filename: ["warn", { "rule": "PascalCase" }]' .
1717

18-
src/components/Component.tsx
19-
1:1 error "File name `component.tsx` does not match `PascalCase`. Should rename to `Component.tsx` react/jsx-filename-naming-convention
18+
src/components/component.tsx
19+
1:1 error "File name `component.tsx` does not match `PascalCase`. Should rename to `Component.tsx` @eslint-react/naming-convention/filename
2020
2121
✖ 1 problems (0 errors, 1 warnings)
2222
```
@@ -25,7 +25,7 @@ src/components/Component.tsx
2525
npx eslint --rule '@eslint-react/naming-convention/filename: ["warn", { "rule": "kebab-case" }]' .
2626
2727
src/components/example_component.tsx
28-
1:1 error "File name `example_component.tsx` does not match `kebab-case`. Should rename to `example-component.tsx` react/jsx-filename-naming-convention
28+
1:1 error "File name `example_component.tsx` does not match `kebab-case`. Should rename to `example-component.tsx` @eslint-react/naming-convention/filename
2929

3030
✖ 1 problems (0 errors, 1 warnings)
3131
```

0 commit comments

Comments
 (0)