@hussmartinez/sdk-config 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/biome/base.jsonc +0 -1
- package/package.json +3 -3
- package/src/stylelint/index.js +11 -0
package/README.md
CHANGED
|
@@ -58,6 +58,8 @@ Disable comments need a description, such as `/* stylelint-disable-next-line hm/
|
|
|
58
58
|
export { default } from "@hussmartinez/sdk-config/stylelint";
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
+
It ignores build output and tool caches: `dist/`, `temp/`, `coverage/`, `storybook-static/` and `node_modules/`, at any depth. Built CSS inlines the token values, so it would fail `hm/no-literal-values`. Stylelint resolves these globs against the config file that declares them, so they apply when your config re-exports the preset as above. A config that uses `extends` instead must list its own `ignoreFiles`.
|
|
62
|
+
|
|
61
63
|
### dependency-cruiser
|
|
62
64
|
|
|
63
65
|
The layer rules of [ADR 0008](../../docs/adr/0008-ports-adapters-and-session.md), as clarified by [ADR 0017](../../docs/adr/0017-core-errors-and-shared-runtime-imports.md), as forbidden imports between `src/core/*`, `src/adapters`, `src/features`, `src/react`, `src/element` and `src/workers`. The core may import `@hussmartinez/sdk-core` but never `@hussmartinez/ui` or React, and `src/core/errors` imports only `src/core/model` and `@hussmartinez/sdk-core`. It also rejects cycles, unresolvable and undeclared imports, devDependencies in published code and imports of tests.
|
package/biome/base.jsonc
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hussmartinez/sdk-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Shared development configuration for the @hussmartinez SDK family.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"postcss-value-parser": "^4.2.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@biomejs/biome": "^2.6.
|
|
41
|
+
"@biomejs/biome": "^2.6.2",
|
|
42
42
|
"@commitlint/cli": "^21.2.4",
|
|
43
43
|
"dependency-cruiser": "^18.7.2",
|
|
44
44
|
"lint-staged": "^17.6.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
74
|
-
"@biomejs/biome": "^2.6.
|
|
74
|
+
"@biomejs/biome": "^2.6.6",
|
|
75
75
|
"@commitlint/cli": "^21.2.4",
|
|
76
76
|
"@commitlint/lint": "^21.2.4",
|
|
77
77
|
"@commitlint/load": "^21.2.4",
|
package/src/stylelint/index.js
CHANGED
|
@@ -15,6 +15,17 @@ const NAME = "[a-z0-9]+(?:-[a-z0-9]+)*";
|
|
|
15
15
|
*/
|
|
16
16
|
const config = {
|
|
17
17
|
plugins: [layerNamePattern, noLiteralValues, selectorScope],
|
|
18
|
+
// Build output and tool caches. Built CSS inlines the token values, so
|
|
19
|
+
// linting it would report every one. Stylelint resolves these globs against
|
|
20
|
+
// the directory of the config file that declares them, so they apply when a
|
|
21
|
+
// repository's stylelint.config.js re-exports this preset, as documented.
|
|
22
|
+
ignoreFiles: [
|
|
23
|
+
"**/dist/**",
|
|
24
|
+
"**/temp/**",
|
|
25
|
+
"**/coverage/**",
|
|
26
|
+
"**/storybook-static/**",
|
|
27
|
+
"**/node_modules/**",
|
|
28
|
+
],
|
|
18
29
|
reportDescriptionlessDisables: true,
|
|
19
30
|
reportInvalidScopeDisables: true,
|
|
20
31
|
reportNeedlessDisables: true,
|