File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed
packages/eslint-plugin-react-prefer-function-component/src Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change 22import type { Linter } from "eslint" ;
33import preferFunctionComponent from "./prefer-function-component/index.js" ;
44
5- const recommended = {
6- plugins : {
7- "react-prefer-function-component" : {
8- rules : {
9- "react-prefer-function-component" : preferFunctionComponent . default ,
10- } ,
11- } ,
12- } ,
13- rules : {
14- "react-prefer-function-component/react-prefer-function-component" : "error" ,
15- } ,
16- } satisfies Linter . Config ;
17-
185interface Config {
196 configs : {
207 recommended : Linter . Config ;
218 } ;
229}
2310
2411const config : Config = {
25- configs : { recommended } ,
12+ configs : {
13+ recommended : {
14+ plugins : {
15+ "react-prefer-function-component" : {
16+ rules : {
17+ "react-prefer-function-component" : preferFunctionComponent . default ,
18+ } ,
19+ } ,
20+ } ,
21+ rules : {
22+ "react-prefer-function-component/react-prefer-function-component" :
23+ "error" ,
24+ } ,
25+ } ,
26+ } ,
2627} ;
2728
2829export default config ;
You can’t perform that action at this time.
0 commit comments