@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
|
@@ -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
|
-
|
|
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': [
|