@haltcase/style 8.0.0-canary.6 → 8.0.0-canary.8
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/package.json +172 -164
- package/readme.md +3 -1
- package/typescript/tsconfig.next.json +2 -0
- package/typescript/tsconfig.node-ts.json +10 -0
- package/typescript/tsconfig.node.json +1 -1
- package/typescript/tsconfig.node20.json +2 -1
- package/typescript/tsconfig.node22.json +3 -2
- package/typescript/tsconfig.node24.json +17 -0
package/package.json
CHANGED
|
@@ -1,165 +1,173 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
2
|
+
"name": "@haltcase/style",
|
|
3
|
+
"version": "8.0.0-canary.8",
|
|
4
|
+
"description": "haltcase's web ecosystem style guide & configurations",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"eslint",
|
|
7
|
+
"prettier",
|
|
8
|
+
"typescript",
|
|
9
|
+
"style",
|
|
10
|
+
"eslint-config"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/haltcase/style#readme",
|
|
13
|
+
"bugs": "https://github.com/haltcase/style/issues",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/haltcase/style.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "MPL-2.0",
|
|
19
|
+
"author": "Bo Lingen <bo@haltcase.dev> (https://haltcase.dev)",
|
|
20
|
+
"type": "module",
|
|
21
|
+
"exports": {
|
|
22
|
+
"./eslint": {
|
|
23
|
+
"types": "./dist/types/eslint/index.d.ts",
|
|
24
|
+
"default": "./eslint/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./eslint/rules/*": {
|
|
27
|
+
"types": "./dist/types/eslint/rules/*.d.ts",
|
|
28
|
+
"default": "./eslint/rules/*.js"
|
|
29
|
+
},
|
|
30
|
+
"./eslint/rules/typescript": {
|
|
31
|
+
"types": "./dist/types/eslint/rules/typescript/index.d.ts",
|
|
32
|
+
"default": "./eslint/rules/typescript/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./prettier": {
|
|
35
|
+
"types": "./dist/types/prettier/index.d.ts",
|
|
36
|
+
"default": "./prettier/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./stylelint": {
|
|
39
|
+
"types": "./dist/types/stylelint/index.d.ts",
|
|
40
|
+
"default": "./stylelint/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./stylelint/modules": {
|
|
43
|
+
"types": "./dist/types/stylelint/modules.d.ts",
|
|
44
|
+
"default": "./stylelint/modules.js"
|
|
45
|
+
},
|
|
46
|
+
"./stylelint/standard": {
|
|
47
|
+
"types": "./dist/types/stylelint/standard.d.ts",
|
|
48
|
+
"default": "./stylelint/standard.js"
|
|
49
|
+
},
|
|
50
|
+
"./stylelint/tailwind": {
|
|
51
|
+
"types": "./dist/types/stylelint/tailwind.d.ts",
|
|
52
|
+
"default": "./stylelint/tailwind.js"
|
|
53
|
+
},
|
|
54
|
+
"./typescript/base": "./typescript/tsconfig.base.json",
|
|
55
|
+
"./typescript/bundler": "./typescript/tsconfig.bundler.json",
|
|
56
|
+
"./typescript/next": "./typescript/tsconfig.next.json",
|
|
57
|
+
"./typescript/node": "./typescript/tsconfig.node.json",
|
|
58
|
+
"./typescript/node18": "./typescript/tsconfig.node18.json",
|
|
59
|
+
"./typescript/node20": "./typescript/tsconfig.node20.json",
|
|
60
|
+
"./typescript/node22": "./typescript/tsconfig.node22.json",
|
|
61
|
+
"./typescript/web": "./typescript/tsconfig.web.json"
|
|
62
|
+
},
|
|
63
|
+
"files": [
|
|
64
|
+
"dist",
|
|
65
|
+
"eslint",
|
|
66
|
+
"prettier",
|
|
67
|
+
"stylelint",
|
|
68
|
+
"typescript",
|
|
69
|
+
"next"
|
|
70
|
+
],
|
|
71
|
+
"scripts": {
|
|
72
|
+
"eslint-check": "eslint --max-warnings=0 .",
|
|
73
|
+
"format": "eslint --fix . && prettier --write .",
|
|
74
|
+
"prepare": "husky",
|
|
75
|
+
"prepublishOnly": "tsc",
|
|
76
|
+
"prettier-check": "prettier --check .",
|
|
77
|
+
"semantic-release": "semantic-release",
|
|
78
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
79
|
+
},
|
|
80
|
+
"lint-staged": {
|
|
81
|
+
"*.{js,jsx,ts,tsx,css,yml,yaml}": "pnpm prettier --write"
|
|
82
|
+
},
|
|
83
|
+
"prettier": "./prettier/index.js",
|
|
84
|
+
"stylelint": {
|
|
85
|
+
"extends": "./stylelint/index.js"
|
|
86
|
+
},
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"@babel/core": "^7.26.9",
|
|
89
|
+
"@babel/eslint-parser": "^7.26.8",
|
|
90
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
91
|
+
"@eslint-react/eslint-plugin": "^1.26.2",
|
|
92
|
+
"@next/eslint-plugin-next": "^15.1.7",
|
|
93
|
+
"@stylistic/eslint-plugin-jsx": "^4.2.0",
|
|
94
|
+
"eslint-config-prettier": "^10.0.1",
|
|
95
|
+
"eslint-import-resolver-alias": "^1.1.2",
|
|
96
|
+
"eslint-import-resolver-typescript": "^4.3.4",
|
|
97
|
+
"eslint-plugin-import-x": "^4.6.1",
|
|
98
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
99
|
+
"eslint-plugin-playwright": "^2.2.0",
|
|
100
|
+
"eslint-plugin-react": "^7.37.4",
|
|
101
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
102
|
+
"eslint-plugin-regexp": "^2.7.0",
|
|
103
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
104
|
+
"eslint-plugin-testing-library": "^7.1.1",
|
|
105
|
+
"eslint-plugin-tsdoc": "^0.4.0",
|
|
106
|
+
"eslint-plugin-unicorn": "^60.0.0",
|
|
107
|
+
"postcss-html": "^1.8.0",
|
|
108
|
+
"prettier-plugin-packagejson": "^2.5.8",
|
|
109
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
110
|
+
"stylelint-config-clean-order": "^7.0.0",
|
|
111
|
+
"stylelint-config-html": "^1.1.0",
|
|
112
|
+
"stylelint-config-standard": "^38.0.0",
|
|
113
|
+
"stylelint-config-tailwindcss": "^1.0.0",
|
|
114
|
+
"stylelint-define-config": "^16.14.1",
|
|
115
|
+
"typescript-eslint": "^8.40.0"
|
|
116
|
+
},
|
|
117
|
+
"devDependencies": {
|
|
118
|
+
"@actions/core": "^1.11.1",
|
|
119
|
+
"@actions/exec": "^1.1.1",
|
|
120
|
+
"@actions/github": "^6.0.0",
|
|
121
|
+
"@commitlint/cli": "^19.7.1",
|
|
122
|
+
"@commitlint/config-conventional": "^19.7.1",
|
|
123
|
+
"@eslint/eslintrc": "^3.2.0",
|
|
124
|
+
"@eslint/js": "^9.20.0",
|
|
125
|
+
"@octokit/types": "^14.0.0",
|
|
126
|
+
"@semantic-release/git": "^10.0.1",
|
|
127
|
+
"@types/eslint-config-prettier": "^6.11.3",
|
|
128
|
+
"@types/node": "22",
|
|
129
|
+
"@typescript-eslint/types": "^8.40.0",
|
|
130
|
+
"eslint": "^9.20.1",
|
|
131
|
+
"eslint-define-config": "^2.1.0",
|
|
132
|
+
"globals": "^16.0.0",
|
|
133
|
+
"husky": "^9.1.7",
|
|
134
|
+
"lint-staged": "^16.1.0",
|
|
135
|
+
"prettier": "^3.5.1",
|
|
136
|
+
"semantic-release": "^24.2.3",
|
|
137
|
+
"stylelint": "^16.14.1",
|
|
138
|
+
"typescript": "^5.7.3"
|
|
139
|
+
},
|
|
140
|
+
"peerDependencies": {
|
|
141
|
+
"eslint": ">=9",
|
|
142
|
+
"prettier": ">=3.0.0 <4",
|
|
143
|
+
"stylelint": ">=16.3.1 <17",
|
|
144
|
+
"typescript": ">=5.0.0 <6"
|
|
145
|
+
},
|
|
146
|
+
"peerDependenciesMeta": {
|
|
147
|
+
"eslint": {
|
|
148
|
+
"optional": true
|
|
149
|
+
},
|
|
150
|
+
"prettier": {
|
|
151
|
+
"optional": true
|
|
152
|
+
},
|
|
153
|
+
"stylelint": {
|
|
154
|
+
"optional": true
|
|
155
|
+
},
|
|
156
|
+
"typescript": {
|
|
157
|
+
"optional": true
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"packageManager": "pnpm@10.4.1",
|
|
161
|
+
"engines": {
|
|
162
|
+
"node": ">=20",
|
|
163
|
+
"pnpm": ">=10"
|
|
164
|
+
},
|
|
165
|
+
"publishConfig": {
|
|
166
|
+
"access": "public"
|
|
167
|
+
},
|
|
168
|
+
"pnpm": {
|
|
169
|
+
"onlyBuiltDependencies": [
|
|
170
|
+
"unrs-resolver"
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
}
|
package/readme.md
CHANGED
|
@@ -313,10 +313,12 @@ Several Typescript configs are available to cover various scenarios:
|
|
|
313
313
|
| `@haltcase/style/typescript/base` | Baseline config, intended to be extended from. |
|
|
314
314
|
| `@haltcase/style/typescript/bundler` | For use in bundled projects, most commonly [Vite](https://vitejs.dev/) + [React](https://react.dev). |
|
|
315
315
|
| `@haltcase/style/typescript/next` | For use in [Next.js](https://nextjs.org/) projects. |
|
|
316
|
-
| `@haltcase/style/typescript/node` | Default Node config, currently targeting Node
|
|
316
|
+
| `@haltcase/style/typescript/node` | Default Node config, currently targeting Node 24. |
|
|
317
|
+
| `@haltcase/style/typescript/node-ts` | Addon for other Node configs for use with Node's built-in TypeScript support. |
|
|
317
318
|
| `@haltcase/style/typescript/node18` | For projects targeting Node 18. |
|
|
318
319
|
| `@haltcase/style/typescript/node20` | For projects targeting Node 20. |
|
|
319
320
|
| `@haltcase/style/typescript/node22` | For projects targeting Node 22. |
|
|
321
|
+
| `@haltcase/style/typescript/node24` | For projects targeting Node 24. |
|
|
320
322
|
| `@haltcase/style/typescript/web` | For use in web projects. |
|
|
321
323
|
|
|
322
324
|
Typically, you'll only need to extend from one of these:
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
// https://devblogs.microsoft.com/typescript/announcing-typescript-5-7/#path-rewriting-for-relative-paths
|
|
5
|
+
"rewriteRelativeImportExtensions": true,
|
|
6
|
+
// https://devblogs.microsoft.com/typescript/announcing-typescript-5-8-beta/#the---erasablesyntaxonly-option
|
|
7
|
+
"erasableSyntaxOnly": true,
|
|
8
|
+
"verbatimModuleSyntax": true
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
3
|
"extends": "./tsconfig.base.json",
|
|
4
4
|
"compilerOptions": {
|
|
5
|
-
"lib": ["
|
|
6
|
-
"module": "
|
|
5
|
+
"lib": ["es2024", "ESNext.Array", "ESNext.Collection", "ESNext.Iterator"],
|
|
6
|
+
// Use `"module": "node20"` when TypeScript 5.9+ is widely used
|
|
7
|
+
"module": "nodenext",
|
|
7
8
|
"target": "es2022",
|
|
8
9
|
"moduleResolution": "node16"
|
|
9
10
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"extends": "./tsconfig.base.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"lib": [
|
|
6
|
+
"es2024",
|
|
7
|
+
"ESNext.Array",
|
|
8
|
+
"ESNext.Collection",
|
|
9
|
+
"ESNext.Iterator",
|
|
10
|
+
"ESNext.Promise"
|
|
11
|
+
],
|
|
12
|
+
// Use `"module": "node20"` when TypeScript 5.9+ is widely used
|
|
13
|
+
"module": "nodenext",
|
|
14
|
+
"target": "es2024",
|
|
15
|
+
"moduleResolution": "node16"
|
|
16
|
+
}
|
|
17
|
+
}
|