Skip to content

Commit 6c67af8

Browse files
authored
chore: add cSpell to check spelling issues (#1482)
1 parent 239b9ac commit 6c67af8

7 files changed

+1718
-79
lines changed

.cspell.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"version": "0.2",
3+
"language": "en,en-gb",
4+
"words": [
5+
"pures",
6+
"icss",
7+
"styl",
8+
"nosources",
9+
"unknwon",
10+
"mycss",
11+
"memfs",
12+
"Koppers",
13+
"sokra",
14+
"plusplus",
15+
"localident",
16+
"fullhash",
17+
"requestify",
18+
"XSSI",
19+
"Requestable",
20+
"requestable",
21+
"requestify",
22+
"nourl",
23+
"stylesheet",
24+
"classname",
25+
"EACE",
26+
"UAAU",
27+
"AACZ",
28+
"MCEP",
29+
"stringifier",
30+
"Zvby",
31+
"uncnoun",
32+
"bazzy",
33+
"svars",
34+
"concat",
35+
"camelcase",
36+
"Brotli",
37+
"Contex",
38+
"vspace",
39+
"commitlint"
40+
],
41+
42+
"ignorePaths": [
43+
"CHANGELOG.md",
44+
"package.json",
45+
"dist/**",
46+
"**/__snapshots__/**",
47+
"package-lock.json",
48+
"**/*.css",
49+
"**/fonts/**"
50+
]
51+
}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ module.exports = {
162162
return false;
163163
}
164164

165-
// Don't handle images under root-relatve /external_images/
165+
// Don't handle images under root-relative /external_images/
166166
if (/^\/external_images\//.test(path)) {
167167
return false;
168168
}
@@ -481,7 +481,7 @@ To import from multiple modules use multiple `composes:` rules.
481481

482482
```css
483483
:local(.className) {
484-
composes: edit hightlight from "./edit.css";
484+
composes: edit highlight from "./edit.css";
485485
composes: button from "module/button.css";
486486
composes: classFromThisModule;
487487
background: red;

lint-staged.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
"*": ["prettier --write --ignore-unknown"],
2+
"*": ["prettier --write --ignore-unknown", "cspell"],
33
"*.js": ["eslint --cache --fix"],
44
};

0 commit comments

Comments
 (0)