Skip to content

Commit ff27a6e

Browse files
authored
Fix GitHub Actions + add spell-check (#57)
1 parent 401bbb1 commit ff27a6e

File tree

8 files changed

+829
-11
lines changed

8 files changed

+829
-11
lines changed

.cspell.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2",
3+
"language": "en",
4+
"dictionaries": ["startrack-js"],
5+
"dictionaryDefinitions": [
6+
{
7+
"name": "startrack-js",
8+
"path": "./dictionary.txt"
9+
}
10+
]
11+
}

.github/workflows/test-deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ jobs:
2020
- name: Install packages
2121
run: yarn install
2222
- name: Format
23-
run: yarn run format
23+
run: yarn run format:check
2424
- name: Lint
2525
run: yarn run lint
26+
- name: Spell check
27+
run: yarn run spellcheck
2628
- name: Test build
2729
run: yarn run build
2830
- name: Run tests

dictionary.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
seladb
2+
startrack
3+
pcapplusplus
4+
Overridable
5+
testid
6+
plotly
7+
Relayout
8+
xaxis
9+
yaxis
10+
modebar
11+
hovertemplate
12+
hoverlabel
13+
showlegend
14+
autorange
15+
fixedrange
16+
Formik
17+
datagrid
18+
camelcase
19+
slugified
20+
TTFB
21+
octicon

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"eject": "react-scripts eject",
4040
"lint": "eslint --ext js,jsx,ts,tsx src/",
4141
"lint:fix": "eslint --ext js,jsx,ts,tsx --fix src/",
42-
"format": "prettier --write . --config ./.prettierrc"
42+
"format": "prettier --write . --config ./.prettierrc",
43+
"format:check": "prettier --check . --config ./.prettierrc",
44+
"spellcheck": "cspell **/*.{ts,tsx}"
4345
},
4446
"jest": {
4547
"transformIgnorePatterns": [
@@ -69,6 +71,7 @@
6971
"@types/react-plotly.js": "^2.6.0",
7072
"@typescript-eslint/eslint-plugin": "^5.50.0",
7173
"@typescript-eslint/parser": "^5.50.0",
74+
"cspell": "^8.3.2",
7275
"eslint": "^8.33.0",
7376
"eslint-config-prettier": "^8.6.0",
7477
"eslint-plugin-prettier": "^4.2.1",

src/components/GitHubAuth/GitHubAuthForm.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// cspell: ignore aren
2+
13
import {
24
Button,
35
Dialog,

src/utils/GitHubUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const stargazersURL =
77
const validateAccessTokenURL = "https://api.github.com/user";
88
const repoUrlTemplate = "https://github.com/{user}/{repo}";
99

10-
export const storageKey = "statrack_js_access_token";
10+
export const storageKey = "startrack_js_access_token";
1111

1212
const maxSupportedPagesWithoutAccessToken = 30;
1313

src/utils/StringUtils.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// cSpell:ignore capitalletters, specialchars
2+
13
import { slugify } from "./StringUtils";
24

35
describe(slugify, () => {

yarn.lock

Lines changed: 785 additions & 8 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)