File tree Expand file tree Collapse file tree 17 files changed +75
-90
lines changed
eslint-plugin-react-debug/src
eslint-plugin-react-dom/src
eslint-plugin-react-naming-convention/src
eslint-plugin-react-web-api/src
eslint-plugin-react-x/src Expand file tree Collapse file tree 17 files changed +75
-90
lines changed Original file line number Diff line number Diff line change 22@import "fumadocs-ui/css/neutral.css" ;
33@import "fumadocs-ui/css/preset.css" ;
44
5+ @source "../components/fumadocs-ui/**/*.js" ;
6+
57@source "." ;
68@source "../components" ;
79@source "../content" ;
8- @source "../components/fumadocs-ui/dist/**/*.js" ;
Original file line number Diff line number Diff line change 115115 },
116116 "pnpm" : {
117117 "overrides" : {
118- "is-core-module" : " npm:@socketregistry/is-core-module@^1.0.7" ,
119- "safe-buffer" : " npm:@socketregistry/safe-buffer@^1.0.6" ,
120- "safer-buffer" : " npm:@socketregistry/safer-buffer@^1.0.6" ,
121- "typedarray" : " npm:@socketregistry/typedarray@^1.0.5" ,
122118 "@types/react" : " ^19.0.10" ,
123119 "@types/react-dom" : " ^19.0.4" ,
124120 "cross-spawn" : " ^7.0.6" ,
125121 "esbuild" : " ^0.25.0" ,
122+ "is-core-module" : " npm:@socketregistry/is-core-module@^1.0.7" ,
126123 "next" : " ^15.1.7" ,
127124 "react" : " ^19.0.0" ,
128125 "react-dom" : " ^19.0.0" ,
126+ "safe-buffer" : " npm:@socketregistry/safe-buffer@^1.0.6" ,
127+ "safer-buffer" : " npm:@socketregistry/safer-buffer@^1.0.6" ,
129128 "ts-api-utils" : " ^2.0.1" ,
129+ "typedarray" : " npm:@socketregistry/typedarray@^1.0.5" ,
130130 "typescript" : " ^5.7.3"
131131 }
132132 }
Original file line number Diff line number Diff line change 1- import type { Linter } from "eslint" ;
2-
1+ import type { RulePreset } from "@eslint-react/shared" ;
32import * as allConfig from "./configs/all" ;
43import { plugin } from "./plugin" ;
54
6- function makeConfig ( config : Linter . Config ) : Linter . Config {
5+ function makeConfig ( config : { name : string ; rules : RulePreset } ) {
76 return {
87 ...config ,
98 plugins : {
10- ...config . plugins ,
11- "react-dom" : plugin ,
9+ "react-x" : plugin ,
1210 } ,
1311 } ;
1412}
1513
16- function toLegacyConfig ( { rules } : Linter . Config ) : Linter . LegacyConfig {
14+ function makeLegacyConfig ( config : { rules : RulePreset } ) {
1715 return {
18- plugins : [ "react-debug" ] ,
19- rules ,
16+ ... config ,
17+ plugins : [ "react-x" ] ,
2018 } ;
2119}
2220
2321export default {
2422 ...plugin ,
2523 configs : {
2624 [ "all" ] : makeConfig ( allConfig ) ,
27- [ "all-legacy" ] : toLegacyConfig ( allConfig ) ,
25+ [ "all-legacy" ] : makeLegacyConfig ( allConfig ) ,
2826 } ,
2927} ;
Original file line number Diff line number Diff line change @@ -21,5 +21,4 @@ export const plugin = {
2121 /** @deprecated Use `hook` instead */
2222 "react-hooks" : hook ,
2323 } ,
24- // remove this type assertion when the typescript-eslint and eslint type incompatible issue is resolved
25- } as unknown as ESLint . Plugin ;
24+ } as const ;
Original file line number Diff line number Diff line change 1- import type { Linter } from "eslint" ;
2-
1+ import type { RulePreset } from "@eslint-react/shared" ;
32import * as recommendedConfig from "./configs/recommended" ;
43import { plugin } from "./plugin" ;
54
6- function makeConfig ( config : Linter . Config ) : Linter . Config {
5+ function makeConfig ( config : { name : string ; rules : RulePreset } ) {
76 return {
87 ...config ,
98 plugins : {
10- ...config . plugins ,
11- "react-dom" : plugin ,
9+ "react-x" : plugin ,
1210 } ,
1311 } ;
1412}
1513
16- function toLegacyConfig ( { rules } : Linter . Config ) : Linter . LegacyConfig {
14+ function makeLegacyConfig ( config : { rules : RulePreset } ) {
1715 return {
18- plugins : [ "react-dom" ] ,
19- rules ,
16+ ... config ,
17+ plugins : [ "react-x" ] ,
2018 } ;
2119}
2220
2321export default {
2422 ...plugin ,
2523 configs : {
2624 [ "recommended" ] : makeConfig ( recommendedConfig ) ,
27- [ "recommended-legacy" ] : toLegacyConfig ( recommendedConfig ) ,
25+ [ "recommended-legacy" ] : makeLegacyConfig ( recommendedConfig ) ,
2826 } ,
2927} ;
Original file line number Diff line number Diff line change @@ -37,5 +37,4 @@ export const plugin = {
3737 /** @deprecated Use `no-void-elements-with-children` instead */
3838 "no-children-in-void-dom-elements" : noVoidElementsWithChildren ,
3939 } ,
40- // remove this type assertion when the typescript-eslint and eslint type incompatible issue is resolved
41- } as unknown as ESLint . Plugin ;
40+ } as const ;
Original file line number Diff line number Diff line change 1- import type { Linter } from "eslint" ;
2-
1+ import type { RulePreset } from "@eslint-react/shared" ;
32import * as recommendedConfig from "./configs/recommended" ;
43import { plugin } from "./plugin" ;
54
6- function makeConfig ( config : Linter . Config ) : Linter . Config {
5+ function makeConfig ( config : { name : string ; rules : RulePreset } ) {
76 return {
87 ...config ,
98 plugins : {
10- ...config . plugins ,
11- "react-hooks-extra" : plugin ,
9+ "react-x" : plugin ,
1210 } ,
1311 } ;
1412}
1513
16- function toLegacyConfig ( { rules } : Linter . Config ) : Linter . LegacyConfig {
14+ function makeLegacyConfig ( config : { rules : RulePreset } ) {
1715 return {
18- plugins : [ "react-hooks-extra" ] ,
19- rules ,
16+ ... config ,
17+ plugins : [ "react-x" ] ,
2018 } ;
2119}
2220
2321export default {
2422 ...plugin ,
2523 configs : {
2624 [ "recommended" ] : makeConfig ( recommendedConfig ) ,
27- [ "recommended-legacy" ] : toLegacyConfig ( recommendedConfig ) ,
25+ [ "recommended-legacy" ] : makeLegacyConfig ( recommendedConfig ) ,
2826 } ,
2927} ;
Original file line number Diff line number Diff line change @@ -31,5 +31,4 @@ export const plugin = {
3131 /** @deprecated Use `no-useless-custom-hooks` instead */
3232 "no-redundant-custom-hook" : noUselessCustomHooks ,
3333 } ,
34- // remove this type assertion when the typescript-eslint and eslint type incompatible issue is resolved
35- } as unknown as ESLint . Plugin ;
34+ } as const ;
Original file line number Diff line number Diff line change 1- import type { Linter } from "eslint" ;
2-
1+ import type { RulePreset } from "@eslint-react/shared" ;
32import * as recommendedConfig from "./configs/recommended" ;
43import { plugin } from "./plugin" ;
54
6- function makeConfig ( config : Linter . Config ) : Linter . Config {
5+ function makeConfig ( config : { name : string ; rules : RulePreset } ) {
76 return {
87 ...config ,
98 plugins : {
10- ...config . plugins ,
11- "react-naming-convention" : plugin ,
9+ "react-x" : plugin ,
1210 } ,
1311 } ;
1412}
1513
16- function toLegacyConfig ( { rules } : Linter . Config ) : Linter . LegacyConfig {
14+ function makeLegacyConfig ( config : { rules : RulePreset } ) {
1715 return {
18- plugins : [ "react-naming-convention" ] ,
19- rules ,
16+ ... config ,
17+ plugins : [ "react-x" ] ,
2018 } ;
2119}
2220
2321export default {
2422 ...plugin ,
2523 configs : {
2624 [ "recommended" ] : makeConfig ( recommendedConfig ) ,
27- [ "recommended-legacy" ] : toLegacyConfig ( recommendedConfig ) ,
25+ [ "recommended-legacy" ] : makeLegacyConfig ( recommendedConfig ) ,
2826 } ,
2927} ;
Original file line number Diff line number Diff line change @@ -17,5 +17,4 @@ export const plugin = {
1717 "filename-extension" : filenameExtension ,
1818 "use-state" : useState ,
1919 } ,
20- // remove this type assertion when the typescript-eslint and eslint type incompatible issue is resolved
21- } as unknown as ESLint . Plugin ;
20+ } as const ;
You can’t perform that action at this time.
0 commit comments