Skip to content

Commit

Permalink
chore: Format all files with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
cmfcmf committed Nov 10, 2024
1 parent 9accb28 commit 342913d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#patreon: cmfcmf
ko_fi: cmfcmf
custom:
- https://www.buymeacoffee.com/cmfcmf
- https://www.buymeacoffee.com/cmfcmf
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
- uses: wagoid/commitlint-github-action@v5
48 changes: 24 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,33 +33,33 @@ jobs:
- "canary"

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- run: npm ci
- run: npm run lint
- run: npm ci
- run: npm run lint

- run: npm install --workspaces --save-dev '@docusaurus/core@${{ matrix.docusaurus-version }}' '@docusaurus/preset-classic@${{ matrix.docusaurus-version }}' '@docusaurus/module-type-aliases@${{ matrix.docusaurus-version }}' '@docusaurus/plugin-content-blog@${{ matrix.docusaurus-version }}' '@docusaurus/plugin-content-docs@${{ matrix.docusaurus-version }}' '@docusaurus/plugin-content-pages@${{ matrix.docusaurus-version }}' '@docusaurus/theme-common@${{ matrix.docusaurus-version }}' '@docusaurus/theme-classic@${{ matrix.docusaurus-version }}' '@docusaurus/types@${{ matrix.docusaurus-version }}'
- run: npm dedupe
- run: npm install --workspaces --save-dev '@docusaurus/core@${{ matrix.docusaurus-version }}' '@docusaurus/preset-classic@${{ matrix.docusaurus-version }}' '@docusaurus/module-type-aliases@${{ matrix.docusaurus-version }}' '@docusaurus/plugin-content-blog@${{ matrix.docusaurus-version }}' '@docusaurus/plugin-content-docs@${{ matrix.docusaurus-version }}' '@docusaurus/plugin-content-pages@${{ matrix.docusaurus-version }}' '@docusaurus/theme-common@${{ matrix.docusaurus-version }}' '@docusaurus/theme-classic@${{ matrix.docusaurus-version }}' '@docusaurus/types@${{ matrix.docusaurus-version }}'
- run: npm dedupe

- run: npm run build
- run: npm run build

- run: npm run test
- run: npm run test

# Install OS dependencies
# Run `apt update` beforehand to avoid 404 Not Found errors during apt install.
- run: sudo apt update
if: runner.os == 'Linux'
- run: npx playwright install-deps
# Install Browsers
- run: npx playwright install
- run: npm run test:e2e -- -- --browser=all --forbid-only
# Install OS dependencies
# Run `apt update` beforehand to avoid 404 Not Found errors during apt install.
- run: sudo apt update
if: runner.os == 'Linux'
- run: npx playwright install-deps
# Install Browsers
- run: npx playwright install
- run: npm run test:e2e -- -- --browser=all --forbid-only

# TODO: Cannot run browser tests for these for now.
- run: npm run build -w example-docs -- --config docusaurus.config.noTrailingSlash.js
- run: npm run build -w example-docs -- --config docusaurus.config.subDirectory.js
- run: npm run build -w example-docs -- --config docusaurus.config.noTrailingSlashSubdirectory.js
# TODO: Cannot run browser tests for these for now.
- run: npm run build -w example-docs -- --config docusaurus.config.noTrailingSlash.js
- run: npm run build -w example-docs -- --config docusaurus.config.subDirectory.js
- run: npm run build -w example-docs -- --config docusaurus.config.noTrailingSlashSubdirectory.js
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
"serve": "turbo serve",
"test": "turbo test",
"test:e2e": "turbo test:e2e",
"lint:style": "prettier --check **/*.{js,jsx,ts,tsx,json,css,scss,md,html}",
"lint:style": "prettier --check .",
"lint:dependencies": "syncpack list-mismatches",
"format:style": "prettier --write **/*.{js,jsx,ts,tsx,json,css,scss,md,html}",
"format:style": "prettier --write .",
"format:dependencies": "syncpack fix-mismatches",
"release": "bash scripts/release.sh"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx,json,css,scss,md,html}": [
".": [
"prettier --write"
]
},
Expand Down

0 comments on commit 342913d

Please sign in to comment.