@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
|
@@ -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
|
|
@@ -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
|
+
];
|