Skip to content

Commit 54d2561

Browse files
authored
chore: fix prettier (#67)
1 parent 3c04ec3 commit 54d2561

25 files changed

+371
-396
lines changed

.cspell.json

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
11
{
2-
"version": "0.2",
3-
"dictionaries": [
4-
"custom-dictionary"
5-
],
6-
"useGitignore": true,
7-
"ignorePaths": [
8-
".git",
9-
"_raw_assets",
10-
"*.svg",
11-
"docs/assets/images",
12-
"Gemfile.lock"
13-
],
14-
"dictionaryDefinitions": [
15-
{
16-
"name": "custom-dictionary",
17-
"path": "./.cspell/custom-dictionary.txt",
18-
"addWords": true
19-
}
20-
],
21-
"enableFiletypes": [
22-
"ruby"
23-
]
2+
"version": "0.2",
3+
"dictionaries": ["custom-dictionary"],
4+
"useGitignore": true,
5+
"ignorePaths": [".git", "_raw_assets", "*.svg", "docs/assets/images", "Gemfile.lock"],
6+
"dictionaryDefinitions": [
7+
{
8+
"name": "custom-dictionary",
9+
"path": "./.cspell/custom-dictionary.txt",
10+
"addWords": true
11+
}
12+
],
13+
"enableFiletypes": ["ruby"]
2414
}

.github/dependabot.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "npm" # See documentation for possible values
9-
directory: "/" # Location of package manifests
8+
- package-ecosystem: 'npm' # See documentation for possible values
9+
directory: '/' # Location of package manifests
1010
versioning-strategy: increase
1111
schedule:
12-
interval: "daily"
12+
interval: 'daily'
1313

14-
- package-ecosystem: "github-actions"
14+
- package-ecosystem: 'github-actions'
1515
# Workflow files stored in the
1616
# default location of `.github/workflows`
17-
directory: "/"
17+
directory: '/'
1818
schedule:
19-
interval: "daily"
19+
interval: 'daily'
2020

21-
- package-ecosystem: "bundler"
21+
- package-ecosystem: 'bundler'
2222
# The Gemfile used in for the Jekyll doc site
23-
directory: "/"
23+
directory: '/'
2424
schedule:
25-
interval: "daily"
25+
interval: 'daily'

.github/workflows/cspell-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ jobs:
1616
- name: Spell Check
1717
uses: streetsidesoftware/[email protected]
1818
with:
19-
files: "**"
19+
files: '**'
2020
incremental_files_only: false

.github/workflows/deploy-website.yml

Lines changed: 49 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,53 @@
1-
name: Deploy to GitHub Pages
1+
name: ' 🌐 Deploy to GitHub Pages'
22

33
on:
4-
workflow_dispatch:
5-
push:
6-
branches:
7-
- main
8-
# Review gh actions docs if you want to further define triggers, paths, etc
9-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- 'website/**'
10+
11+
# Review gh actions docs if you want to further define triggers, paths, etc
12+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
1013

1114
jobs:
12-
build:
13-
name: Build Docusaurus
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: 20
20-
cache: npm
21-
22-
- name: Install dependencies
23-
run: npm i
24-
- name: Build website
25-
run: npm run build
26-
27-
- name: Upload Build Artifact
28-
uses: actions/upload-pages-artifact@v3
29-
with:
30-
path: website/build
31-
32-
deploy:
33-
name: Deploy to GitHub Pages
34-
needs: build
35-
36-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
37-
permissions:
38-
pages: write # to deploy to Pages
39-
id-token: write # to verify the deployment originates from an appropriate source
40-
41-
# Deploy to the github-pages environment
42-
environment:
43-
name: github-pages
44-
url: ${{ steps.deployment.outputs.page_url }}
45-
46-
runs-on: ubuntu-latest
47-
steps:
48-
- name: Deploy to GitHub Pages
49-
id: deployment
50-
uses: actions/deploy-pages@v4
15+
build:
16+
name: Build Docusaurus
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: npm
24+
25+
- name: Install dependencies
26+
run: npm i
27+
- name: Build website
28+
run: npm run build
29+
30+
- name: Upload Build Artifact
31+
uses: actions/upload-pages-artifact@v3
32+
with:
33+
path: website/build
34+
35+
deploy:
36+
name: Deploy to GitHub Pages
37+
needs: build
38+
39+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
40+
permissions:
41+
pages: write # to deploy to Pages
42+
id-token: write # to verify the deployment originates from an appropriate source
43+
44+
# Deploy to the github-pages environment
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

.github/workflows/jekyll.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: ' 🧽 Lint'
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
build:
12+
name: Build Docusaurus
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
cache: npm
20+
21+
- name: Install dependencies
22+
run: npm i
23+
24+
- name: Lint
25+
run: npm run lint

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: ' 🧪 Test Build'
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
# Review gh actions docs if you want to further define triggers, paths, etc
10+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
11+
12+
jobs:
13+
build:
14+
name: Build Docusaurus
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
cache: npm
22+
23+
- name: Install dependencies
24+
run: npm i
25+
- name: Build website
26+
run: npm run build

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
**/*.mdx
2+
**/node_modules
3+
node_modules
4+
package-lock.json
5+
website/.docusaurus
6+
website/build

.prettierrc.yaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1-
tabWidth: 4
2-
semi: false
1+
tabWidth: 2
2+
semi: true
33
singleQuote: true
4-
printWidth": 120
5-
singleQuote": true
4+
printWidth: 140
5+
endOfLine: lf
6+
overrides:
7+
- files: '**/*.{yaml,yml,js,jsx,ts,tsx}'
8+
options:
9+
tabWidth: 2
10+
- files: '**/package.json'
11+
options:
12+
tabWidth: 2
13+
singleQuote: false
14+
- files: '**/*.{json,jsonc,md,code-snippets,code-workspace}'
15+
options:
16+
trailingComma: none
17+
- files: '**/*.{html,css,scss}'
18+
options:
19+
tabWidth: 2
20+
singleQuote: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ npm run serve
1414

1515
## Resources
1616

17-
- Images: [500+ Best Code Pictures [HD] | Download Free Images on Unsplash](https://unsplash.com/s/photos/code)
17+
- Images: [500+ Best Code Pictures [HD] | Download Free Images on Unsplash](https://unsplash.com/s/photos/code)

0 commit comments

Comments
 (0)