@meteorlxy/eslint-config 4.8.2 → 4.9.1
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.cjs +24 -45
- package/dist/index.d.cts +42 -15
- package/dist/index.d.mts +42 -15
- package/dist/index.d.ts +42 -15
- package/dist/index.mjs +24 -45
- package/package.json +19 -19
package/dist/index.cjs
CHANGED
|
@@ -301,11 +301,12 @@ const builtinRules = {
|
|
|
301
301
|
}
|
|
302
302
|
],
|
|
303
303
|
"no-implicit-coercion": [
|
|
304
|
-
"
|
|
304
|
+
"warn",
|
|
305
305
|
{
|
|
306
306
|
boolean: false,
|
|
307
307
|
number: true,
|
|
308
308
|
string: true,
|
|
309
|
+
disallowTemplateShorthand: false,
|
|
309
310
|
allow: []
|
|
310
311
|
}
|
|
311
312
|
],
|
|
@@ -1532,8 +1533,6 @@ const vueRules = {
|
|
|
1532
1533
|
}
|
|
1533
1534
|
],
|
|
1534
1535
|
"vue/component-options-name-casing": ["error", "PascalCase"],
|
|
1535
|
-
"vue/component-tags-order": "off",
|
|
1536
|
-
// deprecated
|
|
1537
1536
|
"vue/custom-event-name-casing": [
|
|
1538
1537
|
"error",
|
|
1539
1538
|
"camelCase",
|
|
@@ -1555,13 +1554,7 @@ const vueRules = {
|
|
|
1555
1554
|
"off",
|
|
1556
1555
|
{ allow: ["scoped", "module", "plain"] }
|
|
1557
1556
|
],
|
|
1558
|
-
"vue/eqeqeq":
|
|
1559
|
-
"error",
|
|
1560
|
-
"always",
|
|
1561
|
-
{
|
|
1562
|
-
null: "ignore"
|
|
1563
|
-
}
|
|
1564
|
-
],
|
|
1557
|
+
"vue/eqeqeq": builtinRules.eqeqeq,
|
|
1565
1558
|
// builtin extension
|
|
1566
1559
|
"vue/html-button-has-type": [
|
|
1567
1560
|
"error",
|
|
@@ -1593,9 +1586,9 @@ const vueRules = {
|
|
|
1593
1586
|
"vue/next-tick-style": ["error", "promise"],
|
|
1594
1587
|
"vue/no-bare-strings-in-template": ["off"],
|
|
1595
1588
|
"vue/no-boolean-default": ["off", "no-default"],
|
|
1596
|
-
"vue/no-console": "
|
|
1589
|
+
"vue/no-console": builtinRules["no-console"],
|
|
1597
1590
|
// builtin extension
|
|
1598
|
-
"vue/no-constant-condition": "
|
|
1591
|
+
"vue/no-constant-condition": builtinRules["no-constant-condition"],
|
|
1599
1592
|
// builtin extension
|
|
1600
1593
|
"vue/no-custom-modifiers-on-v-model": "off",
|
|
1601
1594
|
// vue2?
|
|
@@ -1603,11 +1596,12 @@ const vueRules = {
|
|
|
1603
1596
|
"vue/no-deprecated-model-definition": "error",
|
|
1604
1597
|
"vue/no-duplicate-attr-inheritance": "error",
|
|
1605
1598
|
"vue/no-empty-component-block": "warn",
|
|
1606
|
-
"vue/no-empty-pattern": "
|
|
1599
|
+
"vue/no-empty-pattern": builtinRules["no-empty-pattern"],
|
|
1607
1600
|
// builtin extension
|
|
1608
|
-
"vue/no-
|
|
1609
|
-
//
|
|
1610
|
-
"vue/no-
|
|
1601
|
+
"vue/no-implicit-coercion": builtinRules["no-implicit-coercion"],
|
|
1602
|
+
// builtin extension
|
|
1603
|
+
"vue/no-import-compiler-macros": "error",
|
|
1604
|
+
"vue/no-irregular-whitespace": builtinRules["no-irregular-whitespace"],
|
|
1611
1605
|
// builtin extension
|
|
1612
1606
|
"vue/no-loss-of-precision": "off",
|
|
1613
1607
|
// builtin extension - checked by typescript?
|
|
@@ -1616,8 +1610,6 @@ const vueRules = {
|
|
|
1616
1610
|
// vue2 - better to have in vue3, too?
|
|
1617
1611
|
"vue/no-potential-component-option-typo": "off",
|
|
1618
1612
|
// options api
|
|
1619
|
-
"vue/no-ref-object-destructure": "off",
|
|
1620
|
-
// deprecated
|
|
1621
1613
|
"vue/no-ref-object-reactivity-loss": "warn",
|
|
1622
1614
|
"vue/no-required-prop-with-default": ["warn", { autofix: false }],
|
|
1623
1615
|
"vue/no-restricted-block": ["off"],
|
|
@@ -1629,20 +1621,13 @@ const vueRules = {
|
|
|
1629
1621
|
"vue/no-restricted-html-elements": ["off"],
|
|
1630
1622
|
"vue/no-restricted-props": ["off"],
|
|
1631
1623
|
"vue/no-restricted-static-attribute": ["off"],
|
|
1632
|
-
"vue/no-restricted-syntax": [
|
|
1633
|
-
"error",
|
|
1634
|
-
"DebuggerStatement",
|
|
1635
|
-
"LabeledStatement",
|
|
1636
|
-
"WithStatement"
|
|
1637
|
-
],
|
|
1624
|
+
"vue/no-restricted-syntax": builtinRules["no-restricted-syntax"],
|
|
1638
1625
|
// builtin extension
|
|
1639
1626
|
"vue/no-restricted-v-bind": ["off"],
|
|
1640
1627
|
"vue/no-restricted-v-on": ["off"],
|
|
1641
1628
|
"vue/no-root-v-if": "error",
|
|
1642
|
-
"vue/no-setup-props-destructure": "off",
|
|
1643
|
-
// deprecated
|
|
1644
1629
|
"vue/no-setup-props-reactivity-loss": "error",
|
|
1645
|
-
"vue/no-sparse-arrays": "
|
|
1630
|
+
"vue/no-sparse-arrays": builtinRules["no-sparse-arrays"],
|
|
1646
1631
|
// builtin extension
|
|
1647
1632
|
"vue/no-static-inline-styles": [
|
|
1648
1633
|
"error",
|
|
@@ -1675,7 +1660,7 @@ const vueRules = {
|
|
|
1675
1660
|
"vue/no-unused-refs": "error",
|
|
1676
1661
|
"vue/no-use-v-else-with-v-for": "error",
|
|
1677
1662
|
"vue/no-use-v-if-with-v-for": "error",
|
|
1678
|
-
"vue/no-useless-concat": "
|
|
1663
|
+
"vue/no-useless-concat": builtinRules["no-useless-concat"],
|
|
1679
1664
|
// builtin extension
|
|
1680
1665
|
"vue/no-useless-mustaches": [
|
|
1681
1666
|
"off",
|
|
@@ -1691,19 +1676,12 @@ const vueRules = {
|
|
|
1691
1676
|
"vue/no-v-model-argument": "off",
|
|
1692
1677
|
// vue2
|
|
1693
1678
|
"vue/no-v-text": "off",
|
|
1694
|
-
"vue/object-shorthand": [
|
|
1695
|
-
"error",
|
|
1696
|
-
"always",
|
|
1697
|
-
{
|
|
1698
|
-
ignoreConstructors: false,
|
|
1699
|
-
avoidQuotes: true
|
|
1700
|
-
}
|
|
1701
|
-
],
|
|
1679
|
+
"vue/object-shorthand": builtinRules["object-shorthand"],
|
|
1702
1680
|
// builtin extension
|
|
1703
1681
|
"vue/prefer-define-options": "error",
|
|
1704
1682
|
"vue/prefer-prop-type-boolean-first": "error",
|
|
1705
1683
|
"vue/prefer-separate-static-class": "error",
|
|
1706
|
-
"vue/prefer-template": "
|
|
1684
|
+
"vue/prefer-template": builtinRules["prefer-template"],
|
|
1707
1685
|
// builtin extension
|
|
1708
1686
|
"vue/prefer-true-attribute-shorthand": "off",
|
|
1709
1687
|
"vue/prefer-use-template-ref": "error",
|
|
@@ -1743,17 +1721,13 @@ const vueRules = {
|
|
|
1743
1721
|
allow: []
|
|
1744
1722
|
}
|
|
1745
1723
|
],
|
|
1746
|
-
"vue/sort-keys": "
|
|
1724
|
+
"vue/sort-keys": builtinRules["sort-keys"],
|
|
1747
1725
|
// builtin extension
|
|
1748
|
-
"vue/script-setup-uses-vars": "off",
|
|
1749
|
-
// deprecated
|
|
1750
1726
|
"vue/slot-name-casing": ["warn", "kebab-case"],
|
|
1751
1727
|
"vue/static-class-names-order": "error",
|
|
1752
1728
|
"vue/v-if-else-key": "off",
|
|
1753
1729
|
// vue2
|
|
1754
1730
|
"vue/v-on-handler-style": "off",
|
|
1755
|
-
"vue/v-on-function-call": "off",
|
|
1756
|
-
// deprecated
|
|
1757
1731
|
"vue/valid-define-emits": "error",
|
|
1758
1732
|
"vue/valid-define-options": "error",
|
|
1759
1733
|
"vue/valid-define-props": "error",
|
|
@@ -2052,15 +2026,20 @@ const vue = async ({
|
|
|
2052
2026
|
}
|
|
2053
2027
|
},
|
|
2054
2028
|
processor: vuePlugin.processors[".vue"],
|
|
2029
|
+
/* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access */
|
|
2055
2030
|
rules: {
|
|
2056
2031
|
...vuePlugin.configs.base.rules,
|
|
2057
|
-
|
|
2058
|
-
...vuePlugin.configs
|
|
2059
|
-
|
|
2032
|
+
// @ts-expect-error - types are not correct
|
|
2033
|
+
...vuePlugin.configs.essential.rules,
|
|
2034
|
+
// @ts-expect-error - types are not correct
|
|
2035
|
+
...vuePlugin.configs["strongly-recommended"].rules,
|
|
2036
|
+
// @ts-expect-error - types are not correct
|
|
2037
|
+
...vuePlugin.configs.recommended.rules,
|
|
2060
2038
|
...vuePlugin.configs["no-layout-rules"].rules,
|
|
2061
2039
|
...vueRules,
|
|
2062
2040
|
...overrides
|
|
2063
2041
|
}
|
|
2042
|
+
/* eslint-enable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access */
|
|
2064
2043
|
}
|
|
2065
2044
|
];
|
|
2066
2045
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -80,7 +80,8 @@ declare const index$1_react: typeof react;
|
|
|
80
80
|
declare const index$1_typescript: typeof typescript;
|
|
81
81
|
declare const index$1_vue: typeof vue;
|
|
82
82
|
declare namespace index$1 {
|
|
83
|
-
export {
|
|
83
|
+
export { index$1_ignores as ignores, index$1_imports as imports, index$1_javascript as javascript, index$1_markdown as markdown, index$1_prettier as prettier, index$1_react as react, index$1_typescript as typescript, index$1_vue as vue };
|
|
84
|
+
export type { index$1_EslintIgnoresOptions as EslintIgnoresOptions, index$1_EslintImportsOptions as EslintImportsOptions, index$1_EslintJavascriptOptions as EslintJavascriptOptions, index$1_EslintMarkdownOptions as EslintMarkdownOptions, index$1_EslintReactOptions as EslintReactOptions, index$1_EslintTypescriptOptions as EslintTypescriptOptions, index$1_EslintVueOptions as EslintVueOptions };
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
declare const IS_CI: boolean;
|
|
@@ -89,7 +90,10 @@ declare const IS_EDITOR: boolean;
|
|
|
89
90
|
declare const env_IS_CI: typeof IS_CI;
|
|
90
91
|
declare const env_IS_EDITOR: typeof IS_EDITOR;
|
|
91
92
|
declare namespace env {
|
|
92
|
-
export {
|
|
93
|
+
export {
|
|
94
|
+
env_IS_CI as IS_CI,
|
|
95
|
+
env_IS_EDITOR as IS_EDITOR,
|
|
96
|
+
};
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
declare const builtinRules: {
|
|
@@ -260,10 +264,11 @@ declare const builtinRules: {
|
|
|
260
264
|
'no-global-assign': ["error", {
|
|
261
265
|
exceptions: never[];
|
|
262
266
|
}];
|
|
263
|
-
'no-implicit-coercion': ["
|
|
267
|
+
'no-implicit-coercion': ["warn", {
|
|
264
268
|
boolean: boolean;
|
|
265
269
|
number: boolean;
|
|
266
270
|
string: boolean;
|
|
271
|
+
disallowTemplateShorthand: boolean;
|
|
267
272
|
allow: never[];
|
|
268
273
|
}];
|
|
269
274
|
'no-implicit-globals': "off";
|
|
@@ -335,7 +340,7 @@ declare const builtinRules: {
|
|
|
335
340
|
name: string;
|
|
336
341
|
message: string;
|
|
337
342
|
}, ...{
|
|
338
|
-
name: "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "external" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "location" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "
|
|
343
|
+
name: "name" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "external" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "location" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "parent" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "self" | "status" | "statusbar" | "stop" | "toolbar" | "top";
|
|
339
344
|
message: string;
|
|
340
345
|
}[]];
|
|
341
346
|
'no-restricted-imports': ["off", {
|
|
@@ -1216,7 +1221,6 @@ declare const vueRules: {
|
|
|
1216
1221
|
ignores: never[];
|
|
1217
1222
|
}];
|
|
1218
1223
|
'vue/component-options-name-casing': ["error", string];
|
|
1219
|
-
'vue/component-tags-order': "off";
|
|
1220
1224
|
'vue/custom-event-name-casing': ["error", string, {
|
|
1221
1225
|
ignores: never[];
|
|
1222
1226
|
}];
|
|
@@ -1257,7 +1261,7 @@ declare const vueRules: {
|
|
|
1257
1261
|
'vue/next-tick-style': ["error", string];
|
|
1258
1262
|
'vue/no-bare-strings-in-template': ["off"];
|
|
1259
1263
|
'vue/no-boolean-default': ["off", string];
|
|
1260
|
-
'vue/no-console': "
|
|
1264
|
+
'vue/no-console': "warn";
|
|
1261
1265
|
'vue/no-constant-condition': "warn";
|
|
1262
1266
|
'vue/no-custom-modifiers-on-v-model': "off";
|
|
1263
1267
|
'vue/no-deprecated-delete-set': "error";
|
|
@@ -1265,13 +1269,19 @@ declare const vueRules: {
|
|
|
1265
1269
|
'vue/no-duplicate-attr-inheritance': "error";
|
|
1266
1270
|
'vue/no-empty-component-block': "warn";
|
|
1267
1271
|
'vue/no-empty-pattern': "error";
|
|
1268
|
-
'vue/no-
|
|
1272
|
+
'vue/no-implicit-coercion': ["warn", {
|
|
1273
|
+
boolean: boolean;
|
|
1274
|
+
number: boolean;
|
|
1275
|
+
string: boolean;
|
|
1276
|
+
disallowTemplateShorthand: boolean;
|
|
1277
|
+
allow: never[];
|
|
1278
|
+
}];
|
|
1279
|
+
'vue/no-import-compiler-macros': "error";
|
|
1269
1280
|
'vue/no-irregular-whitespace': "error";
|
|
1270
1281
|
'vue/no-loss-of-precision': "off";
|
|
1271
1282
|
'vue/no-multiple-objects-in-class': "error";
|
|
1272
1283
|
'vue/no-multiple-template-root': "off";
|
|
1273
1284
|
'vue/no-potential-component-option-typo': "off";
|
|
1274
|
-
'vue/no-ref-object-destructure': "off";
|
|
1275
1285
|
'vue/no-ref-object-reactivity-loss': "warn";
|
|
1276
1286
|
'vue/no-required-prop-with-default': ["warn", {
|
|
1277
1287
|
autofix: boolean;
|
|
@@ -1285,11 +1295,16 @@ declare const vueRules: {
|
|
|
1285
1295
|
'vue/no-restricted-html-elements': ["off"];
|
|
1286
1296
|
'vue/no-restricted-props': ["off"];
|
|
1287
1297
|
'vue/no-restricted-static-attribute': ["off"];
|
|
1288
|
-
'vue/no-restricted-syntax': ["error",
|
|
1298
|
+
'vue/no-restricted-syntax': ["error", {
|
|
1299
|
+
selector: string;
|
|
1300
|
+
message: string;
|
|
1301
|
+
}, {
|
|
1302
|
+
selector: string;
|
|
1303
|
+
message: string;
|
|
1304
|
+
}];
|
|
1289
1305
|
'vue/no-restricted-v-bind': ["off"];
|
|
1290
1306
|
'vue/no-restricted-v-on': ["off"];
|
|
1291
1307
|
'vue/no-root-v-if': "error";
|
|
1292
|
-
'vue/no-setup-props-destructure': "off";
|
|
1293
1308
|
'vue/no-setup-props-reactivity-loss': "error";
|
|
1294
1309
|
'vue/no-sparse-arrays': "error";
|
|
1295
1310
|
'vue/no-static-inline-styles': ["error", {
|
|
@@ -1357,12 +1372,10 @@ declare const vueRules: {
|
|
|
1357
1372
|
allow: never[];
|
|
1358
1373
|
}];
|
|
1359
1374
|
'vue/sort-keys': "off";
|
|
1360
|
-
'vue/script-setup-uses-vars': "off";
|
|
1361
1375
|
'vue/slot-name-casing': ["warn", string];
|
|
1362
1376
|
'vue/static-class-names-order': "error";
|
|
1363
1377
|
'vue/v-if-else-key': "off";
|
|
1364
1378
|
'vue/v-on-handler-style': "off";
|
|
1365
|
-
'vue/v-on-function-call': "off";
|
|
1366
1379
|
'vue/valid-define-emits': "error";
|
|
1367
1380
|
'vue/valid-define-options': "error";
|
|
1368
1381
|
'vue/valid-define-props': "error";
|
|
@@ -1381,7 +1394,18 @@ declare const index_typescriptRules: typeof typescriptRules;
|
|
|
1381
1394
|
declare const index_typescriptShimRules: typeof typescriptShimRules;
|
|
1382
1395
|
declare const index_vueRules: typeof vueRules;
|
|
1383
1396
|
declare namespace index {
|
|
1384
|
-
export {
|
|
1397
|
+
export {
|
|
1398
|
+
index_builtinRules as builtinRules,
|
|
1399
|
+
index_eslintCommentsRules as eslintCommentsRules,
|
|
1400
|
+
index_importsRules as importsRules,
|
|
1401
|
+
index_markdownShimRules as markdownShimRules,
|
|
1402
|
+
index_reactHooksRules as reactHooksRules,
|
|
1403
|
+
index_reactRefreshRules as reactRefreshRules,
|
|
1404
|
+
index_reactRules as reactRules,
|
|
1405
|
+
index_typescriptRules as typescriptRules,
|
|
1406
|
+
index_typescriptShimRules as typescriptShimRules,
|
|
1407
|
+
index_vueRules as vueRules,
|
|
1408
|
+
};
|
|
1385
1409
|
}
|
|
1386
1410
|
|
|
1387
1411
|
declare const interopDefault: <T, Default extends T extends {
|
|
@@ -1390,7 +1414,9 @@ declare const interopDefault: <T, Default extends T extends {
|
|
|
1390
1414
|
|
|
1391
1415
|
declare const utils_interopDefault: typeof interopDefault;
|
|
1392
1416
|
declare namespace utils {
|
|
1393
|
-
export {
|
|
1417
|
+
export {
|
|
1418
|
+
utils_interopDefault as interopDefault,
|
|
1419
|
+
};
|
|
1394
1420
|
}
|
|
1395
1421
|
|
|
1396
1422
|
interface EslintOptions {
|
|
@@ -1404,4 +1430,5 @@ interface EslintOptions {
|
|
|
1404
1430
|
}
|
|
1405
1431
|
declare const meteorlxy: ({ ignores, imports, javascript, markdown, react, typescript, vue, }?: EslintOptions, ...customConfigs: FlatConfig.Config[]) => Promise<FlatConfig.Config[]>;
|
|
1406
1432
|
|
|
1407
|
-
export {
|
|
1433
|
+
export { index$1 as configs, env, meteorlxy, index as rules, utils };
|
|
1434
|
+
export type { EslintOptions };
|
package/dist/index.d.mts
CHANGED
|
@@ -80,7 +80,8 @@ declare const index$1_react: typeof react;
|
|
|
80
80
|
declare const index$1_typescript: typeof typescript;
|
|
81
81
|
declare const index$1_vue: typeof vue;
|
|
82
82
|
declare namespace index$1 {
|
|
83
|
-
export {
|
|
83
|
+
export { index$1_ignores as ignores, index$1_imports as imports, index$1_javascript as javascript, index$1_markdown as markdown, index$1_prettier as prettier, index$1_react as react, index$1_typescript as typescript, index$1_vue as vue };
|
|
84
|
+
export type { index$1_EslintIgnoresOptions as EslintIgnoresOptions, index$1_EslintImportsOptions as EslintImportsOptions, index$1_EslintJavascriptOptions as EslintJavascriptOptions, index$1_EslintMarkdownOptions as EslintMarkdownOptions, index$1_EslintReactOptions as EslintReactOptions, index$1_EslintTypescriptOptions as EslintTypescriptOptions, index$1_EslintVueOptions as EslintVueOptions };
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
declare const IS_CI: boolean;
|
|
@@ -89,7 +90,10 @@ declare const IS_EDITOR: boolean;
|
|
|
89
90
|
declare const env_IS_CI: typeof IS_CI;
|
|
90
91
|
declare const env_IS_EDITOR: typeof IS_EDITOR;
|
|
91
92
|
declare namespace env {
|
|
92
|
-
export {
|
|
93
|
+
export {
|
|
94
|
+
env_IS_CI as IS_CI,
|
|
95
|
+
env_IS_EDITOR as IS_EDITOR,
|
|
96
|
+
};
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
declare const builtinRules: {
|
|
@@ -260,10 +264,11 @@ declare const builtinRules: {
|
|
|
260
264
|
'no-global-assign': ["error", {
|
|
261
265
|
exceptions: never[];
|
|
262
266
|
}];
|
|
263
|
-
'no-implicit-coercion': ["
|
|
267
|
+
'no-implicit-coercion': ["warn", {
|
|
264
268
|
boolean: boolean;
|
|
265
269
|
number: boolean;
|
|
266
270
|
string: boolean;
|
|
271
|
+
disallowTemplateShorthand: boolean;
|
|
267
272
|
allow: never[];
|
|
268
273
|
}];
|
|
269
274
|
'no-implicit-globals': "off";
|
|
@@ -335,7 +340,7 @@ declare const builtinRules: {
|
|
|
335
340
|
name: string;
|
|
336
341
|
message: string;
|
|
337
342
|
}, ...{
|
|
338
|
-
name: "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "external" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "location" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "
|
|
343
|
+
name: "name" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "external" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "location" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "parent" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "self" | "status" | "statusbar" | "stop" | "toolbar" | "top";
|
|
339
344
|
message: string;
|
|
340
345
|
}[]];
|
|
341
346
|
'no-restricted-imports': ["off", {
|
|
@@ -1216,7 +1221,6 @@ declare const vueRules: {
|
|
|
1216
1221
|
ignores: never[];
|
|
1217
1222
|
}];
|
|
1218
1223
|
'vue/component-options-name-casing': ["error", string];
|
|
1219
|
-
'vue/component-tags-order': "off";
|
|
1220
1224
|
'vue/custom-event-name-casing': ["error", string, {
|
|
1221
1225
|
ignores: never[];
|
|
1222
1226
|
}];
|
|
@@ -1257,7 +1261,7 @@ declare const vueRules: {
|
|
|
1257
1261
|
'vue/next-tick-style': ["error", string];
|
|
1258
1262
|
'vue/no-bare-strings-in-template': ["off"];
|
|
1259
1263
|
'vue/no-boolean-default': ["off", string];
|
|
1260
|
-
'vue/no-console': "
|
|
1264
|
+
'vue/no-console': "warn";
|
|
1261
1265
|
'vue/no-constant-condition': "warn";
|
|
1262
1266
|
'vue/no-custom-modifiers-on-v-model': "off";
|
|
1263
1267
|
'vue/no-deprecated-delete-set': "error";
|
|
@@ -1265,13 +1269,19 @@ declare const vueRules: {
|
|
|
1265
1269
|
'vue/no-duplicate-attr-inheritance': "error";
|
|
1266
1270
|
'vue/no-empty-component-block': "warn";
|
|
1267
1271
|
'vue/no-empty-pattern': "error";
|
|
1268
|
-
'vue/no-
|
|
1272
|
+
'vue/no-implicit-coercion': ["warn", {
|
|
1273
|
+
boolean: boolean;
|
|
1274
|
+
number: boolean;
|
|
1275
|
+
string: boolean;
|
|
1276
|
+
disallowTemplateShorthand: boolean;
|
|
1277
|
+
allow: never[];
|
|
1278
|
+
}];
|
|
1279
|
+
'vue/no-import-compiler-macros': "error";
|
|
1269
1280
|
'vue/no-irregular-whitespace': "error";
|
|
1270
1281
|
'vue/no-loss-of-precision': "off";
|
|
1271
1282
|
'vue/no-multiple-objects-in-class': "error";
|
|
1272
1283
|
'vue/no-multiple-template-root': "off";
|
|
1273
1284
|
'vue/no-potential-component-option-typo': "off";
|
|
1274
|
-
'vue/no-ref-object-destructure': "off";
|
|
1275
1285
|
'vue/no-ref-object-reactivity-loss': "warn";
|
|
1276
1286
|
'vue/no-required-prop-with-default': ["warn", {
|
|
1277
1287
|
autofix: boolean;
|
|
@@ -1285,11 +1295,16 @@ declare const vueRules: {
|
|
|
1285
1295
|
'vue/no-restricted-html-elements': ["off"];
|
|
1286
1296
|
'vue/no-restricted-props': ["off"];
|
|
1287
1297
|
'vue/no-restricted-static-attribute': ["off"];
|
|
1288
|
-
'vue/no-restricted-syntax': ["error",
|
|
1298
|
+
'vue/no-restricted-syntax': ["error", {
|
|
1299
|
+
selector: string;
|
|
1300
|
+
message: string;
|
|
1301
|
+
}, {
|
|
1302
|
+
selector: string;
|
|
1303
|
+
message: string;
|
|
1304
|
+
}];
|
|
1289
1305
|
'vue/no-restricted-v-bind': ["off"];
|
|
1290
1306
|
'vue/no-restricted-v-on': ["off"];
|
|
1291
1307
|
'vue/no-root-v-if': "error";
|
|
1292
|
-
'vue/no-setup-props-destructure': "off";
|
|
1293
1308
|
'vue/no-setup-props-reactivity-loss': "error";
|
|
1294
1309
|
'vue/no-sparse-arrays': "error";
|
|
1295
1310
|
'vue/no-static-inline-styles': ["error", {
|
|
@@ -1357,12 +1372,10 @@ declare const vueRules: {
|
|
|
1357
1372
|
allow: never[];
|
|
1358
1373
|
}];
|
|
1359
1374
|
'vue/sort-keys': "off";
|
|
1360
|
-
'vue/script-setup-uses-vars': "off";
|
|
1361
1375
|
'vue/slot-name-casing': ["warn", string];
|
|
1362
1376
|
'vue/static-class-names-order': "error";
|
|
1363
1377
|
'vue/v-if-else-key': "off";
|
|
1364
1378
|
'vue/v-on-handler-style': "off";
|
|
1365
|
-
'vue/v-on-function-call': "off";
|
|
1366
1379
|
'vue/valid-define-emits': "error";
|
|
1367
1380
|
'vue/valid-define-options': "error";
|
|
1368
1381
|
'vue/valid-define-props': "error";
|
|
@@ -1381,7 +1394,18 @@ declare const index_typescriptRules: typeof typescriptRules;
|
|
|
1381
1394
|
declare const index_typescriptShimRules: typeof typescriptShimRules;
|
|
1382
1395
|
declare const index_vueRules: typeof vueRules;
|
|
1383
1396
|
declare namespace index {
|
|
1384
|
-
export {
|
|
1397
|
+
export {
|
|
1398
|
+
index_builtinRules as builtinRules,
|
|
1399
|
+
index_eslintCommentsRules as eslintCommentsRules,
|
|
1400
|
+
index_importsRules as importsRules,
|
|
1401
|
+
index_markdownShimRules as markdownShimRules,
|
|
1402
|
+
index_reactHooksRules as reactHooksRules,
|
|
1403
|
+
index_reactRefreshRules as reactRefreshRules,
|
|
1404
|
+
index_reactRules as reactRules,
|
|
1405
|
+
index_typescriptRules as typescriptRules,
|
|
1406
|
+
index_typescriptShimRules as typescriptShimRules,
|
|
1407
|
+
index_vueRules as vueRules,
|
|
1408
|
+
};
|
|
1385
1409
|
}
|
|
1386
1410
|
|
|
1387
1411
|
declare const interopDefault: <T, Default extends T extends {
|
|
@@ -1390,7 +1414,9 @@ declare const interopDefault: <T, Default extends T extends {
|
|
|
1390
1414
|
|
|
1391
1415
|
declare const utils_interopDefault: typeof interopDefault;
|
|
1392
1416
|
declare namespace utils {
|
|
1393
|
-
export {
|
|
1417
|
+
export {
|
|
1418
|
+
utils_interopDefault as interopDefault,
|
|
1419
|
+
};
|
|
1394
1420
|
}
|
|
1395
1421
|
|
|
1396
1422
|
interface EslintOptions {
|
|
@@ -1404,4 +1430,5 @@ interface EslintOptions {
|
|
|
1404
1430
|
}
|
|
1405
1431
|
declare const meteorlxy: ({ ignores, imports, javascript, markdown, react, typescript, vue, }?: EslintOptions, ...customConfigs: FlatConfig.Config[]) => Promise<FlatConfig.Config[]>;
|
|
1406
1432
|
|
|
1407
|
-
export {
|
|
1433
|
+
export { index$1 as configs, env, meteorlxy, index as rules, utils };
|
|
1434
|
+
export type { EslintOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -80,7 +80,8 @@ declare const index$1_react: typeof react;
|
|
|
80
80
|
declare const index$1_typescript: typeof typescript;
|
|
81
81
|
declare const index$1_vue: typeof vue;
|
|
82
82
|
declare namespace index$1 {
|
|
83
|
-
export {
|
|
83
|
+
export { index$1_ignores as ignores, index$1_imports as imports, index$1_javascript as javascript, index$1_markdown as markdown, index$1_prettier as prettier, index$1_react as react, index$1_typescript as typescript, index$1_vue as vue };
|
|
84
|
+
export type { index$1_EslintIgnoresOptions as EslintIgnoresOptions, index$1_EslintImportsOptions as EslintImportsOptions, index$1_EslintJavascriptOptions as EslintJavascriptOptions, index$1_EslintMarkdownOptions as EslintMarkdownOptions, index$1_EslintReactOptions as EslintReactOptions, index$1_EslintTypescriptOptions as EslintTypescriptOptions, index$1_EslintVueOptions as EslintVueOptions };
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
declare const IS_CI: boolean;
|
|
@@ -89,7 +90,10 @@ declare const IS_EDITOR: boolean;
|
|
|
89
90
|
declare const env_IS_CI: typeof IS_CI;
|
|
90
91
|
declare const env_IS_EDITOR: typeof IS_EDITOR;
|
|
91
92
|
declare namespace env {
|
|
92
|
-
export {
|
|
93
|
+
export {
|
|
94
|
+
env_IS_CI as IS_CI,
|
|
95
|
+
env_IS_EDITOR as IS_EDITOR,
|
|
96
|
+
};
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
declare const builtinRules: {
|
|
@@ -260,10 +264,11 @@ declare const builtinRules: {
|
|
|
260
264
|
'no-global-assign': ["error", {
|
|
261
265
|
exceptions: never[];
|
|
262
266
|
}];
|
|
263
|
-
'no-implicit-coercion': ["
|
|
267
|
+
'no-implicit-coercion': ["warn", {
|
|
264
268
|
boolean: boolean;
|
|
265
269
|
number: boolean;
|
|
266
270
|
string: boolean;
|
|
271
|
+
disallowTemplateShorthand: boolean;
|
|
267
272
|
allow: never[];
|
|
268
273
|
}];
|
|
269
274
|
'no-implicit-globals': "off";
|
|
@@ -335,7 +340,7 @@ declare const builtinRules: {
|
|
|
335
340
|
name: string;
|
|
336
341
|
message: string;
|
|
337
342
|
}, ...{
|
|
338
|
-
name: "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "external" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "location" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "
|
|
343
|
+
name: "name" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "external" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "location" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "parent" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "self" | "status" | "statusbar" | "stop" | "toolbar" | "top";
|
|
339
344
|
message: string;
|
|
340
345
|
}[]];
|
|
341
346
|
'no-restricted-imports': ["off", {
|
|
@@ -1216,7 +1221,6 @@ declare const vueRules: {
|
|
|
1216
1221
|
ignores: never[];
|
|
1217
1222
|
}];
|
|
1218
1223
|
'vue/component-options-name-casing': ["error", string];
|
|
1219
|
-
'vue/component-tags-order': "off";
|
|
1220
1224
|
'vue/custom-event-name-casing': ["error", string, {
|
|
1221
1225
|
ignores: never[];
|
|
1222
1226
|
}];
|
|
@@ -1257,7 +1261,7 @@ declare const vueRules: {
|
|
|
1257
1261
|
'vue/next-tick-style': ["error", string];
|
|
1258
1262
|
'vue/no-bare-strings-in-template': ["off"];
|
|
1259
1263
|
'vue/no-boolean-default': ["off", string];
|
|
1260
|
-
'vue/no-console': "
|
|
1264
|
+
'vue/no-console': "warn";
|
|
1261
1265
|
'vue/no-constant-condition': "warn";
|
|
1262
1266
|
'vue/no-custom-modifiers-on-v-model': "off";
|
|
1263
1267
|
'vue/no-deprecated-delete-set': "error";
|
|
@@ -1265,13 +1269,19 @@ declare const vueRules: {
|
|
|
1265
1269
|
'vue/no-duplicate-attr-inheritance': "error";
|
|
1266
1270
|
'vue/no-empty-component-block': "warn";
|
|
1267
1271
|
'vue/no-empty-pattern': "error";
|
|
1268
|
-
'vue/no-
|
|
1272
|
+
'vue/no-implicit-coercion': ["warn", {
|
|
1273
|
+
boolean: boolean;
|
|
1274
|
+
number: boolean;
|
|
1275
|
+
string: boolean;
|
|
1276
|
+
disallowTemplateShorthand: boolean;
|
|
1277
|
+
allow: never[];
|
|
1278
|
+
}];
|
|
1279
|
+
'vue/no-import-compiler-macros': "error";
|
|
1269
1280
|
'vue/no-irregular-whitespace': "error";
|
|
1270
1281
|
'vue/no-loss-of-precision': "off";
|
|
1271
1282
|
'vue/no-multiple-objects-in-class': "error";
|
|
1272
1283
|
'vue/no-multiple-template-root': "off";
|
|
1273
1284
|
'vue/no-potential-component-option-typo': "off";
|
|
1274
|
-
'vue/no-ref-object-destructure': "off";
|
|
1275
1285
|
'vue/no-ref-object-reactivity-loss': "warn";
|
|
1276
1286
|
'vue/no-required-prop-with-default': ["warn", {
|
|
1277
1287
|
autofix: boolean;
|
|
@@ -1285,11 +1295,16 @@ declare const vueRules: {
|
|
|
1285
1295
|
'vue/no-restricted-html-elements': ["off"];
|
|
1286
1296
|
'vue/no-restricted-props': ["off"];
|
|
1287
1297
|
'vue/no-restricted-static-attribute': ["off"];
|
|
1288
|
-
'vue/no-restricted-syntax': ["error",
|
|
1298
|
+
'vue/no-restricted-syntax': ["error", {
|
|
1299
|
+
selector: string;
|
|
1300
|
+
message: string;
|
|
1301
|
+
}, {
|
|
1302
|
+
selector: string;
|
|
1303
|
+
message: string;
|
|
1304
|
+
}];
|
|
1289
1305
|
'vue/no-restricted-v-bind': ["off"];
|
|
1290
1306
|
'vue/no-restricted-v-on': ["off"];
|
|
1291
1307
|
'vue/no-root-v-if': "error";
|
|
1292
|
-
'vue/no-setup-props-destructure': "off";
|
|
1293
1308
|
'vue/no-setup-props-reactivity-loss': "error";
|
|
1294
1309
|
'vue/no-sparse-arrays': "error";
|
|
1295
1310
|
'vue/no-static-inline-styles': ["error", {
|
|
@@ -1357,12 +1372,10 @@ declare const vueRules: {
|
|
|
1357
1372
|
allow: never[];
|
|
1358
1373
|
}];
|
|
1359
1374
|
'vue/sort-keys': "off";
|
|
1360
|
-
'vue/script-setup-uses-vars': "off";
|
|
1361
1375
|
'vue/slot-name-casing': ["warn", string];
|
|
1362
1376
|
'vue/static-class-names-order': "error";
|
|
1363
1377
|
'vue/v-if-else-key': "off";
|
|
1364
1378
|
'vue/v-on-handler-style': "off";
|
|
1365
|
-
'vue/v-on-function-call': "off";
|
|
1366
1379
|
'vue/valid-define-emits': "error";
|
|
1367
1380
|
'vue/valid-define-options': "error";
|
|
1368
1381
|
'vue/valid-define-props': "error";
|
|
@@ -1381,7 +1394,18 @@ declare const index_typescriptRules: typeof typescriptRules;
|
|
|
1381
1394
|
declare const index_typescriptShimRules: typeof typescriptShimRules;
|
|
1382
1395
|
declare const index_vueRules: typeof vueRules;
|
|
1383
1396
|
declare namespace index {
|
|
1384
|
-
export {
|
|
1397
|
+
export {
|
|
1398
|
+
index_builtinRules as builtinRules,
|
|
1399
|
+
index_eslintCommentsRules as eslintCommentsRules,
|
|
1400
|
+
index_importsRules as importsRules,
|
|
1401
|
+
index_markdownShimRules as markdownShimRules,
|
|
1402
|
+
index_reactHooksRules as reactHooksRules,
|
|
1403
|
+
index_reactRefreshRules as reactRefreshRules,
|
|
1404
|
+
index_reactRules as reactRules,
|
|
1405
|
+
index_typescriptRules as typescriptRules,
|
|
1406
|
+
index_typescriptShimRules as typescriptShimRules,
|
|
1407
|
+
index_vueRules as vueRules,
|
|
1408
|
+
};
|
|
1385
1409
|
}
|
|
1386
1410
|
|
|
1387
1411
|
declare const interopDefault: <T, Default extends T extends {
|
|
@@ -1390,7 +1414,9 @@ declare const interopDefault: <T, Default extends T extends {
|
|
|
1390
1414
|
|
|
1391
1415
|
declare const utils_interopDefault: typeof interopDefault;
|
|
1392
1416
|
declare namespace utils {
|
|
1393
|
-
export {
|
|
1417
|
+
export {
|
|
1418
|
+
utils_interopDefault as interopDefault,
|
|
1419
|
+
};
|
|
1394
1420
|
}
|
|
1395
1421
|
|
|
1396
1422
|
interface EslintOptions {
|
|
@@ -1404,4 +1430,5 @@ interface EslintOptions {
|
|
|
1404
1430
|
}
|
|
1405
1431
|
declare const meteorlxy: ({ ignores, imports, javascript, markdown, react, typescript, vue, }?: EslintOptions, ...customConfigs: FlatConfig.Config[]) => Promise<FlatConfig.Config[]>;
|
|
1406
1432
|
|
|
1407
|
-
export {
|
|
1433
|
+
export { index$1 as configs, env, meteorlxy, index as rules, utils };
|
|
1434
|
+
export type { EslintOptions };
|
package/dist/index.mjs
CHANGED
|
@@ -289,11 +289,12 @@ const builtinRules = {
|
|
|
289
289
|
}
|
|
290
290
|
],
|
|
291
291
|
"no-implicit-coercion": [
|
|
292
|
-
"
|
|
292
|
+
"warn",
|
|
293
293
|
{
|
|
294
294
|
boolean: false,
|
|
295
295
|
number: true,
|
|
296
296
|
string: true,
|
|
297
|
+
disallowTemplateShorthand: false,
|
|
297
298
|
allow: []
|
|
298
299
|
}
|
|
299
300
|
],
|
|
@@ -1520,8 +1521,6 @@ const vueRules = {
|
|
|
1520
1521
|
}
|
|
1521
1522
|
],
|
|
1522
1523
|
"vue/component-options-name-casing": ["error", "PascalCase"],
|
|
1523
|
-
"vue/component-tags-order": "off",
|
|
1524
|
-
// deprecated
|
|
1525
1524
|
"vue/custom-event-name-casing": [
|
|
1526
1525
|
"error",
|
|
1527
1526
|
"camelCase",
|
|
@@ -1543,13 +1542,7 @@ const vueRules = {
|
|
|
1543
1542
|
"off",
|
|
1544
1543
|
{ allow: ["scoped", "module", "plain"] }
|
|
1545
1544
|
],
|
|
1546
|
-
"vue/eqeqeq":
|
|
1547
|
-
"error",
|
|
1548
|
-
"always",
|
|
1549
|
-
{
|
|
1550
|
-
null: "ignore"
|
|
1551
|
-
}
|
|
1552
|
-
],
|
|
1545
|
+
"vue/eqeqeq": builtinRules.eqeqeq,
|
|
1553
1546
|
// builtin extension
|
|
1554
1547
|
"vue/html-button-has-type": [
|
|
1555
1548
|
"error",
|
|
@@ -1581,9 +1574,9 @@ const vueRules = {
|
|
|
1581
1574
|
"vue/next-tick-style": ["error", "promise"],
|
|
1582
1575
|
"vue/no-bare-strings-in-template": ["off"],
|
|
1583
1576
|
"vue/no-boolean-default": ["off", "no-default"],
|
|
1584
|
-
"vue/no-console": "
|
|
1577
|
+
"vue/no-console": builtinRules["no-console"],
|
|
1585
1578
|
// builtin extension
|
|
1586
|
-
"vue/no-constant-condition": "
|
|
1579
|
+
"vue/no-constant-condition": builtinRules["no-constant-condition"],
|
|
1587
1580
|
// builtin extension
|
|
1588
1581
|
"vue/no-custom-modifiers-on-v-model": "off",
|
|
1589
1582
|
// vue2?
|
|
@@ -1591,11 +1584,12 @@ const vueRules = {
|
|
|
1591
1584
|
"vue/no-deprecated-model-definition": "error",
|
|
1592
1585
|
"vue/no-duplicate-attr-inheritance": "error",
|
|
1593
1586
|
"vue/no-empty-component-block": "warn",
|
|
1594
|
-
"vue/no-empty-pattern": "
|
|
1587
|
+
"vue/no-empty-pattern": builtinRules["no-empty-pattern"],
|
|
1595
1588
|
// builtin extension
|
|
1596
|
-
"vue/no-
|
|
1597
|
-
//
|
|
1598
|
-
"vue/no-
|
|
1589
|
+
"vue/no-implicit-coercion": builtinRules["no-implicit-coercion"],
|
|
1590
|
+
// builtin extension
|
|
1591
|
+
"vue/no-import-compiler-macros": "error",
|
|
1592
|
+
"vue/no-irregular-whitespace": builtinRules["no-irregular-whitespace"],
|
|
1599
1593
|
// builtin extension
|
|
1600
1594
|
"vue/no-loss-of-precision": "off",
|
|
1601
1595
|
// builtin extension - checked by typescript?
|
|
@@ -1604,8 +1598,6 @@ const vueRules = {
|
|
|
1604
1598
|
// vue2 - better to have in vue3, too?
|
|
1605
1599
|
"vue/no-potential-component-option-typo": "off",
|
|
1606
1600
|
// options api
|
|
1607
|
-
"vue/no-ref-object-destructure": "off",
|
|
1608
|
-
// deprecated
|
|
1609
1601
|
"vue/no-ref-object-reactivity-loss": "warn",
|
|
1610
1602
|
"vue/no-required-prop-with-default": ["warn", { autofix: false }],
|
|
1611
1603
|
"vue/no-restricted-block": ["off"],
|
|
@@ -1617,20 +1609,13 @@ const vueRules = {
|
|
|
1617
1609
|
"vue/no-restricted-html-elements": ["off"],
|
|
1618
1610
|
"vue/no-restricted-props": ["off"],
|
|
1619
1611
|
"vue/no-restricted-static-attribute": ["off"],
|
|
1620
|
-
"vue/no-restricted-syntax": [
|
|
1621
|
-
"error",
|
|
1622
|
-
"DebuggerStatement",
|
|
1623
|
-
"LabeledStatement",
|
|
1624
|
-
"WithStatement"
|
|
1625
|
-
],
|
|
1612
|
+
"vue/no-restricted-syntax": builtinRules["no-restricted-syntax"],
|
|
1626
1613
|
// builtin extension
|
|
1627
1614
|
"vue/no-restricted-v-bind": ["off"],
|
|
1628
1615
|
"vue/no-restricted-v-on": ["off"],
|
|
1629
1616
|
"vue/no-root-v-if": "error",
|
|
1630
|
-
"vue/no-setup-props-destructure": "off",
|
|
1631
|
-
// deprecated
|
|
1632
1617
|
"vue/no-setup-props-reactivity-loss": "error",
|
|
1633
|
-
"vue/no-sparse-arrays": "
|
|
1618
|
+
"vue/no-sparse-arrays": builtinRules["no-sparse-arrays"],
|
|
1634
1619
|
// builtin extension
|
|
1635
1620
|
"vue/no-static-inline-styles": [
|
|
1636
1621
|
"error",
|
|
@@ -1663,7 +1648,7 @@ const vueRules = {
|
|
|
1663
1648
|
"vue/no-unused-refs": "error",
|
|
1664
1649
|
"vue/no-use-v-else-with-v-for": "error",
|
|
1665
1650
|
"vue/no-use-v-if-with-v-for": "error",
|
|
1666
|
-
"vue/no-useless-concat": "
|
|
1651
|
+
"vue/no-useless-concat": builtinRules["no-useless-concat"],
|
|
1667
1652
|
// builtin extension
|
|
1668
1653
|
"vue/no-useless-mustaches": [
|
|
1669
1654
|
"off",
|
|
@@ -1679,19 +1664,12 @@ const vueRules = {
|
|
|
1679
1664
|
"vue/no-v-model-argument": "off",
|
|
1680
1665
|
// vue2
|
|
1681
1666
|
"vue/no-v-text": "off",
|
|
1682
|
-
"vue/object-shorthand": [
|
|
1683
|
-
"error",
|
|
1684
|
-
"always",
|
|
1685
|
-
{
|
|
1686
|
-
ignoreConstructors: false,
|
|
1687
|
-
avoidQuotes: true
|
|
1688
|
-
}
|
|
1689
|
-
],
|
|
1667
|
+
"vue/object-shorthand": builtinRules["object-shorthand"],
|
|
1690
1668
|
// builtin extension
|
|
1691
1669
|
"vue/prefer-define-options": "error",
|
|
1692
1670
|
"vue/prefer-prop-type-boolean-first": "error",
|
|
1693
1671
|
"vue/prefer-separate-static-class": "error",
|
|
1694
|
-
"vue/prefer-template": "
|
|
1672
|
+
"vue/prefer-template": builtinRules["prefer-template"],
|
|
1695
1673
|
// builtin extension
|
|
1696
1674
|
"vue/prefer-true-attribute-shorthand": "off",
|
|
1697
1675
|
"vue/prefer-use-template-ref": "error",
|
|
@@ -1731,17 +1709,13 @@ const vueRules = {
|
|
|
1731
1709
|
allow: []
|
|
1732
1710
|
}
|
|
1733
1711
|
],
|
|
1734
|
-
"vue/sort-keys": "
|
|
1712
|
+
"vue/sort-keys": builtinRules["sort-keys"],
|
|
1735
1713
|
// builtin extension
|
|
1736
|
-
"vue/script-setup-uses-vars": "off",
|
|
1737
|
-
// deprecated
|
|
1738
1714
|
"vue/slot-name-casing": ["warn", "kebab-case"],
|
|
1739
1715
|
"vue/static-class-names-order": "error",
|
|
1740
1716
|
"vue/v-if-else-key": "off",
|
|
1741
1717
|
// vue2
|
|
1742
1718
|
"vue/v-on-handler-style": "off",
|
|
1743
|
-
"vue/v-on-function-call": "off",
|
|
1744
|
-
// deprecated
|
|
1745
1719
|
"vue/valid-define-emits": "error",
|
|
1746
1720
|
"vue/valid-define-options": "error",
|
|
1747
1721
|
"vue/valid-define-props": "error",
|
|
@@ -2040,15 +2014,20 @@ const vue = async ({
|
|
|
2040
2014
|
}
|
|
2041
2015
|
},
|
|
2042
2016
|
processor: vuePlugin.processors[".vue"],
|
|
2017
|
+
/* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access */
|
|
2043
2018
|
rules: {
|
|
2044
2019
|
...vuePlugin.configs.base.rules,
|
|
2045
|
-
|
|
2046
|
-
...vuePlugin.configs
|
|
2047
|
-
|
|
2020
|
+
// @ts-expect-error - types are not correct
|
|
2021
|
+
...vuePlugin.configs.essential.rules,
|
|
2022
|
+
// @ts-expect-error - types are not correct
|
|
2023
|
+
...vuePlugin.configs["strongly-recommended"].rules,
|
|
2024
|
+
// @ts-expect-error - types are not correct
|
|
2025
|
+
...vuePlugin.configs.recommended.rules,
|
|
2048
2026
|
...vuePlugin.configs["no-layout-rules"].rules,
|
|
2049
2027
|
...vueRules,
|
|
2050
2028
|
...overrides
|
|
2051
2029
|
}
|
|
2030
|
+
/* eslint-enable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access */
|
|
2052
2031
|
}
|
|
2053
2032
|
];
|
|
2054
2033
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meteorlxy/eslint-config",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.1",
|
|
4
4
|
"description": "meteorlxy eslint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -32,32 +32,32 @@
|
|
|
32
32
|
"clean": "rimraf ./dist"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
36
|
-
"@typescript-eslint/parser": "^8.
|
|
37
|
-
"@typescript-eslint/utils": "^8.
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^8.29.1",
|
|
36
|
+
"@typescript-eslint/parser": "^8.29.1",
|
|
37
|
+
"@typescript-eslint/utils": "^8.29.1",
|
|
38
38
|
"confusing-browser-globals": "^1.0.11",
|
|
39
|
-
"eslint-config-prettier": "^10.
|
|
39
|
+
"eslint-config-prettier": "^10.1.1",
|
|
40
40
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
41
|
-
"eslint-plugin-import-x": "^4.
|
|
41
|
+
"eslint-plugin-import-x": "^4.10.2",
|
|
42
42
|
"eslint-plugin-markdown": "^5.1.0",
|
|
43
|
-
"globals": "^
|
|
43
|
+
"globals": "^16.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
47
47
|
"@types/eslint": "^9.6.1",
|
|
48
|
-
"eslint": "^9.
|
|
49
|
-
"eslint-plugin-react": "^7.37.
|
|
50
|
-
"eslint-plugin-react-hooks": "^5.
|
|
51
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
52
|
-
"eslint-plugin-vue": "^
|
|
53
|
-
"vue-eslint-parser": "^
|
|
48
|
+
"eslint": "^9.24.0",
|
|
49
|
+
"eslint-plugin-react": "^7.37.5",
|
|
50
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
51
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
52
|
+
"eslint-plugin-vue": "^10.0.0",
|
|
53
|
+
"vue-eslint-parser": "^10.1.3"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"eslint-plugin-react": "^7.37.
|
|
57
|
-
"eslint-plugin-react-hooks": "^5.
|
|
58
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
59
|
-
"eslint-plugin-vue": "^
|
|
60
|
-
"vue-eslint-parser": "^
|
|
56
|
+
"eslint-plugin-react": "^7.37.5",
|
|
57
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
58
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
59
|
+
"eslint-plugin-vue": "^10.0.0",
|
|
60
|
+
"vue-eslint-parser": "^10.1.3"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
63
63
|
"eslint-plugin-react": {
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "70aec3895e1533be9a22f53b38100a7bc12f29fb"
|
|
83
83
|
}
|