Skip to content

Commit 6be91bc

Browse files
authored
Merge pull request #5286 from Jason3S/cspell
chore: Update CSpell configuration
2 parents fe1cff3 + e54d090 commit 6be91bc

File tree

98 files changed

+1018
-863
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+1018
-863
lines changed

.cspell/code-terms.txt

+136
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
# This file contains coding related terms
2+
ALPHANUM
3+
antiscript
4+
APPLYCLASS
5+
ARROWHEADSTYLE
6+
ARROWTYPE
7+
autonumber
8+
axisl-line
9+
Bigdecimal
10+
birel
11+
BIREL
12+
bqstring
13+
BQUOTE
14+
bramp
15+
BRKT
16+
callbackargs
17+
callbackname
18+
classdef
19+
classdefid
20+
classentity
21+
classname
22+
COLONSEP
23+
COMPOSIT_STATE
24+
concat
25+
controlx
26+
controly
27+
CSSCLASS
28+
CYLINDEREND
29+
CYLINDERSTART
30+
datakey
31+
DEND
32+
descr
33+
distp
34+
distq
35+
divs
36+
docref
37+
DOMID
38+
doublecircle
39+
DOUBLECIRCLEEND
40+
DOUBLECIRCLESTART
41+
DQUOTE
42+
DSTART
43+
edgesep
44+
EMPTYSTR
45+
enddate
46+
ERDIAGRAM
47+
flatmap
48+
forwardable
49+
frontmatter
50+
funs
51+
gantt
52+
GENERICTYPE
53+
getBoundarys
54+
grammr
55+
graphtype
56+
interp
57+
introdcued
58+
INVTRAPEND
59+
INVTRAPSTART
60+
JDBC
61+
jison
62+
Kaufmann
63+
keyify
64+
LABELPOS
65+
LABELTYPE
66+
LEFTOF
67+
Lexa
68+
linebreak
69+
LINETYPE
70+
LINKSTYLE
71+
LLABEL
72+
loglevel
73+
LOGMSG
74+
lookaheads
75+
mdast
76+
minlen
77+
Mstartx
78+
MULT
79+
NODIR
80+
NSTR
81+
Qcontrolx
82+
reinit
83+
rels
84+
reqs
85+
rewritelinks
86+
rgba
87+
RIGHTOF
88+
sankey
89+
sequencenumber
90+
shrc
91+
signaltype
92+
someclass
93+
SPACELINE
94+
SPACELIST
95+
STADIUMEND
96+
STADIUMSTART
97+
startdate
98+
startx
99+
starty
100+
STMNT
101+
stopx
102+
stopy
103+
strikethrough
104+
stringifying
105+
struct
106+
STYLECLASS
107+
STYLEOPTS
108+
subcomponent
109+
subcomponents
110+
SUBROUTINEEND
111+
SUBROUTINESTART
112+
Subschemas
113+
substr
114+
TAGEND
115+
TAGSTART
116+
techn
117+
TESTSTR
118+
TEXTDATA
119+
TEXTLENGTH
120+
titlevalue
121+
topbar
122+
TRAPEND
123+
TRAPSTART
124+
ts-nocheck
125+
tsdoc
126+
typeof
127+
typestr
128+
unshift
129+
verifymethod
130+
VERIFYMTHD
131+
WARN_DOCSDIR_DOESNT_MATCH
132+
xhost
133+
yaxis
134+
yfunc
135+
yytext
136+
zenuml

.cspell/contributors.txt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Contributors to mermaidjs, one per line
2+
Ashish Jain
3+
cpettitt
4+
Dong Cai
5+
Nikolay Rozhkov
6+
Peng Xiao
7+
subhash-halder
8+
Vinod Sidharth

.cspell/cspell.config.yaml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json
2+
3+
$schema: https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json
4+
5+
dictionaryDefinitions:
6+
- name: code-terms
7+
path: ./code-terms.txt
8+
description: A list of coding related terms.
9+
addWords: true
10+
- name: mermaid-terms
11+
path: ./mermaid-terms.txt
12+
description: A list of terms related to the mermaid project.
13+
addWords: true
14+
- name: misc-terms
15+
path: ./misc-terms.txt
16+
description: A list of miscellaneous terms.
17+
- name: 3rd-party-terms
18+
path: ./libraries.txt
19+
description: A list of 3rd party terms from dependencies.
20+
addWords: true
21+
- name: contributors
22+
path: ./contributors.txt
23+
description: A list of contributors to the mermaid project.
24+
type: 'W'
25+
addWords: true
26+
27+
# cspell:disable
28+
- name: suggestions
29+
words:
30+
- none
31+
suggestWords:
32+
- seperator:separator
33+
- vertice:vertex
34+
# cspell:enable
35+
36+
patterns:
37+
- name: character-set-cyrillic
38+
pattern: '/\p{Script_Extensions=Cyrillic}+/gu'
39+
- name: svg-block
40+
pattern: '<svg[\S\s]+?</svg>'
41+
- name: json-property
42+
pattern: '/"[\w/@-]+":/g'
43+
44+
dictionaries:
45+
- mermaid-terms
46+
- suggestions
47+
- contributors
48+
49+
ignorePaths:
50+
- '*.txt' # do not spell check local dictionaries
51+
52+
# cspell:dictionary misc-terms

