Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ui): fix formatting errors in config #11629

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

agilgur5
Copy link
Contributor

@agilgur5 agilgur5 commented Aug 20, 2023

Motivation

Consistent and correct formatting:

  • jest.config.js had incorrect indentation, inconsistent keys, etc
  • webpack.config.js had mostly double quotes, but some single quotes and other inconsistencies

Modifications

jest.config.js

  • use 2 space indentation, use unquoted keys
  • consistently use double quotes as well

webpack.config.js

Verification

No semantic changes, just stylistic.

Build and tests continue to pass

Future Work

To format config files with prettier

- `jest.config.js` had incorrect indentation and inconsistent keys

- `webpack.config.js` had _mostly_ double quotes, but some single quotes
  - convert most to double quotes for consistency. the rest are converted in a separate PR so as to not merge conflict
- alphabetize the `DefinePlugin` substituions
  - and consistently use double quoted keys for visual consistency -- this is a good bit easier on the eyes IMO
    - also similar to [Argo CD config](https://github.com/argoproj/argo-cd/blob/6ca2e90b5094eba3878746fee5f2c357bfbc6cb8/ui/src/app/webpack.config.js#L66)

Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
- woops, missed this until I looked at the PR diff

Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
@agilgur5 agilgur5 added the area/build Build or GithubAction/CI issues label Aug 27, 2023
@terrytangyuan terrytangyuan merged commit 8e26eb4 into argoproj:master Aug 28, 2023
25 checks passed
@agilgur5 agilgur5 deleted the reformat-ui-config branch August 28, 2023 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues area/ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants