11import { name , version } from "../package.json" ;
22import avoidShorthandBoolean from "./rules/avoid-shorthand-boolean" ;
33import avoidShorthandFragment from "./rules/avoid-shorthand-fragment" ;
4+ import jsxNoDuplicateProps from "./rules/jsx-no-duplicate-props" ;
5+ import jsxUsesVars from "./rules/jsx-uses-vars" ;
46import noAccessStateInSetstate from "./rules/no-access-state-in-setstate" ;
57import noArrayIndexKey from "./rules/no-array-index-key" ;
68import noChildrenCount from "./rules/no-children-count" ;
@@ -20,7 +22,6 @@ import noContextProvider from "./rules/no-context-provider";
2022import noCreateRef from "./rules/no-create-ref" ;
2123import noDefaultProps from "./rules/no-default-props" ;
2224import noDirectMutationState from "./rules/no-direct-mutation-state" ;
23- import noDuplicateJsxProps from "./rules/no-duplicate-jsx-props" ;
2425import noDuplicateKey from "./rules/no-duplicate-key" ;
2526import noForwardRef from "./rules/no-forward-ref" ;
2627import noImplicitKey from "./rules/no-implicit-key" ;
@@ -50,7 +51,6 @@ import preferReactNamespaceImport from "./rules/prefer-react-namespace-import";
5051import preferReadOnlyProps from "./rules/prefer-read-only-props" ;
5152import preferShorthandBoolean from "./rules/prefer-shorthand-boolean" ;
5253import preferShorthandFragment from "./rules/prefer-shorthand-fragment" ;
53- import useJsxVars from "./rules/use-jsx-vars" ;
5454
5555export const plugin = {
5656 meta : {
@@ -79,7 +79,6 @@ export const plugin = {
7979 "no-create-ref" : noCreateRef ,
8080 "no-default-props" : noDefaultProps ,
8181 "no-direct-mutation-state" : noDirectMutationState ,
82- "no-duplicate-jsx-props" : noDuplicateJsxProps ,
8382 "no-duplicate-key" : noDuplicateKey ,
8483 "no-forward-ref" : noForwardRef ,
8584 "no-implicit-key" : noImplicitKey ,
@@ -109,18 +108,21 @@ export const plugin = {
109108 "prefer-read-only-props" : preferReadOnlyProps ,
110109 "prefer-shorthand-boolean" : preferShorthandBoolean ,
111110 "prefer-shorthand-fragment" : preferShorthandFragment ,
112- "use-jsx-vars" : useJsxVars ,
111+
112+ // Part: JSX only rules
113+ "jsx-no-duplicate-props" : jsxNoDuplicateProps ,
114+ "jsx-uses-vars" : jsxUsesVars ,
113115
114116 // Part: deprecated rules
115117 /** @deprecated Use `no-useless-forward-ref` instead */
116118 "ensure-forward-ref-using-ref" : noUselessForwardRef ,
117- /** @deprecated Use `no-duplicate-jsx-props` instead */
118- "jsx-no-duplicate-props" : noDuplicateJsxProps ,
119- /** @deprecated Use `use-jsx-vars` instead */
120- "jsx-uses-vars" : useJsxVars ,
121119 /** @deprecated Use `no-complex-conditional-rendering` instead */
122120 "no-complicated-conditional-rendering" : noComplexConditionalRendering ,
121+ /** @deprecated Use `jsx-no-duplicate-props` instead */
122+ "no-duplicate-jsx-props" : jsxNoDuplicateProps ,
123123 /** @deprecated Use `no-nested-component-definitions` instead */
124124 "no-nested-components" : noNestedComponentDefinitions ,
125+ /** @deprecated Use `jsx-uses-vars` instead */
126+ "use-jsx-vars" : jsxUsesVars ,
125127 } ,
126128} as const ;
0 commit comments