From 31b5e5ec1e867143b45eec1b9af670ff341818f8 Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 16 Nov 2022 13:03:59 -0500 Subject: [PATCH] added lint fix for frontend to pyl w/ burnettk cullerton --- bin/run_pyl | 10 ++++++++++ spiffworkflow-frontend/src/interfaces.ts | 8 ++++---- 2 files changed, 14 insertions(+), 4 deletions(-) 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; }