.cspell/libraries.txt

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Add third party library terms below
2+
acyclicer
3+
Antlr
4+
Appli
5+
applitools
6+
Asciidoctor
7+
Astah
8+
automerge
9+
bilkent
10+
bisheng
11+
codedoc
12+
Codemia
13+
codepaths
14+
csstree
15+
cytoscape
16+
cytoscape-cose-bilkent
17+
dagre
18+
dagre-d3
19+
Deepdwn
20+
Docsify
21+
Docsy
22+
DokuWiki
23+
dompurify
24+
elkjs
25+
fontawesome
26+
Foswiki
27+
Gitea
28+
graphlib
29+
Grav
30+
iconify
31+
Inkdrop
32+
jiti
33+
jsdocs
34+
jsfiddle
35+
jsonschema
36+
katex
37+
khroma
38+
mathml
39+
matplotlib
40+
mdbook
41+
Mermerd
42+
mkdocs
43+
Nextra
44+
nodenext
45+
npmjs
46+
pageview
47+
pathe
48+
phpbb
49+
pixelmatch
50+
Podlite
51+
presetAttributify
52+
pyplot
53+
redmine
54+
rehype
55+
rscratch
56+
sparkline
57+
sphinxcontrib
58+
ssim
59+
stylis
60+
Swimm
61+
tsbuildinfo
62+
Tuleap
63+
Typora
64+
unocss
65+
unplugin
66+
unstub
67+
vite
68+
vitest
69+
Zune

.cspell/mermaid-terms.txt

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Adamiecki
2+
arrowend
3+
bmatrix
4+
braintree
5+
catmull
6+
compositTitleSize
7+
doublecircle
8+
elems
9+
gantt
10+
gitgraph
11+
gzipped
12+
knsv
13+
Knut
14+
marginx
15+
marginy
16+
Markdownish
17+
mermaidjs
18+
mindmap
19+
mindmaps
20+
multigraph
21+
nodesep
22+
NOTEGROUP
23+
Pinterest
24+
rankdir
25+
ranksep
26+
rect
27+
rects
28+
sandboxed
29+
siebling
30+
statediagram
31+
substate
32+
Sveidqvist
33+
unfixable
34+
Viewbox
35+
viewports
36+
visio
37+
vitepress
38+
xlink
39+
xychart

.cspell/misc-terms.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
newbranch

.eslintrc.cjs

+16-3
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ module.exports = {
7878
'@cspell/spellchecker': [
7979
'error',
8080
{
81-
checkIdentifiers: false,
82-
checkStrings: false,
83-
checkStringTemplates: false,
81+
checkIdentifiers: true,
82+
checkStrings: true,
83+
checkStringTemplates: true,
8484
},
8585
],
8686
'no-empty': [
@@ -159,6 +159,19 @@ module.exports = {
159159
'@typescript-eslint/no-unused-vars': 'off',
160160
},
161161
},
162+
{
163+
files: ['*.spec.{ts,js}', 'tests/**', 'cypress/**/*.js'],
164+
rules: {
165+
'@cspell/spellchecker': [
166+
'error',
167+
{
168+
checkIdentifiers: false,
169+
checkStrings: false,
170+
checkStringTemplates: false,
171+
},
172+
],
173+
},
174+
},
162175
{
163176
files: ['*.html', '*.md', '**/*.md/*'],
164177
rules: {

.lintstagedrc.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export default {
66
// https://prettier.io/docs/en/cli.html#--cache
77
'prettier --write',
88
],
9-
'cSpell.json': ['tsx scripts/fixCSpell.ts'],
9+
'.cspell/*.txt': ['tsx scripts/fixCSpell.ts'],
1010
'**/*.jison': ['pnpm -w run lint:jison'],
1111
};

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ C -->|Two| E[Result 2]
120120
```
121121
sequenceDiagram
122122
Alice->>John: Hello John, how are you?
123-
loop Healthcheck
123+
loop HealthCheck
124124
John->>John: Fight against hypochondria
125125
end
126126
Note right of John: Rational thoughts!
@@ -132,7 +132,7 @@ Bob-->>John: Jolly good!
132132
```mermaid
133133
sequenceDiagram
134134
Alice->>John: Hello John, how are you?
135-
loop Healthcheck
135+
loop HealthCheck
136136
John->>John: Fight against hypochondria
137137
end
138138
Note right of John: Rational thoughts!

README.zh-CN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ C -->|Two| E[Result 2]
9393
```
9494
sequenceDiagram
9595
Alice->>John: Hello John, how are you?
96-
loop Healthcheck
96+
loop HealthCheck
9797
John->>John: Fight against hypochondria
9898
end
9999
Note right of John: Rational thoughts!
@@ -105,7 +105,7 @@ Bob-->>John: Jolly good!
105105
```mermaid
106106
sequenceDiagram
107107
Alice->>John: Hello John, how are you?
108-
loop Healthcheck
108+
loop HealthCheck
109109
John->>John: Fight against hypochondria
110110
end
111111
Note right of John: Rational thoughts!

0 commit comments

Comments
 (0)