1+ import  {  name ,  version  }  from  "../package.json" ; 
2+ 
13import  type  {  CompatiblePlugin  }  from  "@eslint-react/kit" ; 
24import  reactDebug  from  "eslint-plugin-react-debug" ; 
35import  reactDom  from  "eslint-plugin-react-dom" ; 
@@ -6,7 +8,6 @@ import reactNamingConvention from "eslint-plugin-react-naming-convention";
68import  reactWebApi  from  "eslint-plugin-react-web-api" ; 
79import  react  from  "eslint-plugin-react-x" ; 
810
9- import  {  name ,  version  }  from  "../package.json" ; 
1011import  *  as  allConfig  from  "./configs/all" ; 
1112import  *  as  debugConfig  from  "./configs/debug" ; 
1213import  *  as  disableConflictEslintPluginReact  from  "./configs/disable-conflict-eslint-plugin-react" ; 
@@ -15,6 +16,7 @@ import * as disableDomConfig from "./configs/disable-dom";
1516import  *  as  disableTypeCheckedConfig  from  "./configs/disable-type-checked" ; 
1617import  *  as  disableWebApiConfig  from  "./configs/disable-web-api" ; 
1718import  *  as  domConfig  from  "./configs/dom" ; 
19+ import  *  as  noDeprecatedConfig  from  "./configs/no-deprecated" ; 
1820import  *  as  offConfig  from  "./configs/off" ; 
1921import  *  as  recommendedConfig  from  "./configs/recommended" ; 
2022import  *  as  recommendedTypeCheckedConfig  from  "./configs/recommended-type-checked" ; 
@@ -40,18 +42,63 @@ const plugin: CompatiblePlugin = {
4042export  default  { 
4143  ...plugin , 
4244  configs : { 
45+     /** 
46+      * Enable all rules in this plugin 
47+      */ 
4348    [ "all" ] : allConfig , 
49+     /** 
50+      * Enable debug rules 
51+      */ 
4452    [ "debug" ] : debugConfig , 
53+     /** 
54+      * Disable rules in `eslint-plugin-react` that conflict with rules in our plugins 
55+      */ 
4556    [ "disable-conflict-eslint-plugin-react" ] : disableConflictEslintPluginReact , 
57+     /** 
58+      * Disable debug rules 
59+      */ 
4660    [ "disable-debug" ] : disableDebugConfig , 
61+     /** 
62+      * Disable rules in the `dom` preset 
63+      */ 
4764    [ "disable-dom" ] : disableDomConfig , 
65+     /** 
66+      * Disable rules that require type information 
67+      */ 
4868    [ "disable-type-checked" ] : disableTypeCheckedConfig , 
69+     /** 
70+      * Disable rules in the `web-api` preset 
71+      */ 
4972    [ "disable-web-api" ] : disableWebApiConfig , 
73+     /** 
74+      * Enable rules for `"react-dom"` 
75+      */ 
5076    [ "dom" ] : domConfig , 
77+     /** 
78+      * Enable all non-deprecated rules from the `x`, `dom`, and `web-api` presets 
79+      * This preset sets the severity of these rules to `"error"` 
80+      */ 
81+     [ "no-deprecated" ] : noDeprecatedConfig , 
82+     /** 
83+      * Disable all rules in this plugin except for debug rules 
84+      */ 
5185    [ "off" ] : offConfig , 
86+     /** 
87+      * Enforce rules that are recommended by ESLint React for general purpose React + React DOM projects 
88+      * This preset includes the `x`, `dom`, and `web-api` presets 
89+      */ 
5290    [ "recommended" ] : recommendedConfig , 
91+     /** 
92+      * Same as the `recommended-typescript` preset but enables additional rules that require type information 
93+      */ 
5394    [ "recommended-type-checked" ] : recommendedTypeCheckedConfig , 
95+     /** 
96+      * Same as the `recommended` preset but disables rules that can be enforced by TypeScript 
97+      */ 
5498    [ "recommended-typescript" ] : recommendedTypeScriptConfig , 
99+     /** 
100+      * Enable rules for `"react"` 
101+      */ 
55102    [ "x" ] : xConfig , 
56103  } , 
57104} ; 
0 commit comments