@blockquote/create-wc 1.111.0 → 1.112.0
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 +11 -11
- package/src/Generator.js +0 -1
- package/src/app/index.js +0 -2
- package/src/common-linting/index.js +0 -1
- package/src/common-linting/templates/package.json +17 -15
- package/src/common-repo/templates/eslint.config.js +39 -28
- package/src/common-repo/templates/package.json +8 -8
- package/src/common-testing-wtr/index.js +0 -1
- package/src/create.js +0 -2
- package/src/testing/index.js +0 -1
- package/src/testing-ts/index.js +0 -1
- package/src/wc-lit-element/index.js +0 -2
- package/src/wc-lit-element-ts/index.js +0 -2
- package/src/wc-lit-element-ts/templates/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote/create-wc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.112.0",
|
|
4
4
|
"description": "Web component with Lit scaffolding - Extending Open Web Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit",
|
|
@@ -26,10 +26,7 @@
|
|
|
26
26
|
"/src/"
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
|
-
"format": "eslint
|
|
30
|
-
"lint": "npm run lint:eslint && npm run lint:prettier",
|
|
31
|
-
"lint:eslint": "eslint --ext .js,.mjs,.cjs .",
|
|
32
|
-
"lint:prettier": "prettier \"**/*.{js,mjs,cjs,md.json}\" --check --ignore-path .eslintignore",
|
|
29
|
+
"format": "eslint . --fix && prettier \"**/*.{js,mjs,cjs,md.json}\" --write --ignore-path .prettierignore",
|
|
33
30
|
"start": "node ./src/create.js"
|
|
34
31
|
},
|
|
35
32
|
"prettier": {
|
|
@@ -50,16 +47,19 @@
|
|
|
50
47
|
},
|
|
51
48
|
"dependencies": {
|
|
52
49
|
"@open-wc/create": "^0.38.151",
|
|
53
|
-
"chalk": "^5.
|
|
50
|
+
"chalk": "^5.6.2",
|
|
54
51
|
"command-line-args": "^6.0.1",
|
|
55
52
|
"prompts": "^2.4.2",
|
|
56
|
-
"semver": "^7.
|
|
53
|
+
"semver": "^7.7.3"
|
|
57
54
|
},
|
|
58
55
|
"devDependencies": {
|
|
59
|
-
"@
|
|
60
|
-
"eslint": "^8.
|
|
61
|
-
"eslint-config
|
|
62
|
-
"
|
|
56
|
+
"@eslint/js": "^9.38.0",
|
|
57
|
+
"eslint-plugin-html": "^8.1.3",
|
|
58
|
+
"@open-wc/eslint-config": "^13.0.0",
|
|
59
|
+
"eslint": "^9.38.0",
|
|
60
|
+
"eslint-config-prettier": "^10.1.8",
|
|
61
|
+
"prettier": "^3.6.2",
|
|
62
|
+
"globals": "^16.4.0"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=14.15.0"
|
package/src/Generator.js
CHANGED
package/src/app/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
1
|
import prompts from 'prompts';
|
|
3
2
|
// import commandLineArgs from 'command-line-args';
|
|
4
3
|
import {executeMixinGenerator} from '@open-wc/create/dist/core.js';
|
|
@@ -8,7 +7,6 @@ import {gatherMixins} from './gatherMixins.js';
|
|
|
8
7
|
import Generator from '../Generator.js';
|
|
9
8
|
|
|
10
9
|
export const AppMixin = (subclass) =>
|
|
11
|
-
// eslint-disable-next-line no-shadow
|
|
12
10
|
class AppMixin extends subclass {
|
|
13
11
|
constructor() {
|
|
14
12
|
super();
|
|
@@ -44,21 +44,23 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@
|
|
48
|
-
"@html-eslint/
|
|
49
|
-
"eslint": "^
|
|
50
|
-
"eslint
|
|
51
|
-
"eslint-
|
|
52
|
-
"eslint-plugin-
|
|
53
|
-
"eslint-plugin-
|
|
54
|
-
"eslint-plugin-
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
47
|
+
"@eslint/js": "^9.38.0",
|
|
48
|
+
"@html-eslint/eslint-plugin": "^0.47.0",
|
|
49
|
+
"@html-eslint/parser": "^0.47.0",
|
|
50
|
+
"eslint": "^9.38.0",
|
|
51
|
+
"eslint-config-prettier": "^10.1.8",
|
|
52
|
+
"eslint-plugin-html": "^8.0.0",
|
|
53
|
+
"eslint-plugin-import": "^2.32.0",
|
|
54
|
+
"eslint-plugin-lit": "^2.1.1",
|
|
55
|
+
"eslint-plugin-lit-a11y": "^5.1.1",
|
|
56
|
+
"eslint-plugin-wc": "^3.0.2",
|
|
57
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
58
|
+
"typescript-eslint": "^8.46.2",
|
|
59
|
+
"globals": "^16.4.0",
|
|
58
60
|
"husky": "^9.1.7",
|
|
59
|
-
"lint-staged": "^
|
|
60
|
-
"prettier": "^3.
|
|
61
|
-
"stylelint": "^16.
|
|
62
|
-
"stylelint-config-standard-scss": "^
|
|
61
|
+
"lint-staged": "^16.2.6",
|
|
62
|
+
"prettier": "^3.6.2",
|
|
63
|
+
"stylelint": "^16.25.0",
|
|
64
|
+
"stylelint-config-standard-scss": "^16.0.0"
|
|
63
65
|
}
|
|
64
66
|
}
|
|
@@ -1,32 +1,20 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
|
-
import {fileURLToPath} from 'node:url';
|
|
3
1
|
import js from '@eslint/js';
|
|
4
|
-
import {FlatCompat} from '@eslint/eslintrc';
|
|
5
2
|
import {configs as wc} from 'eslint-plugin-wc';
|
|
6
3
|
import {configs as lit} from 'eslint-plugin-lit';
|
|
7
|
-
import
|
|
4
|
+
import litA11y from 'eslint-plugin-lit-a11y';
|
|
5
|
+
import {flatConfigs as importPlugin} from 'eslint-plugin-import';
|
|
8
6
|
import tseslint from 'typescript-eslint';
|
|
9
7
|
import tsParser from '@typescript-eslint/parser';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
8
|
+
import htmlEslint from '@html-eslint/eslint-plugin';
|
|
9
|
+
import htmlEslintParser from '@html-eslint/parser';
|
|
10
|
+
import eslintPluginHtml from 'eslint-plugin-html';
|
|
12
11
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
13
12
|
import globals from 'globals';
|
|
14
13
|
|
|
15
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
16
|
-
const __dirname = path.dirname(__filename);
|
|
17
|
-
|
|
18
14
|
const fileTypes = '{js,ts,mjs}';
|
|
19
15
|
|
|
20
|
-
const compat = new FlatCompat({
|
|
21
|
-
baseDirectory: __dirname,
|
|
22
|
-
resolvePluginsRelativeTo: __dirname,
|
|
23
|
-
});
|
|
24
|
-
|
|
25
16
|
// eslint-plugin-import
|
|
26
|
-
const importFilesConfig = [
|
|
27
|
-
importPlugin.flatConfigs?.recommended,
|
|
28
|
-
importPlugin.flatConfigs?.typescript,
|
|
29
|
-
].map((conf) => ({
|
|
17
|
+
const importFilesConfig = [importPlugin.recommended, importPlugin.typescript].map((conf) => ({
|
|
30
18
|
...conf,
|
|
31
19
|
files: [`**/*.${fileTypes}`],
|
|
32
20
|
languageOptions: {
|
|
@@ -59,6 +47,21 @@ const importFilesRules = {
|
|
|
59
47
|
},
|
|
60
48
|
};
|
|
61
49
|
|
|
50
|
+
// eslint-plugin-lit-a11y
|
|
51
|
+
const litA11yFilesConfig = [litA11y.configs.recommended].map((conf) => ({
|
|
52
|
+
...conf,
|
|
53
|
+
files: [`**/*.${fileTypes}`],
|
|
54
|
+
}));
|
|
55
|
+
|
|
56
|
+
const litA11yFilesRules = {
|
|
57
|
+
files: [`**/*.${fileTypes}`],
|
|
58
|
+
rules: {
|
|
59
|
+
'lit-a11y/no-autofocus': 'off',
|
|
60
|
+
'lit-a11y/anchor-is-valid': 'off',
|
|
61
|
+
'lit-a11y/click-events-have-key-events': 'off',
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
|
|
62
65
|
// eslint-plugin-wc
|
|
63
66
|
const wcFilesConfig = [wc['flat/recommended']].map((conf) => ({
|
|
64
67
|
...conf,
|
|
@@ -108,14 +111,14 @@ const tsFilesRules = {
|
|
|
108
111
|
};
|
|
109
112
|
|
|
110
113
|
// @html-eslint/eslint-plugin
|
|
111
|
-
const htmlFilesConfig = [
|
|
114
|
+
const htmlFilesConfig = [htmlEslint.configs['flat/recommended']].map((conf) => ({
|
|
112
115
|
...conf,
|
|
113
116
|
files: ['**/*.html'],
|
|
114
117
|
plugins: {
|
|
115
|
-
'@html-eslint':
|
|
118
|
+
'@html-eslint': htmlEslint,
|
|
116
119
|
},
|
|
117
120
|
languageOptions: {
|
|
118
|
-
parser:
|
|
121
|
+
parser: htmlEslintParser,
|
|
119
122
|
},
|
|
120
123
|
}));
|
|
121
124
|
|
|
@@ -129,6 +132,12 @@ const htmlFilesRules = {
|
|
|
129
132
|
},
|
|
130
133
|
};
|
|
131
134
|
|
|
135
|
+
// @eslint-plugin-html
|
|
136
|
+
const eslintPluginHtmlConfig = {
|
|
137
|
+
files: ['**/*.html'],
|
|
138
|
+
plugins: {eslintPluginHtml},
|
|
139
|
+
};
|
|
140
|
+
|
|
132
141
|
// eslint-config
|
|
133
142
|
export default [
|
|
134
143
|
{
|
|
@@ -149,14 +158,14 @@ export default [
|
|
|
149
158
|
'**/*.config.*',
|
|
150
159
|
'**/*.d.ts',
|
|
151
160
|
'**/*.min.js',
|
|
152
|
-
'**/*-styles.*',
|
|
153
161
|
'**/*.workspace.*',
|
|
154
162
|
],
|
|
155
163
|
},
|
|
156
164
|
js.configs.recommended,
|
|
157
|
-
...compat.extends('plugin:lit-a11y/recommended'),
|
|
158
165
|
...importFilesConfig,
|
|
159
166
|
importFilesRules,
|
|
167
|
+
...litA11yFilesConfig,
|
|
168
|
+
litA11yFilesRules,
|
|
160
169
|
...wcFilesConfig,
|
|
161
170
|
wcFilesRules,
|
|
162
171
|
...litFilesConfig,
|
|
@@ -165,6 +174,7 @@ export default [
|
|
|
165
174
|
tsFilesRules,
|
|
166
175
|
...htmlFilesConfig,
|
|
167
176
|
htmlFilesRules,
|
|
177
|
+
eslintPluginHtmlConfig,
|
|
168
178
|
eslintConfigPrettier,
|
|
169
179
|
{
|
|
170
180
|
languageOptions: {
|
|
@@ -191,13 +201,14 @@ export default [
|
|
|
191
201
|
2,
|
|
192
202
|
{
|
|
193
203
|
SwitchCase: 1,
|
|
194
|
-
ignoredNodes: [
|
|
204
|
+
ignoredNodes: [
|
|
205
|
+
'PropertyDefinition',
|
|
206
|
+
'TemplateLiteral *',
|
|
207
|
+
'ArrowFunctionExpression ClassExpression',
|
|
208
|
+
],
|
|
195
209
|
},
|
|
196
210
|
],
|
|
197
211
|
'no-empty-function': 'error',
|
|
198
|
-
'lit-a11y/no-autofocus': 'off',
|
|
199
|
-
'lit-a11y/anchor-is-valid': 'off',
|
|
200
|
-
'lit-a11y/click-events-have-key-events': 'off',
|
|
201
212
|
},
|
|
202
213
|
},
|
|
203
214
|
{
|
|
@@ -207,4 +218,4 @@ export default [
|
|
|
207
218
|
'@typescript-eslint/no-unused-expressions': 'off',
|
|
208
219
|
},
|
|
209
220
|
},
|
|
210
|
-
];
|
|
221
|
+
];
|
|
@@ -22,23 +22,23 @@
|
|
|
22
22
|
"prepare": "husky"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"lit": "^3.
|
|
25
|
+
"lit": "^3.3.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@blockquote/cem-to-markdown-readme": "^1.0.0",
|
|
29
29
|
"@blockquote/coverage-table-reporter": "^1.2.0",
|
|
30
30
|
"@blockquote/rollup-plugin-externalize-source-dependencies": "^1.0.0",
|
|
31
31
|
"@blockquote/rollup-plugin-total-bundlesize": "^2.2.0",
|
|
32
|
-
"@blockquote/sass-style-template": "^5.0.
|
|
33
|
-
"@custom-elements-manifest/analyzer": "^0.10.
|
|
32
|
+
"@blockquote/sass-style-template": "^5.0.2",
|
|
33
|
+
"@custom-elements-manifest/analyzer": "^0.10.10",
|
|
34
34
|
"@open-wc/testing": "^4.0.0",
|
|
35
35
|
"@types/mocha": "^10.0.10",
|
|
36
|
-
"@web/test-runner": "^0.
|
|
37
|
-
"@web/test-runner-playwright": "^0.11.
|
|
36
|
+
"@web/test-runner": "^0.20.2",
|
|
37
|
+
"@web/test-runner-playwright": "^0.11.1",
|
|
38
38
|
"rollup-plugin-copy": "^3.5.0",
|
|
39
|
-
"concurrently": "^9.1
|
|
40
|
-
"sort-package-json": "^
|
|
41
|
-
"vite": "^
|
|
39
|
+
"concurrently": "^9.2.1",
|
|
40
|
+
"sort-package-json": "^3.4.0",
|
|
41
|
+
"vite": "^7.1.12"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
package/src/create.js
CHANGED
package/src/testing/index.js
CHANGED
package/src/testing-ts/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable max-classes-per-file */
|
|
2
1
|
import {fileURLToPath} from 'url';
|
|
3
2
|
import {join, dirname} from 'path';
|
|
4
3
|
import {processTemplate, readFileFromPath} from '@open-wc/create/dist/core.js';
|
|
@@ -28,7 +27,6 @@ function featureReadme(acc, feature, i, a) {
|
|
|
28
27
|
|
|
29
28
|
const safeFeatureReadme = safeReduce(featureReadme, '');
|
|
30
29
|
|
|
31
|
-
/* eslint-disable no-console */
|
|
32
30
|
export const WcLitElementMixin = (subclass) =>
|
|
33
31
|
class extends subclass {
|
|
34
32
|
async execute() {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable max-classes-per-file */
|
|
2
1
|
import {fileURLToPath} from 'url';
|
|
3
2
|
import {join, dirname} from 'path';
|
|
4
3
|
import {processTemplate, readFileFromPath} from '@open-wc/create/dist/core.js';
|
|
@@ -28,7 +27,6 @@ function featureReadme(acc, feature, i, a) {
|
|
|
28
27
|
|
|
29
28
|
const safeFeatureReadme = safeReduce(featureReadme, '');
|
|
30
29
|
|
|
31
|
-
/* eslint-disable no-console */
|
|
32
30
|
export const TsWcLitElementMixin = (subclass) =>
|
|
33
31
|
class extends subclass {
|
|
34
32
|
async execute() {
|