added lint fix for frontend to pyl w/ burnettk cullerton

This commit is contained in:
jasquat 2022-11-16 13:03:59 -05:00
parent 99d2a92beb
commit f838e11759
2 changed files with 14 additions and 4 deletions

View File

@ -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

View File

@ -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;
}