@blockquote/create-wc 1.111.0 → 1.112.1

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": "1.111.0",
3
+ "version": "1.112.1",
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 --ext .ts,.js,.mjs,.cjs --fix && prettier \"**/*.{ts,js,mjs,cjs,md}\" --check --ignore-path .eslintignore --write",
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,19 +47,21 @@
50
47
  },
51
48
  "dependencies": {
52
49
  "@open-wc/create": "^0.38.151",
53
- "chalk": "^5.4.1",
50
+ "chalk": "^5.6.2",
54
51
  "command-line-args": "^6.0.1",
55
52
  "prompts": "^2.4.2",
56
- "semver": "^7.6.3"
53
+ "semver": "^7.7.3"
57
54
  },
58
55
  "devDependencies": {
59
- "@open-wc/eslint-config": "^12.0.3",
60
- "eslint": "^8.57.1",
61
- "eslint-config-prettier": "^10.0.1",
62
- "prettier": "^3.4.2"
56
+ "@eslint/js": "^9.38.0",
57
+ "@open-wc/eslint-config": "^13.0.0",
58
+ "eslint": "^9.38.0",
59
+ "eslint-config-prettier": "^10.1.8",
60
+ "prettier": "^3.6.2",
61
+ "globals": "^16.4.0"
63
62
  },
64
63
  "engines": {
65
- "node": ">=14.15.0"
64
+ "node": ">=18.20.3"
66
65
  },
67
66
  "publishConfig": {
68
67
  "access": "public"
package/src/Generator.js CHANGED
@@ -1,4 +1,3 @@
1
- /* eslint-disable no-console, import/no-cycle */
2
1
  import _Generator from '@open-wc/create/dist/Generator.js';
3
2
 
4
3
  /**
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();
@@ -1,4 +1,3 @@
1
- /* eslint-disable no-console */
2
1
  import {fileURLToPath} from 'url';
3
2
  import {dirname} from 'path';
4
3
 
@@ -44,21 +44,23 @@
44
44
  }
45
45
  },
46
46
  "devDependencies": {
47
- "@html-eslint/eslint-plugin": "^0.32.0",
48
- "@html-eslint/parser": "^0.32.0",
49
- "eslint": "^9.18.0",
50
- "eslint-config-prettier": "^10.0.1",
51
- "eslint-plugin-import": "^2.31.0",
52
- "eslint-plugin-lit": "^1.15.0",
53
- "eslint-plugin-lit-a11y": "^4.1.4",
54
- "eslint-plugin-wc": "^2.2.0",
55
- "@typescript-eslint/parser": "^8.20.0",
56
- "typescript-eslint": "^8.20.0",
57
- "globals": "^15.14.0",
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": "^15.4.1",
60
- "prettier": "^3.4.2",
61
- "stylelint": "^16.13.2",
62
- "stylelint-config-standard-scss": "^14.0.0"
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 * as importPlugin from 'eslint-plugin-import';
4
+ import {default as 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 html from '@html-eslint/eslint-plugin';
11
- import htmlParser from '@html-eslint/parser';
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 = [html.configs['flat/recommended']].map((conf) => ({
114
+ const htmlFilesConfig = [htmlEslint.configs['flat/recommended']].map((conf) => ({
112
115
  ...conf,
113
116
  files: ['**/*.html'],
114
117
  plugins: {
115
- '@html-eslint': html,
118
+ '@html-eslint': htmlEslint,
116
119
  },
117
120
  languageOptions: {
118
- parser: htmlParser,
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: ['PropertyDefinition', 'TemplateLiteral *'],
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.2.1"
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.0",
33
- "@custom-elements-manifest/analyzer": "^0.10.4",
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.19.0",
37
- "@web/test-runner-playwright": "^0.11.0",
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.2",
40
- "sort-package-json": "^2.14.0",
41
- "vite": "^6.0.7"
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"
@@ -1,4 +1,3 @@
1
- /* eslint-disable no-console */
2
1
  import {fileURLToPath} from 'url';
3
2
  import {dirname} from 'path';
4
3
 
package/src/create.js CHANGED
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- /* eslint-disable no-console */
4
-
5
3
  import semver from 'semver';
6
4
  import chalk from 'chalk';
7
5
  import {executeMixinGenerator} from '@open-wc/create/dist/core.js';
@@ -1,4 +1,3 @@
1
- /* eslint-disable max-classes-per-file */
2
1
  import {fileURLToPath} from 'url';
3
2
  import {dirname} from 'path';
4
3
  import {TestingWebTestRunnerMixin} from '../testing-wtr/index.js';
@@ -1,4 +1,3 @@
1
- /* eslint-disable max-classes-per-file */
2
1
  import {fileURLToPath} from 'url';
3
2
  import {dirname} from 'path';
4
3
  import {TsTestingWebTestRunnerMixin} from '../testing-wtr-ts/index.js';
@@ -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() {
@@ -32,6 +32,6 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "tslib": "^2.8.1",
35
- "typescript": "^5.7.3"
35
+ "typescript": "^5.9.3"
36
36
  }
37
37
  }