Skip to content

Commit 7590ec3

Browse files
chore: update tooling
1 parent b1ad7ba commit 7590ec3

32 files changed

+22768
-32067
lines changed

.cspell.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
"Contex",
3838
"vspace",
3939
"commitlint",
40-
"eslintcache"
40+
"eslintcache",
41+
"akait"
4142
],
42-
4343
"ignorePaths": [
4444
"CHANGELOG.md",
4545
"package.json",

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ logs
22
*.log
33
npm-debug.log*
44
.eslintcache
5+
.cspellcache
56

67
/coverage
78
/dist

README.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ type importFn =
192192
media: string,
193193
resourcePath: string,
194194
supports?: string,
195-
layer?: string
195+
layer?: string,
196196
) => boolean;
197197
};
198198
```
@@ -315,7 +315,7 @@ type modules =
315315
getLocalIdent: (
316316
context: LoaderContext,
317317
localIdentName: string,
318-
localName: string
318+
localName: string,
319319
) => string;
320320
namedExport: boolean;
321321
exportGlobals: boolean;
@@ -489,7 +489,10 @@ To import from multiple modules use multiple `composes:` rules.
489489

490490
```css
491491
:local(.className) {
492-
composes: edit highlight from "./edit.css", button from "module/button.css", classFromThisModule;
492+
composes:
493+
edit highlight from "./edit.css",
494+
button from "module/button.css",
495+
classFromThisModule;
493496
background: red;
494497
}
495498
```
@@ -620,7 +623,7 @@ type auto =
620623
| ((
621624
resourcePath: string,
622625
resourceQuery: string,
623-
resourceFragment: string
626+
resourceFragment: string,
624627
) => boolean);
625628
```
626629

@@ -726,7 +729,7 @@ type mode =
726729
| ((
727730
resourcePath: string,
728731
resourceQuery: string,
729-
resourceFragment: string
732+
resourceFragment: string,
730733
) => "local" | "global" | "pure" | "icss");
731734
```
732735

@@ -1094,7 +1097,7 @@ Type:
10941097
type getLocalIdent = (
10951098
context: LoaderContext,
10961099
localIdentName: string,
1097-
localName: string
1100+
localName: string,
10981101
) => string;
10991102
```
11001103

@@ -1333,7 +1336,7 @@ module.exports = {
13331336
name.replace(/-/g, "_"),
13341337
// dashesCamelCase
13351338
name.replace(/-+(\w)/g, (match, firstLetter) =>
1336-
firstLetter.toUpperCase()
1339+
firstLetter.toUpperCase(),
13371340
),
13381341
];
13391342
},
@@ -1770,7 +1773,8 @@ With the help of the `/* webpackIgnore: true */`comment, it is possible to disab
17701773
.class {
17711774
/* Disabled url handling for the second url in the 'background' declaration */
17721775
color: red;
1773-
background: url("./url/img.png"),
1776+
background:
1777+
url("./url/img.png"),
17741778
/* webpackIgnore: true */ url("./url/img.png");
17751779
}
17761780

@@ -1904,7 +1908,7 @@ module.exports = {
19041908
alias: {
19051909
"/assets/unresolved/img.png": path.resolve(
19061910
__dirname,
1907-
"assets/real-path-to-img/img.png"
1911+
"assets/real-path-to-img/img.png",
19081912
),
19091913
},
19101914
},

lint-staged.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
2-
"*": ["prettier --write --ignore-unknown", "cspell --no-must-find-files"],
2+
"*": [
3+
"prettier --cache --write --ignore-unknown",
4+
"cspell --cache --no-must-find-files",
5+
],
36
"*.js": ["eslint --cache --fix"],
47
};

0 commit comments

Comments
 (0)