File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 55
55
"unicorn-magic" : " ^0.3.0"
56
56
},
57
57
"devDependencies" : {
58
- "eslint-config-xo-react" : " ^0.27.0" ,
59
- "eslint-plugin-react" : " ^7.34.1" ,
60
- "eslint-plugin-react-hooks" : " ^4.6.2" ,
61
58
"@sindresorhus/tsconfig" : " ^8.0.1" ,
62
59
"@types/react" : " ^19.1.13" ,
63
60
"ava" : " ^6.4.1" ,
61
+ "eslint-config-xo-react" : " ^0.27.0" ,
62
+ "eslint-plugin-react" : " ^7.34.1" ,
63
+ "eslint-plugin-react-hooks" : " ^4.6.2" ,
64
64
"execa" : " ^9.6.0" ,
65
65
"p-event" : " ^7.0.0" ,
66
66
"tsx" : " ^4.20.5" ,
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
+ import React from 'react' ;
2
3
import meow from 'meow' ;
3
4
import { render } from 'ink' ;
4
5
import Ui from './ui.js' ;
@@ -39,16 +40,14 @@ const cli = meow(`
39
40
} as const ,
40
41
} ) ;
41
42
42
- function App ( ) {
43
- return (
44
- < Ui
45
- singleLine = { cli . flags . singleLine }
46
- upload = { cli . flags . upload || cli . flags . verbose } // eslint-disable-line @typescript-eslint/prefer-nullish-coalescing
47
- json = { cli . flags . json }
48
- verbose = { cli . flags . verbose }
49
- />
50
- ) ;
51
- }
43
+ const App : React . FC = ( ) => (
44
+ < Ui
45
+ singleLine = { cli . flags . singleLine }
46
+ upload = { cli . flags . upload || cli . flags . verbose } // eslint-disable-line @typescript-eslint/prefer-nullish-coalescing
47
+ json = { cli . flags . json }
48
+ verbose = { cli . flags . verbose }
49
+ />
50
+ ) ;
52
51
53
52
const app = render ( < App /> ) ;
54
53
await app . waitUntilExit ( ) ;
You can’t perform that action at this time.
0 commit comments