@meteorlxy/eslint-config 6.13.0 → 6.14.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/dist/chunk-CfYAbeIz.mjs +13 -0
- package/dist/index.cjs +35 -69
- package/dist/index.mjs +4 -29
- package/package.json +14 -14
- package/dist/chunk-DQk6qfdC.mjs +0 -18
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -8,28 +8,20 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __exportAll = (all, no_symbols) => {
|
|
10
10
|
let target = {};
|
|
11
|
-
for (var name in all) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
if (!no_symbols) {
|
|
18
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
19
|
-
}
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
20
16
|
return target;
|
|
21
17
|
};
|
|
22
18
|
var __copyProps = (to, from, except, desc) => {
|
|
23
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
|
+
key = keys[i];
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
22
|
+
get: ((k) => from[k]).bind(null, key),
|
|
23
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
24
|
+
});
|
|
33
25
|
}
|
|
34
26
|
return to;
|
|
35
27
|
};
|
|
@@ -37,7 +29,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
29
|
value: mod,
|
|
38
30
|
enumerable: true
|
|
39
31
|
}) : target, mod));
|
|
40
|
-
|
|
41
32
|
//#endregion
|
|
42
33
|
let eslint_plugin_import_x = require("eslint-plugin-import-x");
|
|
43
34
|
eslint_plugin_import_x = __toESM(eslint_plugin_import_x);
|
|
@@ -54,14 +45,12 @@ let eslint_config_prettier_flat = require("eslint-config-prettier/flat");
|
|
|
54
45
|
eslint_config_prettier_flat = __toESM(eslint_config_prettier_flat);
|
|
55
46
|
let _typescript_eslint_parser = require("@typescript-eslint/parser");
|
|
56
47
|
_typescript_eslint_parser = __toESM(_typescript_eslint_parser);
|
|
57
|
-
|
|
58
48
|
//#region src/utils.ts
|
|
59
49
|
var utils_exports = /* @__PURE__ */ __exportAll({ interopDefault: () => interopDefault });
|
|
60
50
|
const interopDefault = async (m) => {
|
|
61
51
|
const resolved = await m;
|
|
62
52
|
return resolved.default ?? resolved;
|
|
63
53
|
};
|
|
64
|
-
|
|
65
54
|
//#endregion
|
|
66
55
|
//#region src/configs/ignores.ts
|
|
67
56
|
/**
|
|
@@ -107,7 +96,6 @@ const ignores = async ({ files = [], gitignore = {} } = {}) => {
|
|
|
107
96
|
]
|
|
108
97
|
}];
|
|
109
98
|
};
|
|
110
|
-
|
|
111
99
|
//#endregion
|
|
112
100
|
//#region src/rules/builtin.ts
|
|
113
101
|
/**
|
|
@@ -603,7 +591,6 @@ const builtinRules = {
|
|
|
603
591
|
"yield-star-spacing": ["error", "after"],
|
|
604
592
|
"yoda": ["error", "never"]
|
|
605
593
|
};
|
|
606
|
-
|
|
607
594
|
//#endregion
|
|
608
595
|
//#region src/rules/eslint-comments.ts
|
|
609
596
|
const eslintCommentsRules = {
|
|
@@ -612,7 +599,6 @@ const eslintCommentsRules = {
|
|
|
612
599
|
"eslint-comments/no-unlimited-disable": "error",
|
|
613
600
|
"eslint-comments/no-unused-enable": "error"
|
|
614
601
|
};
|
|
615
|
-
|
|
616
602
|
//#endregion
|
|
617
603
|
//#region src/rules/imports.ts
|
|
618
604
|
const importsRules = {
|
|
@@ -668,9 +654,11 @@ const importsRules = {
|
|
|
668
654
|
"cypress",
|
|
669
655
|
"eslint",
|
|
670
656
|
"jest",
|
|
657
|
+
"oxfmt",
|
|
671
658
|
"playwright",
|
|
672
659
|
"postcss",
|
|
673
660
|
"prettier",
|
|
661
|
+
"rolldown",
|
|
674
662
|
"rollup",
|
|
675
663
|
"stylelint",
|
|
676
664
|
"tailwind",
|
|
@@ -746,7 +734,6 @@ const importsRules = {
|
|
|
746
734
|
"import/prefer-namespace-import": "off",
|
|
747
735
|
"import/unambiguous": "off"
|
|
748
736
|
};
|
|
749
|
-
|
|
750
737
|
//#endregion
|
|
751
738
|
//#region src/rules/jsonc.ts
|
|
752
739
|
const jsoncRules = {
|
|
@@ -795,7 +782,6 @@ const jsoncRules = {
|
|
|
795
782
|
"jsonc/quotes": "off",
|
|
796
783
|
"jsonc/auto": "off"
|
|
797
784
|
};
|
|
798
|
-
|
|
799
785
|
//#endregion
|
|
800
786
|
//#region src/rules/markdown-shim.ts
|
|
801
787
|
const markdownShimRules = {
|
|
@@ -825,7 +811,6 @@ const markdownShimRules = {
|
|
|
825
811
|
"vue/no-v-html": "off",
|
|
826
812
|
"vue/require-name-property": "off"
|
|
827
813
|
};
|
|
828
|
-
|
|
829
814
|
//#endregion
|
|
830
815
|
//#region src/rules/markdown.ts
|
|
831
816
|
const markdownRules = {
|
|
@@ -850,7 +835,6 @@ const markdownRules = {
|
|
|
850
835
|
"markdown/require-alt-text": "error",
|
|
851
836
|
"markdown/table-column-count": "error"
|
|
852
837
|
};
|
|
853
|
-
|
|
854
838
|
//#endregion
|
|
855
839
|
//#region src/rules/react-hooks.ts
|
|
856
840
|
/**
|
|
@@ -889,11 +873,9 @@ const reactHooksRules = {
|
|
|
889
873
|
"react-hooks/todo": "off",
|
|
890
874
|
"react-hooks/void-use-memo": "off"
|
|
891
875
|
};
|
|
892
|
-
|
|
893
876
|
//#endregion
|
|
894
877
|
//#region src/rules/react-refresh.ts
|
|
895
878
|
const reactRefreshRules = { "react-refresh/only-export-components": ["warn", { allowConstantExport: true }] };
|
|
896
|
-
|
|
897
879
|
//#endregion
|
|
898
880
|
//#region src/rules/react.ts
|
|
899
881
|
/**
|
|
@@ -1096,7 +1078,6 @@ const reactRules = {
|
|
|
1096
1078
|
"react/style-prop-object": "error",
|
|
1097
1079
|
"react/void-dom-elements-no-children": "error"
|
|
1098
1080
|
};
|
|
1099
|
-
|
|
1100
1081
|
//#endregion
|
|
1101
1082
|
//#region src/rules/typescript-shim.ts
|
|
1102
1083
|
const typescriptShimRules = {
|
|
@@ -1170,7 +1151,6 @@ const typescriptShimRules = {
|
|
|
1170
1151
|
"space-before-function-paren": "off",
|
|
1171
1152
|
"space-infix-ops": "off"
|
|
1172
1153
|
};
|
|
1173
|
-
|
|
1174
1154
|
//#endregion
|
|
1175
1155
|
//#region src/rules/typescript.ts
|
|
1176
1156
|
/**
|
|
@@ -1410,7 +1390,6 @@ const typescriptRules = {
|
|
|
1410
1390
|
variableDeclarationIgnoreFunction: false
|
|
1411
1391
|
}]
|
|
1412
1392
|
};
|
|
1413
|
-
|
|
1414
1393
|
//#endregion
|
|
1415
1394
|
//#region src/rules/vue.ts
|
|
1416
1395
|
/**
|
|
@@ -1589,7 +1568,6 @@ const vueRules = {
|
|
|
1589
1568
|
"vue/valid-model-definition": "off",
|
|
1590
1569
|
"vue/valid-v-bind-sync": "off"
|
|
1591
1570
|
};
|
|
1592
|
-
|
|
1593
1571
|
//#endregion
|
|
1594
1572
|
//#region src/rules/index.ts
|
|
1595
1573
|
var rules_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1606,7 +1584,6 @@ var rules_exports = /* @__PURE__ */ __exportAll({
|
|
|
1606
1584
|
typescriptShimRules: () => typescriptShimRules,
|
|
1607
1585
|
vueRules: () => vueRules
|
|
1608
1586
|
});
|
|
1609
|
-
|
|
1610
1587
|
//#endregion
|
|
1611
1588
|
//#region src/configs/imports.ts
|
|
1612
1589
|
/**
|
|
@@ -1626,7 +1603,6 @@ const imports = ({ overrides, packageDir } = {}) => [{
|
|
|
1626
1603
|
...overrides
|
|
1627
1604
|
}
|
|
1628
1605
|
}];
|
|
1629
|
-
|
|
1630
1606
|
//#endregion
|
|
1631
1607
|
//#region src/configs/javascript.ts
|
|
1632
1608
|
/**
|
|
@@ -1667,7 +1643,6 @@ const javascript = ({ overrides } = {}) => [
|
|
|
1667
1643
|
rules: { "no-console": "off" }
|
|
1668
1644
|
}
|
|
1669
1645
|
];
|
|
1670
|
-
|
|
1671
1646
|
//#endregion
|
|
1672
1647
|
//#region src/configs/jsonc.ts
|
|
1673
1648
|
/**
|
|
@@ -1692,7 +1667,6 @@ const jsonc = async ({ files = [
|
|
|
1692
1667
|
}
|
|
1693
1668
|
}];
|
|
1694
1669
|
};
|
|
1695
|
-
|
|
1696
1670
|
//#endregion
|
|
1697
1671
|
//#region src/configs/markdown.ts
|
|
1698
1672
|
/**
|
|
@@ -1737,7 +1711,6 @@ const markdown = async ({ files = ["**/*.md"], overrides, overridesCodeBlocks }
|
|
|
1737
1711
|
}
|
|
1738
1712
|
];
|
|
1739
1713
|
};
|
|
1740
|
-
|
|
1741
1714
|
//#endregion
|
|
1742
1715
|
//#region src/configs/prettier.ts
|
|
1743
1716
|
/**
|
|
@@ -1747,7 +1720,6 @@ const prettier = () => [{
|
|
|
1747
1720
|
name: "meteorlxy/prettier",
|
|
1748
1721
|
rules: eslint_config_prettier_flat.default.rules
|
|
1749
1722
|
}];
|
|
1750
|
-
|
|
1751
1723
|
//#endregion
|
|
1752
1724
|
//#region src/configs/react.ts
|
|
1753
1725
|
/**
|
|
@@ -1787,7 +1759,6 @@ const react = async ({ files = ["**/*.ts", "**/*.tsx"], overrides } = {}) => {
|
|
|
1787
1759
|
] } } }
|
|
1788
1760
|
}];
|
|
1789
1761
|
};
|
|
1790
|
-
|
|
1791
1762
|
//#endregion
|
|
1792
1763
|
//#region src/configs/typescript.ts
|
|
1793
1764
|
/**
|
|
@@ -1848,7 +1819,6 @@ const typescript = ({ files = [
|
|
|
1848
1819
|
] } }
|
|
1849
1820
|
}
|
|
1850
1821
|
}];
|
|
1851
|
-
|
|
1852
1822
|
//#endregion
|
|
1853
1823
|
//#region src/configs/vue.ts
|
|
1854
1824
|
/**
|
|
@@ -1884,7 +1854,6 @@ const vue = async ({ files = ["**/*.vue"], overrides } = {}) => {
|
|
|
1884
1854
|
}
|
|
1885
1855
|
}];
|
|
1886
1856
|
};
|
|
1887
|
-
|
|
1888
1857
|
//#endregion
|
|
1889
1858
|
//#region src/configs/index.ts
|
|
1890
1859
|
var configs_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1898,7 +1867,6 @@ var configs_exports = /* @__PURE__ */ __exportAll({
|
|
|
1898
1867
|
typescript: () => typescript,
|
|
1899
1868
|
vue: () => vue
|
|
1900
1869
|
});
|
|
1901
|
-
|
|
1902
1870
|
//#endregion
|
|
1903
1871
|
//#region src/env.ts
|
|
1904
1872
|
var env_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1907,7 +1875,6 @@ var env_exports = /* @__PURE__ */ __exportAll({
|
|
|
1907
1875
|
});
|
|
1908
1876
|
const IS_CI = !!process.env.CI;
|
|
1909
1877
|
const IS_EDITOR = !IS_CI && !!(process.env.VSCODE_PID ?? process.env.VSCODE_CWD ?? process.env.JETBRAINS_IDE ?? process.env.VIM);
|
|
1910
|
-
|
|
1911
1878
|
//#endregion
|
|
1912
1879
|
//#region src/meteorlxy.ts
|
|
1913
1880
|
const meteorlxy = async ({ ignores: ignores$1 = {}, imports: imports$1 = {}, javascript: javascript$1 = {}, jsonc: jsonc$1 = true, markdown: markdown$1 = true, react: react$1 = false, typescript: typescript$1 = {}, vue: vue$1 = false } = {}, ...customConfigs) => [
|
|
@@ -1922,30 +1889,29 @@ const meteorlxy = async ({ ignores: ignores$1 = {}, imports: imports$1 = {}, jav
|
|
|
1922
1889
|
...customConfigs,
|
|
1923
1890
|
...prettier()
|
|
1924
1891
|
];
|
|
1925
|
-
|
|
1926
1892
|
//#endregion
|
|
1927
|
-
Object.defineProperty(exports,
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1893
|
+
Object.defineProperty(exports, "configs", {
|
|
1894
|
+
enumerable: true,
|
|
1895
|
+
get: function() {
|
|
1896
|
+
return configs_exports;
|
|
1897
|
+
}
|
|
1932
1898
|
});
|
|
1933
|
-
Object.defineProperty(exports,
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1899
|
+
Object.defineProperty(exports, "env", {
|
|
1900
|
+
enumerable: true,
|
|
1901
|
+
get: function() {
|
|
1902
|
+
return env_exports;
|
|
1903
|
+
}
|
|
1938
1904
|
});
|
|
1939
1905
|
exports.meteorlxy = meteorlxy;
|
|
1940
|
-
Object.defineProperty(exports,
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1906
|
+
Object.defineProperty(exports, "rules", {
|
|
1907
|
+
enumerable: true,
|
|
1908
|
+
get: function() {
|
|
1909
|
+
return rules_exports;
|
|
1910
|
+
}
|
|
1911
|
+
});
|
|
1912
|
+
Object.defineProperty(exports, "utils", {
|
|
1913
|
+
enumerable: true,
|
|
1914
|
+
get: function() {
|
|
1915
|
+
return utils_exports;
|
|
1916
|
+
}
|
|
1945
1917
|
});
|
|
1946
|
-
Object.defineProperty(exports, 'utils', {
|
|
1947
|
-
enumerable: true,
|
|
1948
|
-
get: function () {
|
|
1949
|
-
return utils_exports;
|
|
1950
|
-
}
|
|
1951
|
-
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-
|
|
1
|
+
import { t as __exportAll } from "./chunk-CfYAbeIz.mjs";
|
|
2
2
|
import importPlugin from "eslint-plugin-import-x";
|
|
3
3
|
import confusingBrowserGlobals from "confusing-browser-globals";
|
|
4
4
|
import tsPlugin from "@typescript-eslint/eslint-plugin";
|
|
@@ -7,14 +7,12 @@ import globals from "globals";
|
|
|
7
7
|
import { mergeProcessors, processorPassThrough } from "eslint-merge-processors";
|
|
8
8
|
import prettierConfig from "eslint-config-prettier/flat";
|
|
9
9
|
import tsParser from "@typescript-eslint/parser";
|
|
10
|
-
|
|
11
10
|
//#region src/utils.ts
|
|
12
11
|
var utils_exports = /* @__PURE__ */ __exportAll({ interopDefault: () => interopDefault });
|
|
13
12
|
const interopDefault = async (m) => {
|
|
14
13
|
const resolved = await m;
|
|
15
14
|
return resolved.default ?? resolved;
|
|
16
15
|
};
|
|
17
|
-
|
|
18
16
|
//#endregion
|
|
19
17
|
//#region src/configs/ignores.ts
|
|
20
18
|
/**
|
|
@@ -60,7 +58,6 @@ const ignores = async ({ files = [], gitignore = {} } = {}) => {
|
|
|
60
58
|
]
|
|
61
59
|
}];
|
|
62
60
|
};
|
|
63
|
-
|
|
64
61
|
//#endregion
|
|
65
62
|
//#region src/rules/builtin.ts
|
|
66
63
|
/**
|
|
@@ -556,7 +553,6 @@ const builtinRules = {
|
|
|
556
553
|
"yield-star-spacing": ["error", "after"],
|
|
557
554
|
"yoda": ["error", "never"]
|
|
558
555
|
};
|
|
559
|
-
|
|
560
556
|
//#endregion
|
|
561
557
|
//#region src/rules/eslint-comments.ts
|
|
562
558
|
const eslintCommentsRules = {
|
|
@@ -565,7 +561,6 @@ const eslintCommentsRules = {
|
|
|
565
561
|
"eslint-comments/no-unlimited-disable": "error",
|
|
566
562
|
"eslint-comments/no-unused-enable": "error"
|
|
567
563
|
};
|
|
568
|
-
|
|
569
564
|
//#endregion
|
|
570
565
|
//#region src/rules/imports.ts
|
|
571
566
|
const importsRules = {
|
|
@@ -621,9 +616,11 @@ const importsRules = {
|
|
|
621
616
|
"cypress",
|
|
622
617
|
"eslint",
|
|
623
618
|
"jest",
|
|
619
|
+
"oxfmt",
|
|
624
620
|
"playwright",
|
|
625
621
|
"postcss",
|
|
626
622
|
"prettier",
|
|
623
|
+
"rolldown",
|
|
627
624
|
"rollup",
|
|
628
625
|
"stylelint",
|
|
629
626
|
"tailwind",
|
|
@@ -699,7 +696,6 @@ const importsRules = {
|
|
|
699
696
|
"import/prefer-namespace-import": "off",
|
|
700
697
|
"import/unambiguous": "off"
|
|
701
698
|
};
|
|
702
|
-
|
|
703
699
|
//#endregion
|
|
704
700
|
//#region src/rules/jsonc.ts
|
|
705
701
|
const jsoncRules = {
|
|
@@ -748,7 +744,6 @@ const jsoncRules = {
|
|
|
748
744
|
"jsonc/quotes": "off",
|
|
749
745
|
"jsonc/auto": "off"
|
|
750
746
|
};
|
|
751
|
-
|
|
752
747
|
//#endregion
|
|
753
748
|
//#region src/rules/markdown-shim.ts
|
|
754
749
|
const markdownShimRules = {
|
|
@@ -778,7 +773,6 @@ const markdownShimRules = {
|
|
|
778
773
|
"vue/no-v-html": "off",
|
|
779
774
|
"vue/require-name-property": "off"
|
|
780
775
|
};
|
|
781
|
-
|
|
782
776
|
//#endregion
|
|
783
777
|
//#region src/rules/markdown.ts
|
|
784
778
|
const markdownRules = {
|
|
@@ -803,7 +797,6 @@ const markdownRules = {
|
|
|
803
797
|
"markdown/require-alt-text": "error",
|
|
804
798
|
"markdown/table-column-count": "error"
|
|
805
799
|
};
|
|
806
|
-
|
|
807
800
|
//#endregion
|
|
808
801
|
//#region src/rules/react-hooks.ts
|
|
809
802
|
/**
|
|
@@ -842,11 +835,9 @@ const reactHooksRules = {
|
|
|
842
835
|
"react-hooks/todo": "off",
|
|
843
836
|
"react-hooks/void-use-memo": "off"
|
|
844
837
|
};
|
|
845
|
-
|
|
846
838
|
//#endregion
|
|
847
839
|
//#region src/rules/react-refresh.ts
|
|
848
840
|
const reactRefreshRules = { "react-refresh/only-export-components": ["warn", { allowConstantExport: true }] };
|
|
849
|
-
|
|
850
841
|
//#endregion
|
|
851
842
|
//#region src/rules/react.ts
|
|
852
843
|
/**
|
|
@@ -1049,7 +1040,6 @@ const reactRules = {
|
|
|
1049
1040
|
"react/style-prop-object": "error",
|
|
1050
1041
|
"react/void-dom-elements-no-children": "error"
|
|
1051
1042
|
};
|
|
1052
|
-
|
|
1053
1043
|
//#endregion
|
|
1054
1044
|
//#region src/rules/typescript-shim.ts
|
|
1055
1045
|
const typescriptShimRules = {
|
|
@@ -1123,7 +1113,6 @@ const typescriptShimRules = {
|
|
|
1123
1113
|
"space-before-function-paren": "off",
|
|
1124
1114
|
"space-infix-ops": "off"
|
|
1125
1115
|
};
|
|
1126
|
-
|
|
1127
1116
|
//#endregion
|
|
1128
1117
|
//#region src/rules/typescript.ts
|
|
1129
1118
|
/**
|
|
@@ -1363,7 +1352,6 @@ const typescriptRules = {
|
|
|
1363
1352
|
variableDeclarationIgnoreFunction: false
|
|
1364
1353
|
}]
|
|
1365
1354
|
};
|
|
1366
|
-
|
|
1367
1355
|
//#endregion
|
|
1368
1356
|
//#region src/rules/vue.ts
|
|
1369
1357
|
/**
|
|
@@ -1542,7 +1530,6 @@ const vueRules = {
|
|
|
1542
1530
|
"vue/valid-model-definition": "off",
|
|
1543
1531
|
"vue/valid-v-bind-sync": "off"
|
|
1544
1532
|
};
|
|
1545
|
-
|
|
1546
1533
|
//#endregion
|
|
1547
1534
|
//#region src/rules/index.ts
|
|
1548
1535
|
var rules_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1559,7 +1546,6 @@ var rules_exports = /* @__PURE__ */ __exportAll({
|
|
|
1559
1546
|
typescriptShimRules: () => typescriptShimRules,
|
|
1560
1547
|
vueRules: () => vueRules
|
|
1561
1548
|
});
|
|
1562
|
-
|
|
1563
1549
|
//#endregion
|
|
1564
1550
|
//#region src/configs/imports.ts
|
|
1565
1551
|
/**
|
|
@@ -1579,7 +1565,6 @@ const imports = ({ overrides, packageDir } = {}) => [{
|
|
|
1579
1565
|
...overrides
|
|
1580
1566
|
}
|
|
1581
1567
|
}];
|
|
1582
|
-
|
|
1583
1568
|
//#endregion
|
|
1584
1569
|
//#region src/configs/javascript.ts
|
|
1585
1570
|
/**
|
|
@@ -1620,7 +1605,6 @@ const javascript = ({ overrides } = {}) => [
|
|
|
1620
1605
|
rules: { "no-console": "off" }
|
|
1621
1606
|
}
|
|
1622
1607
|
];
|
|
1623
|
-
|
|
1624
1608
|
//#endregion
|
|
1625
1609
|
//#region src/configs/jsonc.ts
|
|
1626
1610
|
/**
|
|
@@ -1645,7 +1629,6 @@ const jsonc = async ({ files = [
|
|
|
1645
1629
|
}
|
|
1646
1630
|
}];
|
|
1647
1631
|
};
|
|
1648
|
-
|
|
1649
1632
|
//#endregion
|
|
1650
1633
|
//#region src/configs/markdown.ts
|
|
1651
1634
|
/**
|
|
@@ -1690,7 +1673,6 @@ const markdown = async ({ files = ["**/*.md"], overrides, overridesCodeBlocks }
|
|
|
1690
1673
|
}
|
|
1691
1674
|
];
|
|
1692
1675
|
};
|
|
1693
|
-
|
|
1694
1676
|
//#endregion
|
|
1695
1677
|
//#region src/configs/prettier.ts
|
|
1696
1678
|
/**
|
|
@@ -1700,7 +1682,6 @@ const prettier = () => [{
|
|
|
1700
1682
|
name: "meteorlxy/prettier",
|
|
1701
1683
|
rules: prettierConfig.rules
|
|
1702
1684
|
}];
|
|
1703
|
-
|
|
1704
1685
|
//#endregion
|
|
1705
1686
|
//#region src/configs/react.ts
|
|
1706
1687
|
/**
|
|
@@ -1740,7 +1721,6 @@ const react = async ({ files = ["**/*.ts", "**/*.tsx"], overrides } = {}) => {
|
|
|
1740
1721
|
] } } }
|
|
1741
1722
|
}];
|
|
1742
1723
|
};
|
|
1743
|
-
|
|
1744
1724
|
//#endregion
|
|
1745
1725
|
//#region src/configs/typescript.ts
|
|
1746
1726
|
/**
|
|
@@ -1801,7 +1781,6 @@ const typescript = ({ files = [
|
|
|
1801
1781
|
] } }
|
|
1802
1782
|
}
|
|
1803
1783
|
}];
|
|
1804
|
-
|
|
1805
1784
|
//#endregion
|
|
1806
1785
|
//#region src/configs/vue.ts
|
|
1807
1786
|
/**
|
|
@@ -1837,7 +1816,6 @@ const vue = async ({ files = ["**/*.vue"], overrides } = {}) => {
|
|
|
1837
1816
|
}
|
|
1838
1817
|
}];
|
|
1839
1818
|
};
|
|
1840
|
-
|
|
1841
1819
|
//#endregion
|
|
1842
1820
|
//#region src/configs/index.ts
|
|
1843
1821
|
var configs_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1851,7 +1829,6 @@ var configs_exports = /* @__PURE__ */ __exportAll({
|
|
|
1851
1829
|
typescript: () => typescript,
|
|
1852
1830
|
vue: () => vue
|
|
1853
1831
|
});
|
|
1854
|
-
|
|
1855
1832
|
//#endregion
|
|
1856
1833
|
//#region src/env.ts
|
|
1857
1834
|
var env_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1860,7 +1837,6 @@ var env_exports = /* @__PURE__ */ __exportAll({
|
|
|
1860
1837
|
});
|
|
1861
1838
|
const IS_CI = !!process.env.CI;
|
|
1862
1839
|
const IS_EDITOR = !IS_CI && !!(process.env.VSCODE_PID ?? process.env.VSCODE_CWD ?? process.env.JETBRAINS_IDE ?? process.env.VIM);
|
|
1863
|
-
|
|
1864
1840
|
//#endregion
|
|
1865
1841
|
//#region src/meteorlxy.ts
|
|
1866
1842
|
const meteorlxy = async ({ ignores: ignores$1 = {}, imports: imports$1 = {}, javascript: javascript$1 = {}, jsonc: jsonc$1 = true, markdown: markdown$1 = true, react: react$1 = false, typescript: typescript$1 = {}, vue: vue$1 = false } = {}, ...customConfigs) => [
|
|
@@ -1875,6 +1851,5 @@ const meteorlxy = async ({ ignores: ignores$1 = {}, imports: imports$1 = {}, jav
|
|
|
1875
1851
|
...customConfigs,
|
|
1876
1852
|
...prettier()
|
|
1877
1853
|
];
|
|
1878
|
-
|
|
1879
1854
|
//#endregion
|
|
1880
|
-
export { configs_exports as configs, env_exports as env, meteorlxy, rules_exports as rules, utils_exports as utils };
|
|
1855
|
+
export { configs_exports as configs, env_exports as env, meteorlxy, rules_exports as rules, utils_exports as utils };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meteorlxy/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.14.0",
|
|
4
4
|
"description": "meteorlxy eslint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -31,37 +31,37 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@eslint/core": "^0.17.0",
|
|
33
33
|
"@eslint/markdown": "^7.5.1",
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
35
|
-
"@typescript-eslint/parser": "^8.
|
|
36
|
-
"@typescript-eslint/utils": "^8.
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
35
|
+
"@typescript-eslint/parser": "^8.57.0",
|
|
36
|
+
"@typescript-eslint/utils": "^8.57.0",
|
|
37
37
|
"confusing-browser-globals": "^1.0.11",
|
|
38
38
|
"eslint-config-flat-gitignore": "^2.2.1",
|
|
39
39
|
"eslint-config-prettier": "^10.1.8",
|
|
40
40
|
"eslint-merge-processors": "^2.0.0",
|
|
41
41
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
42
|
-
"eslint-plugin-import-x": "^4.16.
|
|
43
|
-
"eslint-plugin-jsonc": "^3.1.
|
|
44
|
-
"globals": "^17.
|
|
42
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
43
|
+
"eslint-plugin-jsonc": "^3.1.2",
|
|
44
|
+
"globals": "^17.4.0",
|
|
45
45
|
"jsonc-eslint-parser": "^3.1.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
49
49
|
"@types/eslint": "^9.6.1",
|
|
50
|
-
"eslint": "^9.39.
|
|
50
|
+
"eslint": "^9.39.4",
|
|
51
51
|
"eslint-plugin-react": "^7.37.5",
|
|
52
52
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
53
53
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
54
54
|
"eslint-plugin-vue": "^10.8.0",
|
|
55
|
-
"tsdown": "^0.
|
|
55
|
+
"tsdown": "^0.21.2",
|
|
56
56
|
"vue-eslint-parser": "^10.4.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"eslint": "^9.39.
|
|
59
|
+
"eslint": "^9.39.4",
|
|
60
60
|
"eslint-plugin-react": "^7.37.5",
|
|
61
|
-
"eslint-plugin-react-hooks": "^
|
|
62
|
-
"eslint-plugin-react-refresh": "^0.
|
|
63
|
-
"eslint-plugin-vue": "^10.
|
|
64
|
-
"vue-eslint-parser": "^10.
|
|
61
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
62
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
63
|
+
"eslint-plugin-vue": "^10.8.0",
|
|
64
|
+
"vue-eslint-parser": "^10.4.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"eslint-plugin-react": {
|
package/dist/chunk-DQk6qfdC.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __exportAll = (all, no_symbols) => {
|
|
4
|
-
let target = {};
|
|
5
|
-
for (var name in all) {
|
|
6
|
-
__defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
if (!no_symbols) {
|
|
12
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
-
}
|
|
14
|
-
return target;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { __exportAll as t };
|