Files
argo-cd/ui/README.md
Mayursinh Sarvaiya 7945b26d95 chore(ui-dev): migrate tslint to eslint (#11652) (#18079)
* feat(ui): setup eslint

Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>

* chore(ui): update `lint:fix` command

Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>

* fix(ui-lint): run `yarn lint:fix`

> solve remaining manually

Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>

* chore(ui): remove tslint from `ui`

Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>

* chore(docs-ui): add docs for VSCode configuration eslint

Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>

* chore(ui): prettier set `trailingComma` to `none`

> prettier config default is changed after version bump - https://prettier.io/docs/en/options.html#trailing-commas

Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>

---------

Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
2024-05-08 11:30:58 -04:00

1.5 KiB

Argo CD UI

Argo Image

Web UI for Argo CD.

Getting started

  1. Install NodeJS and Yarn. On macOS with Homebrew, running brew install node yarn will accomplish this.
  2. Run yarn install to install local prerequisites.
  3. Run yarn start to launch the webpack dev UI server.
  4. Run yarn build to bundle static resources into the ./dist directory.

To build a Docker image, run IMAGE_NAMESPACE=yourimagerepo IMAGE_TAG=latest yarn docker.

To do the same and push to a Docker registry, run IMAGE_NAMESPACE=yourimagerepo IMAGE_TAG=latest DOCKER_PUSH=true yarn docker.

Pre-commit Checks

Make sure your code passes the lint checks:

yarn lint --fix

If you are using VSCode, add this configuration to .vscode/settings.json in the root of this repository to identify and fix lint issues automatically before you save file.

Install Eslint Extension in VSCode.

.vscode/settings.json

{
  "eslint.format.enable": true,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": "always"
    },
    "eslint.workingDirectories": [
        {
            "directory": "./ui",
            "!cwd": false
        }
    ],
    "eslint.experimental.useFlatConfig": true
}