diff --git a/bin/run_pyl b/bin/run_pyl index fa729ebbb..af82c6a6a 100755 --- a/bin/run_pyl +++ b/bin/run_pyl @@ -12,6 +12,10 @@ python_projects=( spiffworkflow-backend ) +react_projects=( + spiffworkflow-frontend +) + function get_python_dirs() { (git ls-tree -r HEAD --name-only | grep -E '\.py$' | awk -F '/' '{print $1}' | sort | uniq | grep -v '\.' | grep -Ev '^(bin|migrations)$') || echo '' } @@ -39,6 +43,12 @@ function run_pre_commmit() { poetry run pre-commit run --verbose --all-files } +for react_project in "${react_projects[@]}" ; do + pushd "$react_project" + npm run lint:fix + popd +done + for python_project in "${python_projects[@]}" ; do pushd "$python_project" run_autoflake || run_autoflake diff --git a/spiffworkflow-frontend/src/interfaces.ts b/spiffworkflow-frontend/src/interfaces.ts index 6848a3d7f..9eee17a4b 100644 --- a/spiffworkflow-frontend/src/interfaces.ts +++ b/spiffworkflow-frontend/src/interfaces.ts @@ -74,12 +74,12 @@ export interface CarbonComboBoxSelection { export interface PermissionsToCheck { [key: string]: string[]; } -export interface PermissionCheckResponseBody { - results: PermissionCheckResult; +export interface PermissionVerbResults { + [key: string]: boolean; } export interface PermissionCheckResult { [key: string]: PermissionVerbResults; } -export interface PermissionVerbResults { - [key: string]: boolean; +export interface PermissionCheckResponseBody { + results: PermissionCheckResult; }