Skip to content

Commit

Permalink
Upgrade flow (#56)
Browse files Browse the repository at this point in the history
This is a non-functional change to upgrade Flow.js
  • Loading branch information
rlamacraft authored Jul 16, 2024
1 parent 1125832 commit 53b4782
Show file tree
Hide file tree
Showing 67 changed files with 386 additions and 6,680 deletions.
3 changes: 2 additions & 1 deletion src/main/webapp/ui/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
{
"regenerator": true
}
]
],
["babel-plugin-syntax-hermes-parser"]
]
}
10 changes: 5 additions & 5 deletions src/main/webapp/ui/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"parser": "@babel/eslint-parser",
"parser": "hermes-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
Expand All @@ -11,18 +11,18 @@
},
"extends": [
"eslint:recommended",
"plugin:ft-flow/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:flowtype/recommended",
"plugin:prettier/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"prettier"
],
"plugins": ["react", "flowtype", "testing-library", "jest-dom", "jsx-a11y"],
"plugins": ["react", "ft-flow", "testing-library", "jest-dom", "jsx-a11y"],
"settings": {
"react": {
"version": "detect",
"flowVersion": "0.126.1"
"flowVersion": "0.239.1"
}
},
"overrides": [
Expand Down
4 changes: 1 addition & 3 deletions src/main/webapp/ui/flow-typed/fast-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ declare module "fast-check" {
* For more info, see https://fast-check.dev/docs/core-blocks/arbitraries/
*/

declare type MakeArbitrary = <A>(A) => Arbitrary<A>;

declare type Size = "xsmall" | "small" | "medium" | "large" | "xlarge";

// Boolean
Expand Down Expand Up @@ -136,7 +134,7 @@ declare module "fast-check" {
Arbitrary<A>,
Arbitrary<B>
): Arbitrary<{ [A]: B }>;
declare function record<A: {}>($ObjMap<A, MakeArbitrary>): Arbitrary<A>;
declare function record<A: {}>({[keyA in keyof A]: Arbitrary<A[keyA]>}): Arbitrary<A>;
declare function anything(): Arbitrary<mixed>;

// Function Combinators
Expand Down
10 changes: 5 additions & 5 deletions src/main/webapp/ui/flow-typed/mui.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ declare module "@mui/x-data-grid" {
ColumnNames: string,
Id: mixed,
ToolbarProps: { ... },
Value: mixed
Value: mixed,
SortableColumnNames: ColumnNames,
>({|
rows: $ReadOnlyArray<Row>,
columns: $ReadOnlyArray<Column<Row>>,
Expand All @@ -80,13 +81,12 @@ declare module "@mui/x-data-grid" {
rowCount?: number,
paginationModel?: {| pageSize: number, page: number |},
pageSizeOptions?: $ReadOnlyArray<
number | {| value: number, label: string |}
>,
number | {| value: number, label: string |}>,
onPaginationModelChange?: ({| pageSize: number, page: number |}) => void,
sortingMode?: "server",
sortModel?: Array<{| field: string, sort: "asc" | "desc" |}>,
sortModel?: $ReadOnlyArray<{| field: SortableColumnNames, sort: "asc" | "desc" |}>,
onSortModelChange?: (
Array<{| field: string, sort: "asc" | "desc" |}>
$ReadOnlyArray<{| field: SortableColumnNames, sort: "asc" | "desc" |}>
) => void,
slots?: {|
toolbar?: (ToolbarProps) => Node,
Expand Down

This file was deleted.

Loading

0 comments on commit 53b4782

Please sign in to comment.