Skip to content

Commit bc46e19

Browse files
nschonnibroofactavan
authored
chore: expand Prettier glob to all files (#701)
--------- Co-authored-by: Robert Kieffer <robert@broofa.com> Co-authored-by: Christoph Tavan <dev@tavan.de>
1 parent e267b90 commit bc46e19

File tree

5 files changed

+85
-83
lines changed

5 files changed

+85
-83
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+31-31
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
name: Bug report
22
description: File a bug against the `uuid` project
3-
labels: ["bug"]
4-
title: "[BUG] <title>"
3+
labels: ['bug']
4+
title: '[BUG] <title>'
55

66
body:
7-
- type: checkboxes
8-
attributes:
9-
label: Before you begin...
10-
options:
11-
- label: I have searched the existing issues
12-
required: true
13-
- label: I am not using version 13.x of node (if so, please upgrade)
14-
required: true
7+
- type: checkboxes
8+
attributes:
9+
label: Before you begin...
10+
options:
11+
- label: I have searched the existing issues
12+
required: true
13+
- label: I am not using version 13.x of node (if so, please upgrade)
14+
required: true
1515

16-
- type: textarea
17-
attributes:
18-
label: Description of the problem
19-
validations:
20-
required: false
16+
- type: textarea
17+
attributes:
18+
label: Description of the problem
19+
validations:
20+
required: false
2121

22-
- type: textarea
23-
attributes:
24-
label: Recipe for reproducing
25-
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."
26-
render: bash
27-
validations:
28-
required: false
22+
- type: textarea
23+
attributes:
24+
label: Recipe for reproducing
25+
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.'
26+
render: bash
27+
validations:
28+
required: false
2929

30-
- type: textarea
31-
attributes:
32-
label: Additional information
30+
- type: textarea
31+
attributes:
32+
label: Additional information
3333

34-
- type: textarea
35-
attributes:
36-
label: Environment
37-
description: "Output of `npx envinfo --system --browsers --npmPackages --binaries` goes here:"
38-
validations:
39-
required: false
34+
- type: textarea
35+
attributes:
36+
label: Environment
37+
description: 'Output of `npx envinfo --system --browsers --npmPackages --binaries` goes here:'
38+
validations:
39+
required: false
+8-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: Feature request
22
description: Suggest an idea for this project
3-
labels: ["feature"]
3+
labels: ['feature']
44

55
body:
6-
- type: textarea
7-
attributes:
8-
label: Feature description
6+
- type: textarea
7+
attributes:
8+
label: Feature description
99

10-
- type: textarea
11-
attributes:
12-
label: Additional information
13-
description: E.g. alternatives you've considered, examples, screenshots, or anything else that may be helpful
10+
- type: textarea
11+
attributes:
12+
label: Additional information
13+
description: E.g. alternatives you've considered, examples, screenshots, or anything else that may be helpful

.github/workflows/browser.yml

+17-14
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,20 @@ jobs:
1212
timeout-minutes: 30
1313

1414
steps:
15-
- uses: actions/checkout@v3
16-
- name: Use Node.js 16.x
17-
uses: actions/setup-node@v3
18-
with:
19-
node-version: 16.x
20-
- run: npm ci
21-
- name: Test Browser
22-
run: npm run test:browser
23-
env:
24-
BROWSERSTACK_USER: ${{ secrets.BROWSERSTACK_USER }}
25-
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
26-
- run: npx bundlewatch --config bundlewatch.config.json
27-
env:
28-
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 10
18+
- name: Use Node.js 16.x
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 16.x
22+
- run: npm ci
23+
- name: Test Browser
24+
run: npm run test:browser
25+
env:
26+
CI: true
27+
BROWSERSTACK_USER: ${{ secrets.BROWSERSTACK_USER }}
28+
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
29+
- run: npx bundlewatch --config bundlewatch.config.json
30+
env:
31+
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}

.github/workflows/ci.yml

+26-27
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,36 @@ on: [push, pull_request]
44

55
jobs:
66
ci:
7-
87
runs-on: ubuntu-latest
98

109
strategy:
1110
matrix:
1211
node-version: [12.x, 14.x, 16.x, 18.x, 20.x]
1312

1413
steps:
15-
- uses: actions/checkout@v4
16-
with:
17-
fetch-depth: 10
18-
- name: Use Node.js 18.x to build
19-
uses: actions/setup-node@v3
20-
with:
21-
node-version: 18.x
22-
- run: npm install
23-
- run: npm run build
24-
- run: rm -rf node_modules
25-
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v3
27-
with:
28-
node-version: ${{ matrix.node-version }}
29-
- run: npm install
30-
- run: npm run test
31-
env:
32-
CI: true
33-
- run: npm run lint
34-
if: matrix.node-version == '18.x'
35-
- run: npm run docs:diff
36-
if: matrix.node-version == '18.x'
37-
- run: npm run test:node
38-
if: matrix.node-version >= '18.x'
39-
- run: npm run test:pack
40-
if: matrix.node-version >= '18.x'
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 10
17+
- name: Use Node.js 18.x to build
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 18.x
21+
- run: npm install
22+
- run: npm run build
23+
- run: rm -rf node_modules
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
- run: npm install
29+
- run: npm run test
30+
env:
31+
CI: true
32+
- run: npm run lint
33+
if: matrix.node-version == '18.x'
34+
- run: npm run docs:diff
35+
if: matrix.node-version == '18.x'
36+
- run: npm run test:node
37+
if: matrix.node-version >= '18.x'
38+
- run: npm run test:pack
39+
if: matrix.node-version >= '18.x'

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
"test:pack": "./scripts/testpack.sh",
106106
"pretest:benchmark": "npm run build",
107107
"test:benchmark": "cd examples/benchmark && npm install && npm test",
108-
"prettier:check": "prettier --check '**/*.{js,jsx,json,md}'",
109-
"prettier:fix": "prettier --write '**/*.{js,jsx,json,md}'",
108+
"prettier:check": "prettier --check .",
109+
"prettier:fix": "prettier --write .",
110110
"bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
111111
"md": "runmd --watch --output=README.md README_js.md",
112112
"docs": "( node --version | grep -q 'v18' ) && ( npm run build && npx runmd --output=README.md README_js.md )",
@@ -120,7 +120,7 @@
120120
"url": "https://github.com/uuidjs/uuid.git"
121121
},
122122
"lint-staged": {
123-
"*.{js,jsx,json,md}": [
123+
"*": [
124124
"prettier --write"
125125
],
126126
"*.{js,jsx}": [

0 commit comments

Comments
 (0)