Skip to content

Commit 53b4782

Browse files
authored
Upgrade flow (#56)
This is a non-functional change to upgrade Flow.js
1 parent 1125832 commit 53b4782

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+386
-6680
lines changed

src/main/webapp/ui/.babelrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
{
3030
"regenerator": true
3131
}
32-
]
32+
],
33+
["babel-plugin-syntax-hermes-parser"]
3334
]
3435
}

src/main/webapp/ui/.eslintrc

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"parser": "@babel/eslint-parser",
2+
"parser": "hermes-eslint",
33
"parserOptions": {
44
"ecmaFeatures": {
55
"jsx": true
@@ -11,18 +11,18 @@
1111
},
1212
"extends": [
1313
"eslint:recommended",
14+
"plugin:ft-flow/recommended",
1415
"plugin:react/recommended",
1516
"plugin:react-hooks/recommended",
16-
"plugin:flowtype/recommended",
17-
"plugin:prettier/recommended",
1817
"plugin:jsx-a11y/recommended",
18+
"plugin:prettier/recommended",
1919
"prettier"
2020
],
21-
"plugins": ["react", "flowtype", "testing-library", "jest-dom", "jsx-a11y"],
21+
"plugins": ["react", "ft-flow", "testing-library", "jest-dom", "jsx-a11y"],
2222
"settings": {
2323
"react": {
2424
"version": "detect",
25-
"flowVersion": "0.126.1"
25+
"flowVersion": "0.239.1"
2626
}
2727
},
2828
"overrides": [

src/main/webapp/ui/flow-typed/fast-check.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ declare module "fast-check" {
2525
* For more info, see https://fast-check.dev/docs/core-blocks/arbitraries/
2626
*/
2727

28-
declare type MakeArbitrary = <A>(A) => Arbitrary<A>;
29-
3028
declare type Size = "xsmall" | "small" | "medium" | "large" | "xlarge";
3129

3230
// Boolean
@@ -136,7 +134,7 @@ declare module "fast-check" {
136134
Arbitrary<A>,
137135
Arbitrary<B>
138136
): Arbitrary<{ [A]: B }>;
139-
declare function record<A: {}>($ObjMap<A, MakeArbitrary>): Arbitrary<A>;
137+
declare function record<A: {}>({[keyA in keyof A]: Arbitrary<A[keyA]>}): Arbitrary<A>;
140138
declare function anything(): Arbitrary<mixed>;
141139

142140
// Function Combinators

src/main/webapp/ui/flow-typed/mui.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ declare module "@mui/x-data-grid" {
6161
ColumnNames: string,
6262
Id: mixed,
6363
ToolbarProps: { ... },
64-
Value: mixed
64+
Value: mixed,
65+
SortableColumnNames: ColumnNames,
6566
>({|
6667
rows: $ReadOnlyArray<Row>,
6768
columns: $ReadOnlyArray<Column<Row>>,
@@ -80,13 +81,12 @@ declare module "@mui/x-data-grid" {
8081
rowCount?: number,
8182
paginationModel?: {| pageSize: number, page: number |},
8283
pageSizeOptions?: $ReadOnlyArray<
83-
number | {| value: number, label: string |}
84-
>,
84+
number | {| value: number, label: string |}>,
8585
onPaginationModelChange?: ({| pageSize: number, page: number |}) => void,
8686
sortingMode?: "server",
87-
sortModel?: Array<{| field: string, sort: "asc" | "desc" |}>,
87+
sortModel?: $ReadOnlyArray<{| field: SortableColumnNames, sort: "asc" | "desc" |}>,
8888
onSortModelChange?: (
89-
Array<{| field: string, sort: "asc" | "desc" |}>
89+
$ReadOnlyArray<{| field: SortableColumnNames, sort: "asc" | "desc" |}>
9090
) => void,
9191
slots?: {|
9292
toolbar?: (ToolbarProps) => Node,

src/main/webapp/ui/flow-typed/npm/hoist-non-react-statics_v3.x.x.js

-87
This file was deleted.

0 commit comments

Comments
 (0)