File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/eslint-plugin-react-prefer-function-component/src Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ const Foo = ({ foo }) => <div>{foo}</div>;
135135
136136``` js
137137...
138- " prefer-function-component" : [< enabled> , { " allowComponentDidCatch" : < allowComponentDidCatch> , " allowJsxUtilityClass" : < allowJsxUtilityClass> }]
138+ " react- prefer-function-component" : [< enabled> , { " allowComponentDidCatch" : < allowComponentDidCatch> , " allowJsxUtilityClass" : < allowJsxUtilityClass> }]
139139...
140140```
141141
Original file line number Diff line number Diff line change @@ -3,18 +3,18 @@ import preferFunctionComponent from "./prefer-function-component/index.js";
33
44const plugin : ESLint . Plugin = {
55 rules : {
6- "prefer-function-component" : preferFunctionComponent . default ,
6+ "react- prefer-function-component" : preferFunctionComponent . default ,
77 } ,
88} ;
99
1010const config = {
1111 configs : {
1212 recommended : {
1313 plugins : {
14- "prefer-function-component" : plugin ,
14+ "react- prefer-function-component" : plugin ,
1515 } ,
1616 rules : {
17- "prefer-function-component/prefer-function-component" : "error" ,
17+ "react- prefer-function-component/prefer-function-component" : "error" ,
1818 } ,
1919 } ,
2020 } ,
You can’t perform that action at this time.
0 commit comments