Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8fc1cd7

Browse files
committed
Merge branch 'main' into feature/optimised-highlighter
2 parents 4276bb3 + d00e21b commit 8fc1cd7

File tree

8 files changed

+1387
-354
lines changed

8 files changed

+1387
-354
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Pre-commit checks
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
pre-commit-checks:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 22
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Run cspell
25+
run: npm run cspell
26+
27+
- name: Run lint
28+
run: npm run lint
29+
30+
- name: Run build
31+
run: npm run build

‎.husky/pre-commit‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
npm run cspell
12
npm run lint
23
npm run build

‎cspell-dict.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
quicksnip

‎cspell.json‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"dictionaryDefinitions": [
3+
{
4+
"name": "workspace",
5+
"path": "./cspell-dict.txt",
6+
"description": "Custom Workspace Dictionary",
7+
"addWords": true
8+
}
9+
],
10+
"dictionaries": ["workspace"],
11+
"ignorePaths": [
12+
"node_modules",
13+
"dist",
14+
"public"
15+
]
16+
}

‎package-lock.json‎

Lines changed: 1334 additions & 352 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"format:check": "prettier --check .",
1212
"preview": "vite preview",
1313
"prepare": "husky",
14+
"cspell": "cspell --config cspell.json \"**/*.{ts,tsx,js,jsx,json,html}\"",
1415
"snippets:check": "node ./utils/checkSnippetFormatting.js",
1516
"snippets:consolidate": "node ./utils/consolidateSnippets.js"
1617
},
@@ -31,6 +32,7 @@
3132
"@types/react-dom": "^18.3.0",
3233
"@types/react-syntax-highlighter": "^15.5.13",
3334
"@vitejs/plugin-react-swc": "^3.5.0",
35+
"cspell": "^8.17.1",
3436
"eslint": "^9.11.1",
3537
"eslint-config-prettier": "^9.1.0",
3638
"eslint-import-resolver-typescript": "^3.7.0",

‎src/components/CategoryList.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const CategoryList = () => {
1313

1414
if (loading) return <div>Loading...</div>;
1515

16-
if (error) return <div>Error occured: {error}</div>;
16+
if (error) return <div>Error occurred: {error}</div>;
1717

1818
return (
1919
<ul role="list" className="categories">

‎src/components/CopyToClipboard.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const CopyToClipboard = ({ text, ...props }: Props) => {
1717
setIsCopied(true);
1818
setTimeout(() => setIsCopied(false), 2000);
1919
})
20-
.catch((err) => alert("Error occured: " + err));
20+
.catch((err) => alert("Error occurred: " + err));
2121
};
2222

2323
return (

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /