@blockquote/create-wc 2.3.0 → 2.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockquote/create-wc",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Web component with Lit scaffolding - Extending Open Web Component",
5
5
  "keywords": [
6
6
  "Lit",
@@ -50,14 +50,14 @@
50
50
  "chalk": "^5.4.1",
51
51
  "command-line-args": "^6.0.1",
52
52
  "prompts": "^2.4.2",
53
- "semver": "^7.7.1"
53
+ "semver": "^7.7.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@eslint/compat": "^1.2.8",
57
- "eslint-plugin-html": "^8.1.2",
58
- "@open-wc/eslint-config": "^12.0.3",
59
- "eslint": "^9.24.0",
60
- "eslint-config-prettier": "^10.1.2",
56
+ "@eslint/compat": "^1.3.0",
57
+ "eslint-plugin-html": "^8.1.3",
58
+ "@open-wc/eslint-config": "^13.0.0",
59
+ "eslint": "^9.29.0",
60
+ "eslint-config-prettier": "^10.1.5",
61
61
  "prettier": "^3.5.3"
62
62
  },
63
63
  "engines": {
@@ -68,22 +68,22 @@
68
68
  ]
69
69
  },
70
70
  "devDependencies": {
71
- "@html-eslint/eslint-plugin": "^0.39.0",
72
- "@html-eslint/parser": "^0.39.0",
73
- "eslint": "^9.24.0",
74
- "eslint-config-prettier": "^10.1.2",
75
- "eslint-plugin-html": "^8.1.2",
71
+ "@html-eslint/eslint-plugin": "^0.41.0",
72
+ "@html-eslint/parser": "^0.41.0",
73
+ "eslint": "^9.29.0",
74
+ "eslint-config-prettier": "^10.1.5",
75
+ "eslint-plugin-html": "^8.1.3",
76
76
  "eslint-plugin-import": "^2.31.0",
77
77
  "eslint-plugin-lit": "^2.1.1",
78
- "eslint-plugin-lit-a11y": "^4.1.4",
79
- "eslint-plugin-wc": "^3.0.0",
80
- "@typescript-eslint/parser": "^8.30.1",
81
- "typescript-eslint": "^8.30.1",
82
- "globals": "^16.0.0",
78
+ "eslint-plugin-lit-a11y": "^5.0.1",
79
+ "eslint-plugin-wc": "^3.0.1",
80
+ "@typescript-eslint/parser": "^8.34.1",
81
+ "typescript-eslint": "^8.34.1",
82
+ "globals": "^16.2.0",
83
83
  "husky": "^9.1.7",
84
- "lint-staged": "^15.5.1",
84
+ "lint-staged": "^16.1.2",
85
85
  "prettier": "^3.5.3",
86
- "stylelint": "^16.18.0",
87
- "stylelint-config-standard-scss": "^14.0.0"
86
+ "stylelint": "^16.20.0",
87
+ "stylelint-config-standard-scss": "^15.0.1"
88
88
  }
89
89
  }
@@ -1,10 +1,8 @@
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 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
8
  import htmlEslint from '@html-eslint/eslint-plugin';
@@ -13,21 +11,10 @@ import eslintPluginHtml from 'eslint-plugin-html';
13
11
  import eslintConfigPrettier from 'eslint-config-prettier';
14
12
  import globals from 'globals';
15
13
 
16
- const __filename = fileURLToPath(import.meta.url);
17
- const __dirname = path.dirname(__filename);
18
-
19
14
  const fileTypes = '{js,ts,mjs}';
20
15
 
21
- const compat = new FlatCompat({
22
- baseDirectory: __dirname,
23
- resolvePluginsRelativeTo: __dirname,
24
- });
25
-
26
16
  // eslint-plugin-import
