@blockquote/create-wc 2.7.3 → 2.7.5
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote/create-wc",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.5",
|
|
4
4
|
"description": "Web component with Lit scaffolding - Extending Open Web Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"eslint": "^9.39.2",
|
|
59
59
|
"eslint-config-prettier": "^10.1.8",
|
|
60
60
|
"prettier": "^3.7.4",
|
|
61
|
-
"globals": "^
|
|
61
|
+
"globals": "^17.0.0"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=18.20.3"
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@eslint/js": "^9.39.2",
|
|
72
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
73
|
-
"@html-eslint/parser": "^0.
|
|
72
|
+
"@html-eslint/eslint-plugin": "^0.52.1",
|
|
73
|
+
"@html-eslint/parser": "^0.52.0",
|
|
74
74
|
"eslint": "^9.39.2",
|
|
75
75
|
"eslint-config-prettier": "^10.1.8",
|
|
76
76
|
"eslint-plugin-html": "^8.1.3",
|
|
@@ -78,9 +78,8 @@
|
|
|
78
78
|
"eslint-plugin-lit": "^2.1.1",
|
|
79
79
|
"eslint-plugin-lit-a11y": "^5.1.1",
|
|
80
80
|
"eslint-plugin-wc": "^3.0.2",
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"globals": "^16.5.0",
|
|
81
|
+
"typescript-eslint": "^8.52.0",
|
|
82
|
+
"globals": "^17.0.0",
|
|
84
83
|
"husky": "^9.1.7",
|
|
85
84
|
"lint-staged": "^16.2.7",
|
|
86
85
|
"prettier": "^3.7.4",
|
|
@@ -3,8 +3,7 @@ import {configs as wc} from 'eslint-plugin-wc';
|
|
|
3
3
|
import {configs as lit} from 'eslint-plugin-lit';
|
|
4
4
|
import {default as litA11y} from 'eslint-plugin-lit-a11y';
|
|
5
5
|
import {flatConfigs as importPlugin} from 'eslint-plugin-import';
|
|
6
|
-
import tseslint from 'typescript-eslint';
|
|
7
|
-
import tsParser from '@typescript-eslint/parser';
|
|
6
|
+
import {configs as tseslint, parser as tsParser} from 'typescript-eslint';
|
|
8
7
|
import htmlEslint from '@html-eslint/eslint-plugin';
|
|
9
8
|
import htmlEslintParser from '@html-eslint/parser';
|
|
10
9
|
import eslintPluginHtml from 'eslint-plugin-html';
|
|
@@ -13,11 +12,35 @@ import globals from 'globals';
|
|
|
13
12
|
|
|
14
13
|
const fileTypes = '{js,ts,mjs}';
|
|
15
14
|
|
|
15
|
+
//
|
|
16
|
+
// ──────────────────────────────────────────────────────────────
|
|
17
|
+
// Base config
|
|
18
|
+
// ──────────────────────────────────────────────────────────────
|
|
19
|
+
//
|
|
20
|
+
const baseConfig = [
|
|
21
|
+
js.configs.recommended,
|
|
22
|
+
{
|
|
23
|
+
languageOptions: {
|
|
24
|
+
ecmaVersion: 'latest',
|
|
25
|
+
sourceType: 'module',
|
|
26
|
+
globals: {
|
|
27
|
+
...globals.browser,
|
|
28
|
+
...globals.mocha,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
//
|
|
35
|
+
// ──────────────────────────────────────────────────────────────
|
|
16
36
|
// eslint-plugin-import
|
|
37
|
+
// ──────────────────────────────────────────────────────────────
|
|
38
|
+
//
|
|
17
39
|
const importFilesConfig = [importPlugin.recommended, importPlugin.typescript].map((conf) => ({
|
|
18
40
|
...conf,
|
|
19
41
|
files: [`**/*.${fileTypes}`],
|
|
20
42
|
languageOptions: {
|
|
43
|
+
...conf.languageOptions,
|
|
21
44
|
parser: tsParser,
|
|
22
45
|
},
|
|
23
46
|
}));
|
|
@@ -25,13 +48,7 @@ const importFilesConfig = [importPlugin.recommended, importPlugin.typescript].ma
|
|
|
25
48
|
const importFilesRules = {
|
|
26
49
|
files: [`**/*.${fileTypes}`],
|
|
27
50
|
rules: {
|
|
28
|
-
'import/extensions': [
|
|
29
|
-
'error',
|
|
30
|
-
'always',
|
|
31
|
-
{
|
|
32
|
-
ignorePackages: true,
|
|
33
|
-
},
|
|
34
|
-
],
|
|
51
|
+
'import/extensions': ['error', 'always', {ignorePackages: true}],
|
|
35
52
|
'import/no-extraneous-dependencies': [
|
|
36
53
|
'error',
|
|
37
54
|
{
|
|
@@ -47,7 +64,12 @@ const importFilesRules = {
|
|
|
47
64
|
},
|
|
48
65
|
};
|
|
49
66
|
|
|
67
|
+
//
|
|
68
|
+
// ──────────────────────────────────────────────────────────────
|
|
50
69
|
// eslint-plugin-lit-a11y
|
|
70
|
+
// ──────────────────────────────────────────────────────────────
|
|
71
|
+
//
|
|
72
|
+
// @ts-ignore
|
|
51
73
|
const litA11yFilesConfig = [litA11y.configs.recommended].map((conf) => ({
|
|
52
74
|
...conf,
|
|
53
75
|
files: [`**/*.${fileTypes}`],
|
|
@@ -62,7 +84,11 @@ const litA11yFilesRules = {
|
|
|
62
84
|
},
|
|
63
85
|
};
|
|
64
86
|
|
|
87
|
+
//
|
|
88
|
+
// ──────────────────────────────────────────────────────────────
|
|
65
89
|
// eslint-plugin-wc
|
|
90
|
+
// ──────────────────────────────────────────────────────────────
|
|
91
|
+
//
|
|
66
92
|
const wcFilesConfig = [wc['flat/recommended']].map((conf) => ({
|
|
67
93
|
...conf,
|
|
68
94
|
files: [`**/*.${fileTypes}`],
|
|
@@ -75,7 +101,11 @@ const wcFilesRules = {
|
|
|
75
101
|
},
|
|
76
102
|
};
|
|
77
103
|
|
|
104
|
+
//
|
|
105
|
+
// ──────────────────────────────────────────────────────────────
|
|
78
106
|
// eslint-plugin-lit
|
|
107
|
+
// ──────────────────────────────────────────────────────────────
|
|
108
|
+
//
|
|
79
109
|
const litFilesConfig = [lit['flat/recommended']].map((conf) => ({
|
|
80
110
|
...conf,
|
|
81
111
|
files: [`**/*.${fileTypes}`],
|
|
@@ -92,32 +122,63 @@ const litFilesRules = {
|
|
|
92
122
|
},
|
|
93
123
|
};
|
|
94
124
|
|
|
95
|
-
//
|
|
96
|
-
|
|
125
|
+
//
|
|
126
|
+
// ──────────────────────────────────────────────────────────────
|
|
127
|
+
// typescript-eslint
|
|
128
|
+
// ──────────────────────────────────────────────────────────────
|
|
129
|
+
//
|
|
130
|
+
const tsFilesConfig = [...tseslint.strict, ...tseslint.stylistic].map((conf) => ({
|
|
97
131
|
...conf,
|
|
98
132
|
files: ['**/*.ts'],
|
|
133
|
+
// @ts-ignore
|
|
134
|
+
...(conf.languageOptions && {
|
|
135
|
+
languageOptions: {
|
|
136
|
+
// @ts-ignore
|
|
137
|
+
...conf.languageOptions,
|
|
138
|
+
parserOptions: {
|
|
139
|
+
// @ts-ignore
|
|
140
|
+
...conf.languageOptions.parserOptions,
|
|
141
|
+
projectService: {
|
|
142
|
+
allowDefaultProject: [
|
|
143
|
+
`test/*.${fileTypes}`,
|
|
144
|
+
`*.config.${fileTypes}`,
|
|
145
|
+
`*.conf.${fileTypes}`,
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
}),
|
|
99
151
|
}));
|
|
100
152
|
|
|
101
153
|
const tsFilesRules = {
|
|
102
154
|
files: ['**/*.ts'],
|
|
103
155
|
rules: {
|
|
156
|
+
'@typescript-eslint/no-floating-promises': 'error',
|
|
104
157
|
'@typescript-eslint/ban-types': 'off',
|
|
105
158
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
106
159
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
107
160
|
'@typescript-eslint/no-empty-function': 'off',
|
|
108
161
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
109
162
|
'@typescript-eslint/class-literal-property-style': 'off',
|
|
163
|
+
'@typescript-eslint/no-unused-expressions': 'off',
|
|
110
164
|
},
|
|
111
165
|
};
|
|
112
166
|
|
|
113
|
-
//
|
|
167
|
+
//
|
|
168
|
+
// ──────────────────────────────────────────────────────────────
|
|
169
|
+
// HTML
|
|
170
|
+
// ──────────────────────────────────────────────────────────────
|
|
171
|
+
//
|
|
172
|
+
// @ts-ignore
|
|
114
173
|
const htmlFilesConfig = [htmlEslint.configs['flat/recommended']].map((conf) => ({
|
|
115
174
|
...conf,
|
|
116
175
|
files: ['**/*.html'],
|
|
117
176
|
plugins: {
|
|
177
|
+
...conf.plugins,
|
|
118
178
|
'@html-eslint': htmlEslint,
|
|
119
179
|
},
|
|
120
180
|
languageOptions: {
|
|
181
|
+
...conf.languageOptions,
|
|
121
182
|
parser: htmlEslintParser,
|
|
122
183
|
},
|
|
123
184
|
}));
|
|
@@ -132,13 +193,16 @@ const htmlFilesRules = {
|
|
|
132
193
|
},
|
|
133
194
|
};
|
|
134
195
|
|
|
135
|
-
// @eslint-plugin-html
|
|
136
196
|
const eslintPluginHtmlConfig = {
|
|
137
197
|
files: ['**/*.html'],
|
|
138
198
|
plugins: {eslintPluginHtml},
|
|
139
199
|
};
|
|
140
200
|
|
|
141
|
-
//
|
|
201
|
+
//
|
|
202
|
+
// ──────────────────────────────────────────────────────────────
|
|
203
|
+
// Export
|
|
204
|
+
// ──────────────────────────────────────────────────────────────
|
|
205
|
+
//
|
|
142
206
|
export default [
|
|
143
207
|
{
|
|
144
208
|
ignores: [
|
|
@@ -161,31 +225,31 @@ export default [
|
|
|
161
225
|
'**/*.workspace.*',
|
|
162
226
|
],
|
|
163
227
|
},
|
|
164
|
-
|
|
228
|
+
|
|
229
|
+
...baseConfig,
|
|
230
|
+
|
|
165
231
|
...importFilesConfig,
|
|
166
232
|
importFilesRules,
|
|
233
|
+
|
|
167
234
|
...litA11yFilesConfig,
|
|
168
235
|
litA11yFilesRules,
|
|
236
|
+
|
|
169
237
|
...wcFilesConfig,
|
|
170
238
|
wcFilesRules,
|
|
239
|
+
|
|
171
240
|
...litFilesConfig,
|
|
172
241
|
litFilesRules,
|
|
242
|
+
|
|
173
243
|
...tsFilesConfig,
|
|
174
244
|
tsFilesRules,
|
|
245
|
+
|
|
175
246
|
...htmlFilesConfig,
|
|
176
247
|
htmlFilesRules,
|
|
177
248
|
eslintPluginHtmlConfig,
|
|
249
|
+
|
|
178
250
|
eslintConfigPrettier,
|
|
179
|
-
{
|
|
180
|
-
languageOptions: {
|
|
181
|
-
ecmaVersion: 'latest',
|
|
182
|
-
sourceType: 'module',
|
|
183
|
-
globals: {
|
|
184
|
-
...globals.browser,
|
|
185
|
-
...globals.mocha,
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
251
|
|
|
252
|
+
{
|
|
189
253
|
rules: {
|
|
190
254
|
'no-unused-expressions': [
|
|
191
255
|
'error',
|
|
@@ -197,11 +261,11 @@ export default [
|
|
|
197
261
|
'no-empty-function': 'error',
|
|
198
262
|
},
|
|
199
263
|
},
|
|
264
|
+
|
|
200
265
|
{
|
|
201
266
|
files: [`**/test/**/*.${fileTypes}`],
|
|
202
267
|
rules: {
|
|
203
268
|
'no-unused-expressions': 'off',
|
|
204
|
-
'@typescript-eslint/no-unused-expressions': 'off',
|
|
205
269
|
},
|
|
206
270
|
},
|
|
207
271
|
];
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"test:watch": "vitest --browser.headless=false"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"lit": "^3.3.
|
|
27
|
+
"lit": "^3.3.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@blockquote/cem-to-markdown-readme": "^1.0.0",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"tinyglobby": "^0.2.15",
|
|
43
43
|
"chai-a11y-axe": "^1.5.0",
|
|
44
44
|
"concurrently": "^9.2.1",
|
|
45
|
-
"sort-package-json": "^3.
|
|
46
|
-
"@vitest/browser-playwright": "^4.0.
|
|
47
|
-
"@vitest/coverage-istanbul": "^4.0.
|
|
48
|
-
"@vitest/coverage-v8": "^4.0.
|
|
49
|
-
"@vitest/ui": "^4.0.
|
|
50
|
-
"vitest": "^4.0.
|
|
51
|
-
"vite": "^7.
|
|
45
|
+
"sort-package-json": "^3.6.0",
|
|
46
|
+
"@vitest/browser-playwright": "^4.0.16",
|
|
47
|
+
"@vitest/coverage-istanbul": "^4.0.16",
|
|
48
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
49
|
+
"@vitest/ui": "^4.0.16",
|
|
50
|
+
"vitest": "^4.0.16",
|
|
51
|
+
"vite": "^7.3.1"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|