|
1 | 1 | --- |
2 | 2 | source: crates/oxc_linter/src/tester.rs |
3 | 3 | --- |
4 | | - ⚠ eslint-plugin-react(react-in-jsx-scope): 'React' must be in scope when using JSX |
| 4 | + ⚠ eslint-plugin-react(react-in-jsx-scope): `React` must be in scope when using JSX. |
5 | 5 | ╭─[react_in_jsx_scope.tsx:1:15] |
6 | 6 | 1 │ var App, a = <App />; |
7 | 7 | · ─── |
8 | 8 | ╰──── |
9 | 9 | help: When using JSX, `<a />` expands to `React.createElement("a")`. Therefore the `React` variable must be in scope. |
10 | 10 |
|
11 | | - ⚠ eslint-plugin-react(react-in-jsx-scope): 'React' must be in scope when using JSX |
| 11 | + ⚠ eslint-plugin-react(react-in-jsx-scope): `React` must be in scope when using JSX. |
12 | 12 | ╭─[react_in_jsx_scope.tsx:1:10] |
13 | 13 | 1 │ var a = <App />; |
14 | 14 | · ─── |
15 | 15 | ╰──── |
16 | 16 | help: When using JSX, `<a />` expands to `React.createElement("a")`. Therefore the `React` variable must be in scope. |
17 | 17 |
|
18 | | - ⚠ eslint-plugin-react(react-in-jsx-scope): 'React' must be in scope when using JSX |
| 18 | + ⚠ eslint-plugin-react(react-in-jsx-scope): `React` must be in scope when using JSX. |
19 | 19 | ╭─[react_in_jsx_scope.tsx:1:10] |
20 | 20 | 1 │ var a = <img />; |
21 | 21 | · ─── |
22 | 22 | ╰──── |
23 | 23 | help: When using JSX, `<a />` expands to `React.createElement("a")`. Therefore the `React` variable must be in scope. |
24 | 24 |
|
25 | | - ⚠ eslint-plugin-react(react-in-jsx-scope): 'React' must be in scope when using JSX |
| 25 | + ⚠ eslint-plugin-react(react-in-jsx-scope): `React` must be in scope when using JSX. |
26 | 26 | ╭─[react_in_jsx_scope.tsx:1:9] |
27 | 27 | 1 │ var a = <>fragment</>; |
28 | 28 | · ── |
29 | 29 | ╰──── |
30 | 30 | help: When using JSX, `<a />` expands to `React.createElement("a")`. Therefore the `React` variable must be in scope. |
31 | 31 |
|
32 | | - ⚠ eslint-plugin-react(react-in-jsx-scope): 'React' must be in scope when using JSX |
| 32 | + ⚠ eslint-plugin-react(react-in-jsx-scope): `React` must be in scope when using JSX. |
33 | 33 | ╭─[react_in_jsx_scope.tsx:1:15] |
34 | 34 | 1 │ var Foo, a = <img />; |
35 | 35 | · ─── |
|
0 commit comments