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
Copy file name to clipboardExpand all lines: docs/rules/jsx-filename-extension.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,22 @@ function MyComponent() {
20
20
}
21
21
```
22
22
23
+
Beware this rule **only** reports JSX syntax, **not** other non-standard syntax such as experimental features or type annotations.
24
+
23
25
## Rule Options
24
26
27
+
### `allow` (default: `"always"`)
28
+
29
+
When to allow a JSX filename extension. By default all files may have a JSX extension. Set this to `as-needed` to only allow JSX file extensions in files that contain JSX syntax.
0 commit comments