From f9d22ae22392bc836a6ef02fd23b9ab66ef9dc93 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Wed, 22 Mar 2023 02:58:36 -0400 Subject: [PATCH] chore: expand Prettier glob to all files --- .github/ISSUE_TEMPLATE/bug_report.yml | 62 +++++++++++----------- .github/ISSUE_TEMPLATE/feature_request.yml | 16 +++--- .github/workflows/browser.yml | 28 +++++----- .github/workflows/ci.yml | 53 +++++++++--------- package.json | 6 +-- 5 files changed, 82 insertions(+), 83 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index c10076fd..fae70f10 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,39 +1,39 @@ name: Bug report description: File a bug against the `uuid` project -labels: ["bug"] -title: "[BUG] " +labels: ['bug'] +title: '[BUG] <title>' body: -- type: checkboxes - attributes: - label: Before you begin... - options: - - label: I have searched the existing issues - required: true - - label: I am not using version 13.x of node (if so, please upgrade) - required: true + - type: checkboxes + attributes: + label: Before you begin... + options: + - label: I have searched the existing issues + required: true + - label: I am not using version 13.x of node (if so, please upgrade) + required: true -- type: textarea - attributes: - label: Description of the problem - validations: - required: false + - type: textarea + attributes: + label: Description of the problem + validations: + required: false -- type: textarea - attributes: - label: Recipe for reproducing - description: "**IMPORTANT**: Failure to provide a [Minimal, Complete, and Verifiable](https://stackoverflow.com/help/minimal-reproducible-example) example will result in this issue being closed without further review." - render: bash - validations: - required: false + - type: textarea + attributes: + label: Recipe for reproducing + description: '**IMPORTANT**: Failure to provide a [Minimal, Complete, and Verifiable](https://stackoverflow.com/help/minimal-reproducible-example) example will result in this issue being closed without further review.' + render: bash + validations: + required: false -- type: textarea - attributes: - label: Additional information + - type: textarea + attributes: + label: Additional information -- type: textarea - attributes: - label: Environment - description: "Output of `npx envinfo --system --browsers --npmPackages --binaries` goes here:" - validations: - required: false + - type: textarea + attributes: + label: Environment + description: 'Output of `npx envinfo --system --browsers --npmPackages --binaries` goes here:' + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 25947fbd..35ed5146 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -1,13 +1,13 @@ name: Feature request description: Suggest an idea for this project -labels: ["feature"] +labels: ['feature'] body: -- type: textarea - attributes: - label: Feature description + - type: textarea + attributes: + label: Feature description -- type: textarea - attributes: - label: Additional information - description: E.g. alternatives you've considered, examples, screenshots, or anything else that may be helpful \ No newline at end of file + - type: textarea + attributes: + label: Additional information + description: E.g. alternatives you've considered, examples, screenshots, or anything else that may be helpful diff --git a/.github/workflows/browser.yml b/.github/workflows/browser.yml index b749b2af..46eeca3d 100644 --- a/.github/workflows/browser.yml +++ b/.github/workflows/browser.yml @@ -12,17 +12,17 @@ jobs: timeout-minutes: 30 steps: - - uses: actions/checkout@v3 - - name: Use Node.js 16.x - uses: actions/setup-node@v3 - with: - node-version: 16.x - - run: npm ci - - name: Test Browser - run: npm run test:browser - env: - BROWSERSTACK_USER: ${{ secrets.BROWSERSTACK_USER }} - BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} - - run: npx bundlewatch --config bundlewatch.config.json - env: - BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} + - uses: actions/checkout@v3 + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: 16.x + - run: npm ci + - name: Test Browser + run: npm run test:browser + env: + BROWSERSTACK_USER: ${{ secrets.BROWSERSTACK_USER }} + BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} + - run: npx bundlewatch --config bundlewatch.config.json + env: + BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9d89569..16adc4e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,6 @@ on: [push, pull_request] jobs: ci: - runs-on: ubuntu-latest strategy: @@ -12,29 +11,29 @@ jobs: node-version: [12.x, 14.x, 16.x, 18.x] steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 10 - - name: Use Node.js 16.x to build - uses: actions/setup-node@v1 - with: - node-version: 16.x - - run: npm install - - run: npm run build - - run: rm -rf node_modules - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm run test - env: - CI: true - - run: npm run lint - if: matrix.node-version == '16.x' - - run: npm run docs:diff - if: matrix.node-version == '16.x' - - run: npm run test:node - if: matrix.node-version >= '16.x' - - run: npm run test:pack - if: matrix.node-version >= '16.x' + - uses: actions/checkout@v1 + with: + fetch-depth: 10 + - name: Use Node.js 16.x to build + uses: actions/setup-node@v1 + with: + node-version: 16.x + - run: npm install + - run: npm run build + - run: rm -rf node_modules + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run test + env: + CI: true + - run: npm run lint + if: matrix.node-version == '16.x' + - run: npm run docs:diff + if: matrix.node-version == '16.x' + - run: npm run test:node + if: matrix.node-version >= '16.x' + - run: npm run test:pack + if: matrix.node-version >= '16.x' diff --git a/package.json b/package.json index e2fd9ccb..395a3a56 100644 --- a/package.json +++ b/package.json @@ -105,8 +105,8 @@ "test:pack": "./scripts/testpack.sh", "pretest:benchmark": "npm run build", "test:benchmark": "cd examples/benchmark && npm install && npm test", - "prettier:check": "prettier --check '**/*.{js,jsx,json,md}'", - "prettier:fix": "prettier --write '**/*.{js,jsx,json,md}'", + "prettier:check": "prettier --check .", + "prettier:fix": "prettier --write .", "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json", "md": "runmd --watch --output=README.md README_js.md", "docs": "( node --version | grep -q 'v16' ) && ( npm run build && npx runmd --output=README.md README_js.md )", @@ -120,7 +120,7 @@ "url": "https://github.com/uuidjs/uuid.git" }, "lint-staged": { - "*.{js,jsx,json,md}": [ + "*": [ "prettier --write" ], "*.{js,jsx}": [