@blockquote/create-wc 1.104.2 → 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.2",
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
@@ -84,6 +84,8 @@ const litFilesRules = {
84
84
  'lit/lifecycle-super': 'error',
85
85
  'lit/no-native-attributes': 'off',
86
86
  'lit/no-useless-template-literals': 'off',
87
+ 'lit/binding-positions': 'off',
88
+ 'lit/no-invalid-html': 'off',
87
89
  },
88
90
  };
89
91
 
@@ -145,6 +147,7 @@ export default [
145
147
  '**/*.workspace.*',
146
148
  ],
147
149
  },
150
+ js.configs.recommended,
148
151
  ...compat.extends('plugin:lit-a11y/recommended'),
149
152
  ...importFilesConfig,
150
153
  importFilesRules,
@@ -161,7 +164,12 @@ export default [
161
164
  languageOptions: {
162
165
  ecmaVersion: 'latest',
163
166
  sourceType: 'module',
167
+ globals: {
168
+ ...globals.browser,
169
+ ...globals.mocha,
170
+ },
164
171
  },
172
+
165
173
  rules: {
166
174
  'class-methods-use-this': 'off',
167
175
  'no-unused-expressions': [
@@ -193,4 +201,4 @@ export default [
193
201
  '@typescript-eslint/no-unused-expressions': 'off',
194
202
  },
195
203
  },
196
- ];
204
+ ];