@blockquote/create-wc 1.104.3 → 1.105.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": "1.104.3",
3
+ "version": "1.105.0",
4
4
  "description": "Web component with Lit scaffolding - Extending Open Web Component",
5
5
  "keywords": [
6
6
  "LitElement",
@@ -55,6 +55,7 @@
55
55
  "eslint-plugin-wc": "^2.2.0",
56
56
  "@typescript-eslint/parser": "^8.9.0",
57
57
  "typescript-eslint": "^8.8.1",
58
+ "globals": "^15.11.0",
58
59
  "husky": "^9.1.6",
59
60
  "lint-staged": "^15.2.10",
60
61
  "prettier": "^3.3.3",
@@ -10,6 +10,7 @@ import html from '@html-eslint/eslint-plugin';
10
10
  import eslintConfigPrettier from 'eslint-config-prettier';
11
11
  import js from '@eslint/js';
12
12
  import {FlatCompat} from '@eslint/eslintrc';
13
+ import globals from 'globals';
13
14
 
14
15
  const __filename = fileURLToPath(import.meta.url);
15
16
  const __dirname = path.dirname(__filename);
@@ -18,8 +19,7 @@ const fileTypes = '{js,ts,mjs}';
18
19
 
19
20
  const compat = new FlatCompat({
20
21
  baseDirectory: __dirname,
21
- recommendedConfig: js.configs.recommended,
22
- allConfig: js.configs.all,
22
+ resolvePluginsRelativeTo: __dirname,
23
23
  });
24
24
 
25
25
  // eslint-plugin-import
@@ -147,6 +147,7 @@ export default [
147
147
  '**/*.workspace.*',
148
148
  ],
149
149
  },
150
+ js.configs.recommended,
150
151
  ...compat.extends('plugin:lit-a11y/recommended'),
151
152
  ...importFilesConfig,
152
153
  importFilesRules,
@@ -163,7 +164,12 @@ export default [
163
164
  languageOptions: {
164
165
  ecmaVersion: 'latest',
165
166
  sourceType: 'module',
167
+ globals: {
168
+ ...globals.browser,
169
+ ...globals.mocha,
170
+ },
166
171
  },
172
+
167
173
  rules: {
168
174
  'class-methods-use-this': 'off',
169
175
  'no-unused-expressions': [