From e802f84789f0805c5a128b7a4b6c59d5ef24aac4 Mon Sep 17 00:00:00 2001 From: Nguyen Thai Hung <59815499+hung-cybo@users.noreply.github.com> Date: Fri, 21 Jul 2023 18:10:58 +0700 Subject: [PATCH] chore: apply prettier for yml files (#407) --- .github/ISSUE_TEMPLATE/bug-report.yml | 4 +-- .github/ISSUE_TEMPLATE/config.yml | 6 ++--- .github/workflows/build.yml | 10 ++++---- .github/workflows/license.yml | 10 ++++---- .github/workflows/lint.yml | 27 ++++++++++---------- .github/workflows/release.yml | 8 +++--- .github/workflows/test.yml | 36 +++++++++++++-------------- .github/workflows/yamory.yml | 2 +- .licensed.yml | 2 +- .prettierignore | 7 +++++- package.json | 4 +-- 11 files changed, 59 insertions(+), 57 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index 23041eef96..705cc9c15b 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -19,7 +19,7 @@ body: attributes: label: Target Version placeholder: e.g. vX.Y.Z - description: Which version of cli-kintone do you want to report a bug for? + description: Which version of cli-kintone do you want to report a bug for? validations: required: true - type: textarea @@ -29,7 +29,7 @@ body: description: | Please provide [minimum reproduction](https://stackoverflow.com/help/minimal-reproducible-example) steps of the bug. If you have a reproduction repository, [GitHub Gist](https://gist.github.com/) snippet, or some external pages, please share the links. - + :warning: DO NOT SUBMIT CONFIDENTIAL INFORMATION SUCH AS YOUR SUBDOMAIN AND PASSWORD placeholder: | 1. Prepare a Kintone App with the following fields... diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index f9fd3e3e29..e679e8d965 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,4 +1,4 @@ contact_links: - - name: 🇯🇵 日本語はこちら - url: https://github.com/kintone/js-sdk-ja - about: 日本語でのバグ報告・機能提案はこちら + - name: 🇯🇵 日本語はこちら + url: https://github.com/kintone/js-sdk-ja + about: 日本語でのバグ報告・機能提案はこちら diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 34ee180d26..c427a8a616 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ on: push: branches: - main - - 'renovate/**' + - "renovate/**" pull_request: jobs: @@ -18,7 +18,7 @@ jobs: - uses: jonabc/setup-licensed@d6b3a6f7058c2b40c06d205e13e15c2418977566 # renovate: tag=v1.1.4 with: - version: '4.x' + version: "4.x" github_token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 @@ -29,11 +29,11 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: '16' - cache: 'pnpm' + node-version: "16" + cache: "pnpm" - name: Install dependencies - run: pnpm install --frozen-lockfile + run: pnpm install --frozen-lockfile - run: pnpm build:artifacts - name: Upload artifacts uses: actions/upload-artifact@v3 diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index f7ea36c5bd..6c31e43170 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -25,8 +25,8 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: '16' - cache: 'pnpm' + node-version: "16" + cache: "pnpm" - name: Install dependencies run: pnpm install --frozen-lockfile @@ -48,7 +48,7 @@ jobs: - name: Setup Licensed uses: jonabc/setup-licensed@d6b3a6f7058c2b40c06d205e13e15c2418977566 # renovate: tag=v1.1.4 with: - version: '4.x' + version: "4.x" github_token: ${{ secrets.GITHUB_TOKEN }} - name: Check out repository @@ -62,10 +62,10 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16.x - cache: 'pnpm' + cache: "pnpm" - name: Install dependencies - run: pnpm install --frozen-lockfile + run: pnpm install --frozen-lockfile - name: Check licenses run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6a95bcc611..0bc6f1bb6e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,11 +1,10 @@ - name: lint on: push: branches: - main - - 'renovate/**' + - "renovate/**" pull_request: jobs: @@ -13,18 +12,18 @@ jobs: name: Node.js ubuntu-latest 16.x runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - uses: pnpm/action-setup@v2 - with: - version: 8.6.5 + - uses: pnpm/action-setup@v2 + with: + version: 8.6.5 - - uses: actions/setup-node@v3 - with: - node-version: '16' - cache: 'pnpm' + - uses: actions/setup-node@v3 + with: + node-version: "16" + cache: "pnpm" - - name: Install dependencies - run: pnpm install --frozen-lockfile - - run: pnpm build - - run: pnpm lint + - name: Install dependencies + run: pnpm install --frozen-lockfile + - run: pnpm build + - run: pnpm lint diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce764e9e83..a2f28220bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,7 @@ jobs: - uses: jonabc/setup-licensed@d6b3a6f7058c2b40c06d205e13e15c2418977566 # renovate: tag=v1.1.4 with: - version: '4.x' + version: "4.x" github_token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 @@ -61,11 +61,11 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: '16' - cache: 'pnpm' + node-version: "16" + cache: "pnpm" - name: Install dependencies - run: pnpm install --frozen-lockfile + run: pnpm install --frozen-lockfile - run: pnpm build:artifacts - name: Upload executables env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5cd1732f63..4aab467f1e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,16 +1,14 @@ - name: test on: push: branches: - main - - 'renovate/**' + - "renovate/**" pull_request: jobs: test: - name: Node.js ${{ matrix.os }} ${{ matrix.node-version }} runs-on: ${{ matrix.os }} @@ -20,19 +18,19 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] steps: - - run: git config --global core.autocrlf false - - uses: actions/checkout@v3 - - - uses: pnpm/action-setup@v2 - with: - version: 8.6.5 - - - uses: actions/setup-node@v3 - with: - node-version: '16' - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - run: pnpm build - - run: pnpm test:ci + - run: git config --global core.autocrlf false + - uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2 + with: + version: 8.6.5 + + - uses: actions/setup-node@v3 + with: + node-version: "16" + cache: "pnpm" + + - name: Install dependencies + run: pnpm install --frozen-lockfile + - run: pnpm build + - run: pnpm test:ci diff --git a/.github/workflows/yamory.yml b/.github/workflows/yamory.yml index a2ea0789f4..1aaec03508 100644 --- a/.github/workflows/yamory.yml +++ b/.github/workflows/yamory.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: '16' + node-version: "16" - name: download and validate Yamory script working-directory: /tmp diff --git a/.licensed.yml b/.licensed.yml index 373f30d174..75da0be5b9 100644 --- a/.licensed.yml +++ b/.licensed.yml @@ -1,6 +1,6 @@ # See for https://github.com/github/licensed/blob/master/docs/configuration.md for more details. # If not set, defaults to the directory name of `source_path` -name: 'cli-kintone' +name: "cli-kintone" # Sources of metadata sources: diff --git a/.prettierignore b/.prettierignore index 9d64b168ad..75d0925073 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,9 +2,14 @@ lib dist coverage +.licenses/ # Ignore all HTML files: *.html -# Ignore CHANGELOG.md (because it is auto generated) +# Ignore tsconfig file +tsconfig.json + +# Ignore auto generated files +pnpm-lock.yaml CHANGELOG.md diff --git a/package.json b/package.json index 031741564d..81be24c22c 100644 --- a/package.json +++ b/package.json @@ -28,10 +28,10 @@ "test:e2e": "cucumber-js", "lint": "run-p -l lint:*", "lint:eslint": "eslint --ext .js,.mjs,.cjs,.ts,.mts,.cts ./", - "lint:md": "prettier --check ./**/*.md", + "lint:prettier": "prettier --check '**/*.{json,md,yml,yaml}'", "fix": "run-p fix:*", "fix:lint": "run-s 'lint:eslint --fix'", - "fix:md": "run-s 'lint:md --write'", + "fix:prettier": "run-s 'lint:prettier --write'", "clean": "rimraf lib bin artifacts dist" }, "repository": {