@jiakun-zhao/eslint-config 4.1.7 → 4.1.8
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/dist/index.mjs +26 -23
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -142,25 +142,28 @@ async function astro() {
|
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
function createSharedAstroConfig(plugin, rules = {}) {
|
|
145
|
-
return
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
145
|
+
return [
|
|
146
|
+
{
|
|
147
|
+
files: [
|
|
148
|
+
"**/*.astro"
|
|
149
|
+
],
|
|
150
|
+
languageOptions: {
|
|
151
|
+
parser: findParser(plugin),
|
|
152
|
+
parserOptions: {
|
|
153
|
+
extraFileExtensions: [
|
|
154
|
+
".astro"
|
|
155
|
+
],
|
|
156
|
+
parser: tsParser
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
name: "astro",
|
|
160
|
+
plugins: {
|
|
161
|
+
astro: plugin
|
|
162
|
+
},
|
|
163
|
+
processor: plugin.processors?.["client-side-ts"],
|
|
164
|
+
rules
|
|
165
|
+
}
|
|
166
|
+
];
|
|
164
167
|
}
|
|
165
168
|
|
|
166
169
|
function command() {
|
|
@@ -375,7 +378,7 @@ function jsonc() {
|
|
|
375
378
|
];
|
|
376
379
|
}
|
|
377
380
|
|
|
378
|
-
const version = "4.1.
|
|
381
|
+
const version = "4.1.8";
|
|
379
382
|
|
|
380
383
|
const name$3 = "astro-multi-top-level-element-indent";
|
|
381
384
|
const _astroMultiTopLevelElementIndent = createRule({
|
|
@@ -785,9 +788,9 @@ function typescript() {
|
|
|
785
788
|
files: [
|
|
786
789
|
"**/*.?([cm])ts",
|
|
787
790
|
"**/*.?([cm])tsx",
|
|
788
|
-
"**/*.vue"
|
|
789
|
-
|
|
790
|
-
|
|
791
|
+
"**/*.vue"
|
|
792
|
+
// '**/*.astro/*.ts',
|
|
793
|
+
// '*.astro/*.ts',
|
|
791
794
|
],
|
|
792
795
|
languageOptions: {
|
|
793
796
|
parser: tsParser,
|