Skip to content

Commit

Permalink
chore: update tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 3, 2024
1 parent 62f384f commit 31e2326
Show file tree
Hide file tree
Showing 32 changed files with 22,768 additions and 32,067 deletions.
4 changes: 2 additions & 2 deletions .cspell.json
Expand Up @@ -37,9 +37,9 @@
"Contex",
"vspace",
"commitlint",
"eslintcache"
"eslintcache",
"akait"
],

"ignorePaths": [
"CHANGELOG.md",
"package.json",
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,6 +2,7 @@ logs
*.log
npm-debug.log*
.eslintcache
.cspellcache

/coverage
/dist
Expand Down
22 changes: 13 additions & 9 deletions README.md
Expand Up @@ -192,7 +192,7 @@ type importFn =
media: string,
resourcePath: string,
supports?: string,
layer?: string
layer?: string,
) => boolean;
};
```
Expand Down Expand Up @@ -315,7 +315,7 @@ type modules =
getLocalIdent: (
context: LoaderContext,
localIdentName: string,
localName: string
localName: string,
) => string;
namedExport: boolean;
exportGlobals: boolean;
Expand Down Expand Up @@ -489,7 +489,10 @@ To import from multiple modules use multiple `composes:` rules.

```css
:local(.className) {
composes: edit highlight from "./edit.css", button from "module/button.css", classFromThisModule;
composes:
edit highlight from "./edit.css",
button from "module/button.css",
classFromThisModule;
background: red;
}
```
Expand Down Expand Up @@ -620,7 +623,7 @@ type auto =
| ((
resourcePath: string,
resourceQuery: string,
resourceFragment: string
resourceFragment: string,
) => boolean);
```

Expand Down Expand Up @@ -726,7 +729,7 @@ type mode =
| ((
resourcePath: string,
resourceQuery: string,
resourceFragment: string
resourceFragment: string,
) => "local" | "global" | "pure" | "icss");
```

Expand Down Expand Up @@ -1094,7 +1097,7 @@ Type:
type getLocalIdent = (
context: LoaderContext,
localIdentName: string,
localName: string
localName: string,
) => string;
```

Expand Down Expand Up @@ -1333,7 +1336,7 @@ module.exports = {
name.replace(/-/g, "_"),
// dashesCamelCase
name.replace(/-+(\w)/g, (match, firstLetter) =>
firstLetter.toUpperCase()
firstLetter.toUpperCase(),
),
];
},
Expand Down Expand Up @@ -1770,7 +1773,8 @@ With the help of the `/* webpackIgnore: true */`comment, it is possible to disab
.class {
/* Disabled url handling for the second url in the 'background' declaration */
color: red;
background: url("./url/img.png"),
background:
url("./url/img.png"),
/* webpackIgnore: true */ url("./url/img.png");
}

Expand Down Expand Up @@ -1904,7 +1908,7 @@ module.exports = {
alias: {
"/assets/unresolved/img.png": path.resolve(
__dirname,
"assets/real-path-to-img/img.png"
"assets/real-path-to-img/img.png",
),
},
},
Expand Down
5 changes: 4 additions & 1 deletion lint-staged.config.js
@@ -1,4 +1,7 @@
module.exports = {
"*": ["prettier --write --ignore-unknown", "cspell --no-must-find-files"],
"*": [
"prettier --cache --write --ignore-unknown",
"cspell --cache --no-must-find-files",
],
"*.js": ["eslint --cache --fix"],
};

0 comments on commit 31e2326

Please sign in to comment.