27
- const importFilesConfig = [
28
- importPlugin.flatConfigs?.recommended,
29
- importPlugin.flatConfigs?.typescript,
30
- ].map((conf) => ({
17
+ const importFilesConfig = [importPlugin.recommended, importPlugin.typescript].map((conf) => ({
31
18
  ...conf,
32
19
  files: [`**/*.${fileTypes}`],
33
20
  languageOptions: {
@@ -60,6 +47,21 @@ const importFilesRules = {
60
47
  },
61
48
  };
62
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
+
63
65
  // eslint-plugin-wc
64
66
  const wcFilesConfig = [wc['flat/recommended']].map((conf) => ({
65
67
  ...conf,
@@ -160,9 +162,10 @@ export default [
160
162
  ],
161
163
  },
162
164
  js.configs.recommended,
163
- ...compat.extends('plugin:lit-a11y/recommended'),
164
165
  ...importFilesConfig,
165
166
  importFilesRules,
167
+ ...litA11yFilesConfig,
168
+ litA11yFilesRules,
166
169
  ...wcFilesConfig,
167
170
  wcFilesRules,
168
171
  ...litFilesConfig,
@@ -202,9 +205,6 @@ export default [
202
205
  },
203
206
  ],
204
207
  'no-empty-function': 'error',
205
- 'lit-a11y/no-autofocus': 'off',
206
- 'lit-a11y/anchor-is-valid': 'off',
207
- 'lit-a11y/click-events-have-key-events': 'off',
208
208
  },
209
209
  },
210
210
  {
@@ -8,15 +8,20 @@
8
8
 
9
9
  ## npm/yarn
10
10
  **/node_modules
11
- **/npm-debug.log
12
11
  **/*-debug.log
13
12
  **/yarn-error.log
13
+ **/.pnp
14
+ **/.pnp.*
14
15
 
15
16
  ## testing
16
17
  **/coverage
17
18
  **/reports
18
19
  **/*screenshots*
19
20
  **/*snapshots*
21
+ **/test-results/
22
+ **/playwright-report/
23
+ **/blob-report/
24
+ **/playwright/.cache/
20
25
 
21
26
  ## build
22
27
  **/_site
@@ -24,9 +29,17 @@
24
29
  **/dev
25
30
  **/build
26
31
  **/.tmp
27
- **/.env
28
32
  **/.wireit
29
33
  **/*.tgz
30
34
  **/*.tsbuildinfo
31
35
  **/storybook-static
36
+
37
+ # local env files
38
+ **/.auth
39
+ **/.env
40
+ **/.env.local
41
+ **/.env.development.local
42
+ **/.env.test.local
43
+ **/.env.production.local
44
+
32
45
  ## end gitignore
@@ -34,21 +34,21 @@
34
34
  "@custom-elements-manifest/analyzer": "^0.10.4",
35
35
  "@open-wc/semantic-dom-diff": "^0.20.1",
36
36
  "@open-wc/testing": "^4.0.0",
37
- "playwright": "^1.52.0",
37
+ "playwright": "^1.53.0",
38
38
  "postcss-html": "1.8.0",
39
39
  "postcss-lit": "^1.2.0",
40
40
  "@types/mocha": "^10.0.10",
41
41
  "rollup-plugin-copy": "^3.5.0",
42
- "rollup-plugin-node-externals": "^8.0.0",
43
- "tinyglobby": "^0.2.12",
42
+ "rollup-plugin-node-externals": "^8.0.1",
43
+ "tinyglobby": "^0.2.14",
44
44
  "concurrently": "^9.1.2",
45
- "sort-package-json": "^3.0.0",
46
- "@vitest/browser": "^3.1.1",
47
- "@vitest/coverage-istanbul": "^3.1.1",
48
- "@vitest/coverage-v8": "^3.1.1",
49
- "@vitest/ui": "^3.1.1",
50
- "vitest": "^3.1.1",
51
- "vite": "^6.3.1"
45
+ "sort-package-json": "^3.2.1",
46
+ "@vitest/browser": "^3.2.4",
47
+ "@vitest/coverage-istanbul": "^3.2.4",
48
+ "@vitest/coverage-v8": "^3.2.4",
49
+ "@vitest/ui": "^3.2.4",
50
+ "vitest": "^3.2.4",
51
+ "vite": "^6.3.5"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"