diff --git a/.github/workflows/test-node.yaml b/.github/workflows/test-node.yaml index 80db96b2fba..8710c3f252b 100644 --- a/.github/workflows/test-node.yaml +++ b/.github/workflows/test-node.yaml @@ -20,5 +20,5 @@ jobs: - name: Run Node test run: | - npm install --global prettier@2.2.0 + npm install prettier --prefix ./pkg/new-ui/v1beta1/frontend make prettier-check diff --git a/Makefile b/Makefile index c086585f68f..52c8b41ec7d 100644 --- a/Makefile +++ b/Makefile @@ -80,7 +80,7 @@ endif # Prettier UI format check for Katib v1beta1. prettier-check: - npm run format:check --prefix pkg/ui/v1beta1/frontend + npm run format:check --prefix pkg/new-ui/v1beta1/frontend # Update boilerplate for the source code. update-boilerplate: diff --git a/pkg/new-ui/v1beta1/frontend/package-lock.json b/pkg/new-ui/v1beta1/frontend/package-lock.json index 17d30c8834f..3f8205ee449 100644 --- a/pkg/new-ui/v1beta1/frontend/package-lock.json +++ b/pkg/new-ui/v1beta1/frontend/package-lock.json @@ -8999,6 +8999,12 @@ "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", "dev": true }, + "prettier": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.2.tgz", + "integrity": "sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==", + "dev": true + }, "process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", diff --git a/pkg/new-ui/v1beta1/frontend/package.json b/pkg/new-ui/v1beta1/frontend/package.json index d158467c136..31b7fb52b83 100644 --- a/pkg/new-ui/v1beta1/frontend/package.json +++ b/pkg/new-ui/v1beta1/frontend/package.json @@ -61,6 +61,7 @@ "karma-coverage-istanbul-reporter": "~2.0.1", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.0", + "prettier": "2.3.2", "protractor": "~5.4.0", "ts-node": "~7.0.0", "tslint": "~5.15.0", diff --git a/pkg/new-ui/v1beta1/frontend/src/app/pages/experiment-creation/algorithm/setting/setting.component.spec.ts b/pkg/new-ui/v1beta1/frontend/src/app/pages/experiment-creation/algorithm/setting/setting.component.spec.ts index 009aeb21402..9455e287542 100644 --- a/pkg/new-ui/v1beta1/frontend/src/app/pages/experiment-creation/algorithm/setting/setting.component.spec.ts +++ b/pkg/new-ui/v1beta1/frontend/src/app/pages/experiment-creation/algorithm/setting/setting.component.spec.ts @@ -8,9 +8,8 @@ describe('SettingComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ SettingComponent ] - }) - .compileComponents(); + declarations: [SettingComponent], + }).compileComponents(); })); beforeEach(() => { diff --git a/pkg/new-ui/v1beta1/frontend/src/app/pages/experiment-creation/early-stopping/early-stopping.component.spec.ts b/pkg/new-ui/v1beta1/frontend/src/app/pages/experiment-creation/early-stopping/early-stopping.component.spec.ts index 9926f32b319..02b57918ef2 100644 --- a/pkg/new-ui/v1beta1/frontend/src/app/pages/experiment-creation/early-stopping/early-stopping.component.spec.ts +++ b/pkg/new-ui/v1beta1/frontend/src/app/pages/experiment-creation/early-stopping/early-stopping.component.spec.ts @@ -8,9 +8,8 @@ describe('EarlyStoppingComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ EarlyStoppingComponent ] - }) - .compileComponents(); + declarations: [EarlyStoppingComponent], + }).compileComponents(); })); beforeEach(() => { diff --git a/pkg/new-ui/v1beta1/frontend/src/app/pages/experiment-creation/metadata/metadata.component.html b/pkg/new-ui/v1beta1/frontend/src/app/pages/experiment-creation/metadata/metadata.component.html index 3c89fbb5e01..c1374384dce 100644 --- a/pkg/new-ui/v1beta1/frontend/src/app/pages/experiment-creation/metadata/metadata.component.html +++ b/pkg/new-ui/v1beta1/frontend/src/app/pages/experiment-creation/metadata/metadata.component.html @@ -1,11 +1,11 @@