File tree Expand file tree Collapse file tree 11 files changed +19
-16
lines changed Expand file tree Collapse file tree 11 files changed +19
-16
lines changed Original file line number Diff line number Diff line change 45
45
npm i
46
46
npm run formatCheck --workspaces
47
47
npx tsc
48
+ npx quick-lint-js ./ui/**/*.mjs ./ui/**/*.ts
48
49
NODE_V8_COVERAGE=coverage0 npx c8 -r lcovonly --all --src ./ui/src node --experimental-test-coverage ./ui/test/all.mjs
49
50
if : ${{ env.TAG_NAME == '' }}
50
51
Original file line number Diff line number Diff line change 5
5
"license" : " MIT" ,
6
6
"description" : " Terminal UI React.js components library" ,
7
7
"scripts" : {
8
+ "lint" : " quick-lint-js ./**/*.mjs ./**/*.ts" ,
8
9
"test" : " tsc && bun test && node ./test/all.mjs" ,
9
10
"format" : " prettier **/*.mjs **/*.ts --write" ,
10
11
"formatCheck" : " prettier **/*.mjs **/*.ts --check"
48
49
"c8" : " ^7.13.0" ,
49
50
"mock-fn" : " ^1.0.0" ,
50
51
"prettier" : " ^2.8.8" ,
52
+ "quick-lint-js" : " ^3.0.0" ,
51
53
"react-assert" : " ^1.0.3" ,
52
54
"react-test-renderer" : " ^17.0.1" ,
53
55
"typescript" : " ^4.9.5"
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ export interface ButtonProps {
7
7
readonly top : number ;
8
8
readonly label : string ;
9
9
readonly style : Widgets . Types . TStyle ;
10
- readonly onPress ( ) : void ;
10
+ onPress ( ) : void ;
11
11
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Widgets } from "blessed";
2
2
3
3
export interface ButtonsPanelAction {
4
4
readonly label : string ;
5
- readonly onAction ( ) : void ;
5
+ onAction ( ) : void ;
6
6
}
7
7
8
8
export interface ButtonsPanelProps {
Original file line number Diff line number Diff line change 1
1
export interface UiString {
2
- readonly strWidth ( ) : number ;
3
- readonly toString ( ) : string ;
4
- readonly slice ( from : number , until : number ) : string ;
5
- readonly ensureWidth ( width : number , padCh : string ) : string ;
2
+ strWidth ( ) : number ;
3
+ toString ( ) : string ;
4
+ slice ( from : number , until : number ) : string ;
5
+ ensureWidth ( width : number , padCh : string ) : string ;
6
6
}
Original file line number Diff line number Diff line change 1
1
export interface WithSizeProps {
2
- readonly render ( width : number , height : number ) : React . ReactElement | null ;
2
+ render ( width : number , height : number ) : React . ReactElement | null ;
3
3
}
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ export interface MenuBarItem {
5
5
6
6
export interface MenuBarProps {
7
7
readonly items : MenuBarItem [ ] ;
8
- readonly onAction ( menuIndex : number , subIndex : number ) : void ;
9
- readonly onClose ( ) : void ;
8
+ onAction ( menuIndex : number , subIndex : number ) : void ;
9
+ onClose ( ) : void ;
10
10
}
Original file line number Diff line number Diff line change 1
1
export interface MenuPopupProps {
2
2
readonly title : string ;
3
3
readonly items : string [ ] ;
4
- readonly getLeft ( width : number ) : string ;
5
- readonly onSelect ( index : number ) : void ;
6
- readonly onClose ( ) : void ;
4
+ getLeft ( width : number ) : string ;
5
+ onSelect ( index : number ) : void ;
6
+ onClose ( ) : void ;
7
7
}
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ export interface SubMenuProps {
3
3
readonly items : string [ ] ;
4
4
readonly top : number ;
5
5
readonly left : number ;
6
- readonly onClick ( index : number ) : void ;
6
+ onClick ( index : number ) : void ;
7
7
}
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ export interface ModalProps {
7
7
readonly width : number ;
8
8
readonly height : number ;
9
9
readonly style : BlessedStyle ;
10
- readonly onCancel ( ) : void ;
10
+ onCancel ( ) : void ;
11
11
}
You can’t perform that action at this time.
0 commit comments