Commit a9e1261
feat(linter): implement react-refresh/only-export-components (#14122)
## Summary
close: #12386
I re-implemented only-export-components rule for react.
originals:
- docs:
https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/main/README.md
- code:
https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/main/src/only-export-components.ts
- test:
https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/main/src/only-export-components.test.ts
---------
Co-authored-by: Cameron Clark <cameron.clark@hey.com>1 parent b13c4bd commit a9e1261
File tree
4 files changed
+1046
-0
lines changed- crates/oxc_linter/src
- generated
- rules/react
- snapshots
4 files changed
+1046
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2174 | 2174 | | |
2175 | 2175 | | |
2176 | 2176 | | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
2177 | 2182 | | |
2178 | 2183 | | |
2179 | 2184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| 372 | + | |
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
| |||
1036 | 1037 | | |
1037 | 1038 | | |
1038 | 1039 | | |
| 1040 | + | |
1039 | 1041 | | |
1040 | 1042 | | |
1041 | 1043 | | |
| |||
0 commit comments