@storm-software/eslint 0.170.186 → 0.170.187
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 +183 -311
- package/dist/index.d.cts +52 -86
- package/dist/index.d.mts +52 -86
- package/dist/index.mjs +184 -314
- package/package.json +25 -22
package/dist/index.mjs
CHANGED
|
@@ -39,7 +39,7 @@ import markdownlint from "eslint-plugin-markdownlint";
|
|
|
39
39
|
import markdownlintParser from "eslint-plugin-markdownlint/parser";
|
|
40
40
|
import config from "eslint-plugin-prettier/recommended";
|
|
41
41
|
import { configs } from "eslint-plugin-regexp";
|
|
42
|
-
|
|
42
|
+
// \0rolldown/runtime.js
|
|
43
43
|
var __create = Object.create;
|
|
44
44
|
var __defProp = Object.defineProperty;
|
|
45
45
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -62,8 +62,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
62
62
|
enumerable: true
|
|
63
63
|
}) : target, mod));
|
|
64
64
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
65
|
-
|
|
66
|
-
//#region src/utils/helpers.ts
|
|
65
|
+
// src/utils/helpers.ts
|
|
67
66
|
const scopeUrl = fileURLToPath(new URL(".", import.meta.url));
|
|
68
67
|
const isCwdInScope = isPackageExists("@storm-software/eslint");
|
|
69
68
|
const parserPlain = {
|
|
@@ -130,8 +129,7 @@ function renameRules$1(rules, map) {
|
|
|
130
129
|
return [key, value];
|
|
131
130
|
}));
|
|
132
131
|
}
|
|
133
|
-
|
|
134
|
-
//#region src/configs/astro.ts
|
|
132
|
+
// src/configs/astro.ts
|
|
135
133
|
async function astro(options = {}) {
|
|
136
134
|
const { files = [GLOB_ASTRO], overrides = {}, stylistic = true } = options;
|
|
137
135
|
const [pluginAstro, parserAstro, parserTs] = await Promise.all([
|
|
@@ -176,8 +174,7 @@ async function astro(options = {}) {
|
|
|
176
174
|
}
|
|
177
175
|
}];
|
|
178
176
|
}
|
|
179
|
-
|
|
180
|
-
//#region src/configs/banner.ts
|
|
177
|
+
// src/configs/banner.ts
|
|
181
178
|
async function banner(options = {}) {
|
|
182
179
|
const { overrides = {}, ...rest } = options;
|
|
183
180
|
const workspaceConfig = await tryGetWorkspaceConfig();
|
|
@@ -202,8 +199,7 @@ async function banner(options = {}) {
|
|
|
202
199
|
}
|
|
203
200
|
}];
|
|
204
201
|
}
|
|
205
|
-
|
|
206
|
-
//#region src/utils/correct-paths.ts
|
|
202
|
+
// src/utils/correct-paths.ts
|
|
207
203
|
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
208
204
|
function normalizeWindowsPath(input = "") {
|
|
209
205
|
if (!input) return input;
|
|
@@ -334,8 +330,7 @@ const relative$1 = function(from, to) {
|
|
|
334
330
|
}
|
|
335
331
|
return [..._from.map(() => ".."), ..._to].join("/");
|
|
336
332
|
};
|
|
337
|
-
|
|
338
|
-
//#region src/utils/find-workspace-root.ts
|
|
333
|
+
// src/utils/find-workspace-root.ts
|
|
339
334
|
const MAX_PATH_SEARCH_DEPTH = 30;
|
|
340
335
|
let depth = 0;
|
|
341
336
|
/**
|
|
@@ -410,8 +405,7 @@ function findWorkspaceRoot(pathInsideMonorepo) {
|
|
|
410
405
|
if (!result) throw new Error(`Cannot find workspace root upwards from known path. Files search list includes: \n${rootFiles.join("\n")}\nPath: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
|
|
411
406
|
return result;
|
|
412
407
|
}
|
|
413
|
-
|
|
414
|
-
//#region src/configs/bun.ts
|
|
408
|
+
// src/configs/bun.ts
|
|
415
409
|
async function bun(options = {}) {
|
|
416
410
|
const { overrides = {}, ignore = ["typescript"], ignoreWorkspaceDeps = true } = options;
|
|
417
411
|
const workspaceRoot = findWorkspaceRoot();
|
|
@@ -466,8 +460,7 @@ async function bun(options = {}) {
|
|
|
466
460
|
}
|
|
467
461
|
];
|
|
468
462
|
}
|
|
469
|
-
|
|
470
|
-
//#region src/configs/cspell.ts
|
|
463
|
+
// src/configs/cspell.ts
|
|
471
464
|
/**
|
|
472
465
|
* Config for CSpell spell checking
|
|
473
466
|
*/
|
|
@@ -488,8 +481,7 @@ async function cspell(options = {}) {
|
|
|
488
481
|
}
|
|
489
482
|
}];
|
|
490
483
|
}
|
|
491
|
-
|
|
492
|
-
//#region src/configs/disables.ts
|
|
484
|
+
// src/configs/disables.ts
|
|
493
485
|
async function disables() {
|
|
494
486
|
return [
|
|
495
487
|
{
|
|
@@ -530,8 +522,7 @@ async function disables() {
|
|
|
530
522
|
}
|
|
531
523
|
];
|
|
532
524
|
}
|
|
533
|
-
|
|
534
|
-
//#region src/configs/stylistic.ts
|
|
525
|
+
// src/configs/stylistic.ts
|
|
535
526
|
const StylisticConfigDefaults = {
|
|
536
527
|
indent: 2,
|
|
537
528
|
jsx: true,
|
|
@@ -587,8 +578,7 @@ async function stylistic(options = {}) {
|
|
|
587
578
|
}
|
|
588
579
|
}];
|
|
589
580
|
}
|
|
590
|
-
|
|
591
|
-
//#region src/configs/formatters.ts
|
|
581
|
+
// src/configs/formatters.ts
|
|
592
582
|
function mergePrettierOptions(options, overrides = {}) {
|
|
593
583
|
return {
|
|
594
584
|
...options,
|
|
@@ -740,8 +730,7 @@ async function formatters(options = {}, stylistic = {}) {
|
|
|
740
730
|
});
|
|
741
731
|
return configs;
|
|
742
732
|
}
|
|
743
|
-
|
|
744
|
-
//#region src/configs/graphql.ts
|
|
733
|
+
// src/configs/graphql.ts
|
|
745
734
|
async function graphql(options = {}) {
|
|
746
735
|
const { relay = true, operations = true, schema = true, overrides = {} } = options;
|
|
747
736
|
await ensurePackages(["@graphql-eslint/eslint-plugin", "eslint-plugin-relay"]);
|
|
@@ -897,19 +886,16 @@ async function graphql(options = {}) {
|
|
|
897
886
|
} : {}
|
|
898
887
|
];
|
|
899
888
|
}
|
|
900
|
-
|
|
901
|
-
//#region src/configs/ignores.ts
|
|
889
|
+
// src/configs/ignores.ts
|
|
902
890
|
async function ignores(userIgnores = []) {
|
|
903
891
|
return [{
|
|
904
892
|
ignores: [...GLOB_EXCLUDE, ...userIgnores],
|
|
905
893
|
name: "storm/ignores"
|
|
906
894
|
}];
|
|
907
895
|
}
|
|
908
|
-
|
|
909
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/electron.js
|
|
896
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/electron.js
|
|
910
897
|
var electron_default$1 = { settings: { "import-x/core-modules": ["electron"] } };
|
|
911
|
-
|
|
912
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/errors.js
|
|
898
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/errors.js
|
|
913
899
|
var errors_default$1 = {
|
|
914
900
|
plugins: ["import-x"],
|
|
915
901
|
rules: {
|
|
@@ -920,11 +906,9 @@ var errors_default$1 = {
|
|
|
920
906
|
"import-x/export": 2
|
|
921
907
|
}
|
|
922
908
|
};
|
|
923
|
-
|
|
924
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/flat/electron.js
|
|
909
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/flat/electron.js
|
|
925
910
|
var electron_default = { settings: { "import-x/core-modules": ["electron"] } };
|
|
926
|
-
|
|
927
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/flat/errors.js
|
|
911
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/flat/errors.js
|
|
928
912
|
var errors_default = { rules: {
|
|
929
913
|
"import-x/no-unresolved": 2,
|
|
930
914
|
"import-x/named": 2,
|
|
@@ -932,16 +916,14 @@ var errors_default = { rules: {
|
|
|
932
916
|
"import-x/default": 2,
|
|
933
917
|
"import-x/export": 2
|
|
934
918
|
} };
|
|
935
|
-
|
|
936
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/flat/react-native.js
|
|
919
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/flat/react-native.js
|
|
937
920
|
var react_native_default$1 = { settings: { "import-x/resolver": { node: { extensions: [
|
|
938
921
|
".js",
|
|
939
922
|
".web.js",
|
|
940
923
|
".ios.js",
|
|
941
924
|
".android.js"
|
|
942
925
|
] } } } };
|
|
943
|
-
|
|
944
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/flat/react.js
|
|
926
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/flat/react.js
|
|
945
927
|
var react_default$1 = {
|
|
946
928
|
settings: { "import-x/extensions": [
|
|
947
929
|
".js",
|
|
@@ -951,8 +933,7 @@ var react_default$1 = {
|
|
|
951
933
|
] },
|
|
952
934
|
languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } }
|
|
953
935
|
};
|
|
954
|
-
|
|
955
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/flat/recommended.js
|
|
936
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/flat/recommended.js
|
|
956
937
|
var recommended_default$1 = { rules: {
|
|
957
938
|
"import-x/no-unresolved": "error",
|
|
958
939
|
"import-x/named": "error",
|
|
@@ -963,11 +944,9 @@ var recommended_default$1 = { rules: {
|
|
|
963
944
|
"import-x/no-named-as-default-member": "warn",
|
|
964
945
|
"import-x/no-duplicates": "warn"
|
|
965
946
|
} };
|
|
966
|
-
|
|
967
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/flat/stage-0.js
|
|
947
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/flat/stage-0.js
|
|
968
948
|
var stage_0_default$1 = { rules: { "import-x/no-deprecated": 1 } };
|
|
969
|
-
|
|
970
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/flat/typescript.js
|
|
949
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/flat/typescript.js
|
|
971
950
|
const typeScriptExtensions$1 = [
|
|
972
951
|
".ts",
|
|
973
952
|
".tsx",
|
|
@@ -989,30 +968,26 @@ var typescript_default$1 = {
|
|
|
989
968
|
},
|
|
990
969
|
rules: { "import-x/named": "off" }
|
|
991
970
|
};
|
|
992
|
-
|
|
993
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/flat/warnings.js
|
|
971
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/flat/warnings.js
|
|
994
972
|
var warnings_default$1 = { rules: {
|
|
995
973
|
"import-x/no-named-as-default": 1,
|
|
996
974
|
"import-x/no-named-as-default-member": 1,
|
|
997
975
|
"import-x/no-rename-default": 1,
|
|
998
976
|
"import-x/no-duplicates": 1
|
|
999
977
|
} };
|
|
1000
|
-
|
|
1001
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/react-native.js
|
|
978
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/react-native.js
|
|
1002
979
|
var react_native_default = { settings: { "import-x/resolver": { node: { extensions: [
|
|
1003
980
|
".js",
|
|
1004
981
|
".web.js",
|
|
1005
982
|
".ios.js",
|
|
1006
983
|
".android.js"
|
|
1007
984
|
] } } } };
|
|
1008
|
-
|
|
1009
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/react.js
|
|
985
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/react.js
|
|
1010
986
|
var react_default = {
|
|
1011
987
|
settings: { "import-x/extensions": [".js", ".jsx"] },
|
|
1012
988
|
parserOptions: { ecmaFeatures: { jsx: true } }
|
|
1013
989
|
};
|
|
1014
|
-
|
|
1015
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/recommended.js
|
|
990
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/recommended.js
|
|
1016
991
|
var recommended_default = {
|
|
1017
992
|
plugins: ["import-x"],
|
|
1018
993
|
rules: {
|
|
@@ -1030,14 +1005,12 @@ var recommended_default = {
|
|
|
1030
1005
|
ecmaVersion: 2018
|
|
1031
1006
|
}
|
|
1032
1007
|
};
|
|
1033
|
-
|
|
1034
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/stage-0.js
|
|
1008
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/stage-0.js
|
|
1035
1009
|
var stage_0_default = {
|
|
1036
1010
|
plugins: ["import-x"],
|
|
1037
1011
|
rules: { "import-x/no-deprecated": 1 }
|
|
1038
1012
|
};
|
|
1039
|
-
|
|
1040
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/typescript.js
|
|
1013
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/typescript.js
|
|
1041
1014
|
const typeScriptExtensions = [
|
|
1042
1015
|
".ts",
|
|
1043
1016
|
".tsx",
|
|
@@ -1059,8 +1032,7 @@ var typescript_default = {
|
|
|
1059
1032
|
},
|
|
1060
1033
|
rules: { "import-x/named": "off" }
|
|
1061
1034
|
};
|
|
1062
|
-
|
|
1063
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/config/warnings.js
|
|
1035
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/config/warnings.js
|
|
1064
1036
|
var warnings_default = {
|
|
1065
1037
|
plugins: ["import-x"],
|
|
1066
1038
|
rules: {
|
|
@@ -1070,19 +1042,16 @@ var warnings_default = {
|
|
|
1070
1042
|
"import-x/no-duplicates": 1
|
|
1071
1043
|
}
|
|
1072
1044
|
};
|
|
1073
|
-
|
|
1074
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/require.js
|
|
1045
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/require.js
|
|
1075
1046
|
const importMetaUrl$1 = import.meta.url;
|
|
1076
1047
|
const cjsRequire = importMetaUrl$1 ? createRequire(importMetaUrl$1) : __require;
|
|
1077
|
-
|
|
1078
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/meta.js
|
|
1048
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/meta.js
|
|
1079
1049
|
const { name, version } = cjsRequire("../package.json");
|
|
1080
1050
|
const meta = {
|
|
1081
1051
|
name,
|
|
1082
1052
|
version
|
|
1083
1053
|
};
|
|
1084
|
-
|
|
1085
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/node-resolver.js
|
|
1054
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/node-resolver.js
|
|
1086
1055
|
function createNodeResolver({ extensions = [
|
|
1087
1056
|
".mjs",
|
|
1088
1057
|
".cjs",
|
|
@@ -1122,8 +1091,7 @@ function createNodeResolver({ extensions = [
|
|
|
1122
1091
|
}
|
|
1123
1092
|
};
|
|
1124
1093
|
}
|
|
1125
|
-
|
|
1126
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/deep-merge.js
|
|
1094
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/deep-merge.js
|
|
1127
1095
|
function isObjectNotArray(obj) {
|
|
1128
1096
|
return typeof obj === "object" && obj != null && !Array.isArray(obj);
|
|
1129
1097
|
}
|
|
@@ -1141,8 +1109,7 @@ function deepMerge(first = {}, second = {}) {
|
|
|
1141
1109
|
return [key, value];
|
|
1142
1110
|
}));
|
|
1143
1111
|
}
|
|
1144
|
-
|
|
1145
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/apply-default.js
|
|
1112
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/apply-default.js
|
|
1146
1113
|
function applyDefault(defaultOptions, userOptions) {
|
|
1147
1114
|
const options = structuredClone(defaultOptions ?? []);
|
|
1148
1115
|
if (userOptions == null) return options;
|
|
@@ -1152,15 +1119,12 @@ function applyDefault(defaultOptions, userOptions) {
|
|
|
1152
1119
|
}
|
|
1153
1120
|
return options;
|
|
1154
1121
|
}
|
|
1155
|
-
|
|
1156
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/arraify.js
|
|
1122
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/arraify.js
|
|
1157
1123
|
const arraify = (value) => value ? Array.isArray(value) ? value : [value] : void 0;
|
|
1158
|
-
|
|
1159
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/docs-url.js
|
|
1124
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/docs-url.js
|
|
1160
1125
|
const repoUrl = "https://github.com/un-ts/eslint-plugin-import-x";
|
|
1161
1126
|
const docsUrl = (ruleName, commitish = `v${version}`) => `${repoUrl}/blob/${commitish}/docs/rules/${ruleName}.md`;
|
|
1162
|
-
|
|
1163
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/create-rule.js
|
|
1127
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/create-rule.js
|
|
1164
1128
|
function RuleCreator(urlCreator) {
|
|
1165
1129
|
return function createNamedRule({ meta, name, ...rule }) {
|
|
1166
1130
|
return createRule_({
|
|
@@ -1185,13 +1149,11 @@ function createRule_({ create, defaultOptions, meta }) {
|
|
|
1185
1149
|
};
|
|
1186
1150
|
}
|
|
1187
1151
|
const createRule$1 = RuleCreator(docsUrl);
|
|
1188
|
-
|
|
1189
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/declared-scope.js
|
|
1152
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/declared-scope.js
|
|
1190
1153
|
function declaredScope(context, node, name) {
|
|
1191
1154
|
return context.sourceCode.getScope(node).references.find((x) => x.identifier.name === name)?.resolved?.scope.type;
|
|
1192
1155
|
}
|
|
1193
|
-
|
|
1194
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/get-value.js
|
|
1156
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/get-value.js
|
|
1195
1157
|
const getValue = (node) => {
|
|
1196
1158
|
switch (node.type) {
|
|
1197
1159
|
case TSESTree.AST_NODE_TYPES.Identifier: return node.name;
|
|
@@ -1199,8 +1161,7 @@ const getValue = (node) => {
|
|
|
1199
1161
|
default: throw new Error(`Unsupported node type: ${node.type}`);
|
|
1200
1162
|
}
|
|
1201
1163
|
};
|
|
1202
|
-
|
|
1203
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/ignore.js
|
|
1164
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/ignore.js
|
|
1204
1165
|
const log$5 = debug("eslint-plugin-import-x:utils:ignore");
|
|
1205
1166
|
let cachedSet;
|
|
1206
1167
|
let lastSettings;
|
|
@@ -1239,8 +1200,7 @@ function ignore(filepath, context, skipExtensionCheck = false) {
|
|
|
1239
1200
|
function hasValidExtension(filepath, context) {
|
|
1240
1201
|
return validExtensions(context).has(path.extname(filepath));
|
|
1241
1202
|
}
|
|
1242
|
-
|
|
1243
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/lazy-value.js
|
|
1203
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/lazy-value.js
|
|
1244
1204
|
const lazy = (cb) => {
|
|
1245
1205
|
let isCalled = false;
|
|
1246
1206
|
let result;
|
|
@@ -1272,8 +1232,7 @@ function defineLazyProperty(object, propertyName, valueGetter) {
|
|
|
1272
1232
|
});
|
|
1273
1233
|
return object;
|
|
1274
1234
|
}
|
|
1275
|
-
|
|
1276
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/module-require.js
|
|
1235
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/module-require.js
|
|
1277
1236
|
function createModule(filename) {
|
|
1278
1237
|
const mod = new Module(filename);
|
|
1279
1238
|
mod.filename = filename;
|
|
@@ -1293,8 +1252,7 @@ function moduleRequire(p, sourceFile) {
|
|
|
1293
1252
|
} catch {}
|
|
1294
1253
|
return cjsRequire(p);
|
|
1295
1254
|
}
|
|
1296
|
-
|
|
1297
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/parse.js
|
|
1255
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/parse.js
|
|
1298
1256
|
function withoutProjectParserOptions(opts) {
|
|
1299
1257
|
const { EXPERIMENTAL_useProjectService, project, projectService, ...rest } = opts;
|
|
1300
1258
|
return rest;
|
|
@@ -1372,12 +1330,10 @@ function getParserOrPath(path$2, context) {
|
|
|
1372
1330
|
if (parser && typeof parser !== "string" && ("parse" in parser && typeof parser.parse === "function" || "parseForESLint" in parser && typeof parser.parseForESLint === "function")) return parser;
|
|
1373
1331
|
return null;
|
|
1374
1332
|
}
|
|
1375
|
-
|
|
1376
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@typescript+native-preview@7.0.0-dev.20250908.1_@volar+typescript@2.4.28_c000229d29069ca3eb3a13aba4daaa6e/node_modules/tsdown/esm-shims.js
|
|
1333
|
+
// ../../node_modules/.pnpm/tsdown@0.22.14_@typescript+native-preview@7.0.0-dev.20250908.1_@volar+typescript@2.4.28_c000229d29069ca3eb3a13aba4daaa6e/node_modules/tsdown/esm-shims.js
|
|
1377
1334
|
const getFilename = () => fileURLToPath(import.meta.url);
|
|
1378
1335
|
const __filename = /* @__PURE__ */ getFilename();
|
|
1379
|
-
|
|
1380
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/pkg-up.js
|
|
1336
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/pkg-up.js
|
|
1381
1337
|
function findUp(filename, cwd) {
|
|
1382
1338
|
let dir = path.resolve(cwd || "");
|
|
1383
1339
|
const root = path.parse(dir).root;
|
|
@@ -1392,8 +1348,7 @@ function findUp(filename, cwd) {
|
|
|
1392
1348
|
function pkgUp(opts) {
|
|
1393
1349
|
return findUp("package.json", opts && opts.cwd);
|
|
1394
1350
|
}
|
|
1395
|
-
|
|
1396
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/read-pkg-up.js
|
|
1351
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/read-pkg-up.js
|
|
1397
1352
|
function stripBOM(str) {
|
|
1398
1353
|
return str.replace(/^\uFEFF/, "");
|
|
1399
1354
|
}
|
|
@@ -1409,8 +1364,7 @@ function readPkgUp(opts) {
|
|
|
1409
1364
|
return {};
|
|
1410
1365
|
}
|
|
1411
1366
|
}
|
|
1412
|
-
|
|
1413
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/package-path.js
|
|
1367
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/package-path.js
|
|
1414
1368
|
function getContextPackagePath(context) {
|
|
1415
1369
|
return getFilePackagePath(context.physicalFilename);
|
|
1416
1370
|
}
|
|
@@ -1422,8 +1376,7 @@ function getFilePackageName(filename) {
|
|
|
1422
1376
|
if (pkg) return pkg.name || getFilePackageName(path.resolve(pkgPath, "../.."));
|
|
1423
1377
|
return null;
|
|
1424
1378
|
}
|
|
1425
|
-
|
|
1426
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/import-type.js
|
|
1379
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/import-type.js
|
|
1427
1380
|
function baseModule(name) {
|
|
1428
1381
|
if (isScoped(name)) {
|
|
1429
1382
|
const [scope, pkg] = name.split("/");
|
|
@@ -1507,14 +1460,12 @@ function typeTest(name, context, path) {
|
|
|
1507
1460
|
function importType(name, context) {
|
|
1508
1461
|
return typeTest(name, context, typeof name === "string" ? resolve(name, context) : null);
|
|
1509
1462
|
}
|
|
1510
|
-
|
|
1511
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/pkg-dir.js
|
|
1463
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/pkg-dir.js
|
|
1512
1464
|
function pkgDir(cwd) {
|
|
1513
1465
|
const fp = pkgUp({ cwd });
|
|
1514
1466
|
return fp ? path.dirname(fp) : null;
|
|
1515
1467
|
}
|
|
1516
|
-
|
|
1517
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/legacy-resolver-settings.js
|
|
1468
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/legacy-resolver-settings.js
|
|
1518
1469
|
function resolveWithLegacyResolver(resolver, config, modulePath, sourceFile) {
|
|
1519
1470
|
if (resolver.interfaceVersion === 2) return resolver.resolve(modulePath, sourceFile, config);
|
|
1520
1471
|
try {
|
|
@@ -1613,8 +1564,7 @@ function tryRequire(target, sourceFile) {
|
|
|
1613
1564
|
function getBaseDir(sourceFile) {
|
|
1614
1565
|
return pkgDir(sourceFile) || process.cwd();
|
|
1615
1566
|
}
|
|
1616
|
-
|
|
1617
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/module-cache.js
|
|
1567
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/module-cache.js
|
|
1618
1568
|
const log$3 = debug("eslint-plugin-import-x:utils:ModuleCache");
|
|
1619
1569
|
var ModuleCache = class {
|
|
1620
1570
|
constructor(map = /* @__PURE__ */ new Map()) {
|
|
@@ -1643,8 +1593,7 @@ var ModuleCache = class {
|
|
|
1643
1593
|
return cacheSettings;
|
|
1644
1594
|
}
|
|
1645
1595
|
};
|
|
1646
|
-
|
|
1647
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/resolve.js
|
|
1596
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/resolve.js
|
|
1648
1597
|
const importMetaUrl = import.meta.url;
|
|
1649
1598
|
const _filename = importMetaUrl ? fileURLToPath(importMetaUrl) : __filename;
|
|
1650
1599
|
const _dirname = path.dirname(_filename);
|
|
@@ -1842,8 +1791,7 @@ function importXResolverCompat(resolver, resolverOptions = {}) {
|
|
|
1842
1791
|
}
|
|
1843
1792
|
};
|
|
1844
1793
|
}
|
|
1845
|
-
|
|
1846
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/unambiguous.js
|
|
1794
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/unambiguous.js
|
|
1847
1795
|
const pattern = /(^|;)\s*(export|import)((\s+\w)|(\s*[*={]))|import\(/m;
|
|
1848
1796
|
function isMaybeUnambiguousModule(content) {
|
|
1849
1797
|
return pattern.test(content);
|
|
@@ -1852,8 +1800,7 @@ const unambiguousNodeType = /^(?:(?:Exp|Imp)ort.*Declaration|TSExportAssignment)
|
|
|
1852
1800
|
function isUnambiguousModule(ast) {
|
|
1853
1801
|
return ast.body && ast.body.some((node) => unambiguousNodeType.test(node.type));
|
|
1854
1802
|
}
|
|
1855
|
-
|
|
1856
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/visit.js
|
|
1803
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/visit.js
|
|
1857
1804
|
function visit(node, keys, visitorSpec) {
|
|
1858
1805
|
if (!node || !keys) return;
|
|
1859
1806
|
const type = node.type;
|
|
@@ -1868,8 +1815,7 @@ function visit(node, keys, visitorSpec) {
|
|
|
1868
1815
|
const exit = visitorSpec[`${type}:Exit`];
|
|
1869
1816
|
if (typeof exit === "function") exit(node);
|
|
1870
1817
|
}
|
|
1871
|
-
|
|
1872
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/export-map.js
|
|
1818
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/export-map.js
|
|
1873
1819
|
const log$2 = debug("eslint-plugin-import-x:ExportMap");
|
|
1874
1820
|
const exportCache = /* @__PURE__ */ new Map();
|
|
1875
1821
|
const declTypes = /* @__PURE__ */ new Set([
|
|
@@ -2410,15 +2356,13 @@ function makeContextCacheKey(context) {
|
|
|
2410
2356
|
hash += "\0" + stableHash(parserPath ?? languageOptions?.parser?.meta ?? languageOptions?.parser);
|
|
2411
2357
|
return hash;
|
|
2412
2358
|
}
|
|
2413
|
-
|
|
2414
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/import-declaration.js
|
|
2359
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/import-declaration.js
|
|
2415
2360
|
const importDeclaration = (context, node) => {
|
|
2416
2361
|
if (node.parent && node.parent.type === AST_NODE_TYPES.ImportDeclaration) return node.parent;
|
|
2417
2362
|
const ancestors = context.sourceCode.getAncestors(node);
|
|
2418
2363
|
return ancestors[ancestors.length - 1];
|
|
2419
2364
|
};
|
|
2420
|
-
|
|
2421
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/module-visitor.js
|
|
2365
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/module-visitor.js
|
|
2422
2366
|
function moduleVisitor(visitor, options) {
|
|
2423
2367
|
const ignore = options?.ignore;
|
|
2424
2368
|
const amd = !!options?.amd;
|
|
@@ -2508,8 +2452,7 @@ function makeOptionsSchema(additionalProperties) {
|
|
|
2508
2452
|
return base;
|
|
2509
2453
|
}
|
|
2510
2454
|
makeOptionsSchema();
|
|
2511
|
-
|
|
2512
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/npm-client.js
|
|
2455
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/npm-client.js
|
|
2513
2456
|
const NPM = "npm";
|
|
2514
2457
|
const NPM_CLIENTS = /* @__PURE__ */ new Set([
|
|
2515
2458
|
NPM,
|
|
@@ -2526,8 +2469,7 @@ const getNpmClient = () => {
|
|
|
2526
2469
|
return npmClient;
|
|
2527
2470
|
};
|
|
2528
2471
|
const getNpmInstallCommand = (packageName) => `${getNpmClient()} ${npmClient === NPM ? "i" : "add"} ${npmClient === "deno" ? `${NPM}:` : ""}${packageName}`;
|
|
2529
|
-
|
|
2530
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/parse-path.js
|
|
2472
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/parse-path.js
|
|
2531
2473
|
const parsePath = (path) => {
|
|
2532
2474
|
const hashIndex = path.indexOf("#");
|
|
2533
2475
|
const queryIndex = path.indexOf("?");
|
|
@@ -2542,8 +2484,7 @@ const parsePath = (path) => {
|
|
|
2542
2484
|
};
|
|
2543
2485
|
};
|
|
2544
2486
|
const stringifyPath = ({ pathname, query, hash }) => pathname + query + hash;
|
|
2545
|
-
|
|
2546
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/source-type.js
|
|
2487
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/source-type.js
|
|
2547
2488
|
function sourceType(context) {
|
|
2548
2489
|
if ("languageOptions" in context && context.languageOptions) {
|
|
2549
2490
|
if ("parserOptions" in context.languageOptions && context.languageOptions.parserOptions?.sourceType) return context.languageOptions.parserOptions.sourceType;
|
|
@@ -2551,13 +2492,11 @@ function sourceType(context) {
|
|
|
2551
2492
|
}
|
|
2552
2493
|
if ("parserOptions" in context && context.parserOptions) return context.parserOptions.sourceType;
|
|
2553
2494
|
}
|
|
2554
|
-
|
|
2555
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/utils/static-require.js
|
|
2495
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/utils/static-require.js
|
|
2556
2496
|
function isStaticRequire(node) {
|
|
2557
2497
|
return node && node.callee && node.callee.type === "Identifier" && node.callee.name === "require" && node.arguments.length === 1 && node.arguments[0].type === "Literal" && typeof node.arguments[0].value === "string";
|
|
2558
2498
|
}
|
|
2559
|
-
|
|
2560
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/consistent-type-specifier-style.js
|
|
2499
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/consistent-type-specifier-style.js
|
|
2561
2500
|
function isComma(token) {
|
|
2562
2501
|
return token.type === "Punctuator" && token.value === ",";
|
|
2563
2502
|
}
|
|
@@ -2665,8 +2604,7 @@ var consistent_type_specifier_style_default = createRule$1({
|
|
|
2665
2604
|
} };
|
|
2666
2605
|
}
|
|
2667
2606
|
});
|
|
2668
|
-
|
|
2669
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/default.js
|
|
2607
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/default.js
|
|
2670
2608
|
var default_default = createRule$1({
|
|
2671
2609
|
name: "default",
|
|
2672
2610
|
meta: {
|
|
@@ -2698,8 +2636,7 @@ var default_default = createRule$1({
|
|
|
2698
2636
|
};
|
|
2699
2637
|
}
|
|
2700
2638
|
});
|
|
2701
|
-
|
|
2702
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/dynamic-import-chunkname.js
|
|
2639
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/dynamic-import-chunkname.js
|
|
2703
2640
|
var dynamic_import_chunkname_default = createRule$1({
|
|
2704
2641
|
name: "dynamic-import-chunkname",
|
|
2705
2642
|
meta: {
|
|
@@ -2835,8 +2772,7 @@ var dynamic_import_chunkname_default = createRule$1({
|
|
|
2835
2772
|
};
|
|
2836
2773
|
}
|
|
2837
2774
|
});
|
|
2838
|
-
|
|
2839
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/export.js
|
|
2775
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/export.js
|
|
2840
2776
|
const rootProgram = "root";
|
|
2841
2777
|
const tsTypePrefix = "type:";
|
|
2842
2778
|
function removeTypescriptFunctionOverloads(nodes) {
|
|
@@ -2949,8 +2885,7 @@ var export_default = createRule$1({
|
|
|
2949
2885
|
};
|
|
2950
2886
|
}
|
|
2951
2887
|
});
|
|
2952
|
-
|
|
2953
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/exports-last.js
|
|
2888
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/exports-last.js
|
|
2954
2889
|
const findLastIndex = (array, predicate) => {
|
|
2955
2890
|
let i = array.length - 1;
|
|
2956
2891
|
while (i >= 0) {
|
|
@@ -2986,15 +2921,13 @@ var exports_last_default = createRule$1({
|
|
|
2986
2921
|
} };
|
|
2987
2922
|
}
|
|
2988
2923
|
});
|
|
2989
|
-
|
|
2990
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
2924
|
+
// ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
2991
2925
|
const MAX_PATTERN_LENGTH = 65536;
|
|
2992
2926
|
const assertValidPattern = (pattern) => {
|
|
2993
2927
|
if (typeof pattern !== "string") throw new TypeError("invalid pattern");
|
|
2994
2928
|
if (pattern.length > MAX_PATTERN_LENGTH) throw new TypeError("pattern is too long");
|
|
2995
2929
|
};
|
|
2996
|
-
|
|
2997
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
2930
|
+
// ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
2998
2931
|
const posixClasses = {
|
|
2999
2932
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
3000
2933
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -3117,8 +3050,7 @@ const parseClass = (glob, position) => {
|
|
|
3117
3050
|
true
|
|
3118
3051
|
];
|
|
3119
3052
|
};
|
|
3120
|
-
|
|
3121
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js
|
|
3053
|
+
// ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js
|
|
3122
3054
|
/**
|
|
3123
3055
|
* Un-escape a string that has been escaped with {@link escape}.
|
|
3124
3056
|
*
|
|
@@ -3142,8 +3074,7 @@ const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}
|
|
|
3142
3074
|
if (magicalBraces) return windowsPathsNoEscape ? s.replace(/\[([^/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1");
|
|
3143
3075
|
return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
|
|
3144
3076
|
};
|
|
3145
|
-
|
|
3146
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js
|
|
3077
|
+
// ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js
|
|
3147
3078
|
var _a;
|
|
3148
3079
|
const types$1 = /* @__PURE__ */ new Set([
|
|
3149
3080
|
"!",
|
|
@@ -3651,8 +3582,7 @@ var AST = class {
|
|
|
3651
3582
|
}
|
|
3652
3583
|
};
|
|
3653
3584
|
_a = AST;
|
|
3654
|
-
|
|
3655
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js
|
|
3585
|
+
// ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js
|
|
3656
3586
|
/**
|
|
3657
3587
|
* Escape all magic characters in a glob pattern.
|
|
3658
3588
|
*
|
|
@@ -3669,8 +3599,7 @@ const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {})
|
|
|
3669
3599
|
if (magicalBraces) return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
|
|
3670
3600
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
3671
3601
|
};
|
|
3672
|
-
|
|
3673
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js
|
|
3602
|
+
// ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js
|
|
3674
3603
|
const minimatch$1 = (p, pattern, options = {}) => {
|
|
3675
3604
|
assertValidPattern(pattern);
|
|
3676
3605
|
if (!options.nocomment && pattern.charAt(0) === "#") return false;
|
|
@@ -4289,8 +4218,7 @@ minimatch$1.AST = AST;
|
|
|
4289
4218
|
minimatch$1.Minimatch = Minimatch;
|
|
4290
4219
|
minimatch$1.escape = escape;
|
|
4291
4220
|
minimatch$1.unescape = unescape;
|
|
4292
|
-
|
|
4293
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/extensions.js
|
|
4221
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/extensions.js
|
|
4294
4222
|
const dtsRe = /\.d\.[cm]?ts$/;
|
|
4295
4223
|
const modifierSchema = {
|
|
4296
4224
|
type: "string",
|
|
@@ -4526,8 +4454,7 @@ var extensions_default = createRule$1({
|
|
|
4526
4454
|
}, { commonjs: true });
|
|
4527
4455
|
}
|
|
4528
4456
|
});
|
|
4529
|
-
|
|
4530
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/first.js
|
|
4457
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/first.js
|
|
4531
4458
|
function getImportValue(node) {
|
|
4532
4459
|
return node.type === "ImportDeclaration" ? node.source.value : "moduleReference" in node && "expression" in node.moduleReference && "value" in node.moduleReference.expression && node.moduleReference.expression.value;
|
|
4533
4460
|
}
|
|
@@ -4625,8 +4552,7 @@ var first_default = createRule$1({
|
|
|
4625
4552
|
} };
|
|
4626
4553
|
}
|
|
4627
4554
|
});
|
|
4628
|
-
|
|
4629
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/group-exports.js
|
|
4555
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/group-exports.js
|
|
4630
4556
|
function accessorChain(node) {
|
|
4631
4557
|
const chain = [];
|
|
4632
4558
|
let exp = node;
|
|
@@ -4712,8 +4638,7 @@ var group_exports_default = createRule$1({
|
|
|
4712
4638
|
};
|
|
4713
4639
|
}
|
|
4714
4640
|
});
|
|
4715
|
-
|
|
4716
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/imports-first.js
|
|
4641
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/imports-first.js
|
|
4717
4642
|
var imports_first_default = createRule$1({
|
|
4718
4643
|
...first_default,
|
|
4719
4644
|
name: "imports-first",
|
|
@@ -4737,8 +4662,7 @@ var imports_first_default = createRule$1({
|
|
|
4737
4662
|
}
|
|
4738
4663
|
}
|
|
4739
4664
|
});
|
|
4740
|
-
|
|
4741
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/max-dependencies.js
|
|
4665
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/max-dependencies.js
|
|
4742
4666
|
var max_dependencies_default = createRule$1({
|
|
4743
4667
|
name: "max-dependencies",
|
|
4744
4668
|
meta: {
|
|
@@ -4779,8 +4703,7 @@ var max_dependencies_default = createRule$1({
|
|
|
4779
4703
|
};
|
|
4780
4704
|
}
|
|
4781
4705
|
});
|
|
4782
|
-
|
|
4783
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/named.js
|
|
4706
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/named.js
|
|
4784
4707
|
var named_default = createRule$1({
|
|
4785
4708
|
name: "named",
|
|
4786
4709
|
meta: {
|
|
@@ -4880,8 +4803,7 @@ var named_default = createRule$1({
|
|
|
4880
4803
|
};
|
|
4881
4804
|
}
|
|
4882
4805
|
});
|
|
4883
|
-
|
|
4884
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/namespace.js
|
|
4806
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/namespace.js
|
|
4885
4807
|
function processBodyStatement(context, namespaces, declaration) {
|
|
4886
4808
|
if (declaration.type !== "ImportDeclaration") return;
|
|
4887
4809
|
if (declaration.specifiers.length === 0) return;
|
|
@@ -5038,8 +4960,7 @@ var namespace_default = createRule$1({
|
|
|
5038
4960
|
};
|
|
5039
4961
|
}
|
|
5040
4962
|
});
|
|
5041
|
-
|
|
5042
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/newline-after-import.js
|
|
4963
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/newline-after-import.js
|
|
5043
4964
|
const log$1 = debug("eslint-plugin-import-x:rules:newline-after-import");
|
|
5044
4965
|
function containsNodeOrEqual(outerNode, innerNode) {
|
|
5045
4966
|
return outerNode.range[0] <= innerNode.range[0] && outerNode.range[1] >= innerNode.range[1];
|
|
@@ -5209,8 +5130,7 @@ var newline_after_import_default = createRule$1({
|
|
|
5209
5130
|
};
|
|
5210
5131
|
}
|
|
5211
5132
|
});
|
|
5212
|
-
|
|
5213
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-absolute-path.js
|
|
5133
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-absolute-path.js
|
|
5214
5134
|
var no_absolute_path_default = createRule$1({
|
|
5215
5135
|
name: "no-absolute-path",
|
|
5216
5136
|
meta: {
|
|
@@ -5243,8 +5163,7 @@ var no_absolute_path_default = createRule$1({
|
|
|
5243
5163
|
});
|
|
5244
5164
|
}
|
|
5245
5165
|
});
|
|
5246
|
-
|
|
5247
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-amd.js
|
|
5166
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-amd.js
|
|
5248
5167
|
var no_amd_default = createRule$1({
|
|
5249
5168
|
name: "no-amd",
|
|
5250
5169
|
meta: {
|
|
@@ -5272,8 +5191,7 @@ var no_amd_default = createRule$1({
|
|
|
5272
5191
|
} };
|
|
5273
5192
|
}
|
|
5274
5193
|
});
|
|
5275
|
-
|
|
5276
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-anonymous-default-export.js
|
|
5194
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-anonymous-default-export.js
|
|
5277
5195
|
const { hasOwnProperty } = Object.prototype;
|
|
5278
5196
|
const hasOwn = (object, key) => hasOwnProperty.call(object, key);
|
|
5279
5197
|
const defs = {
|
|
@@ -5376,8 +5294,7 @@ var no_anonymous_default_export_default = createRule$1({
|
|
|
5376
5294
|
} };
|
|
5377
5295
|
}
|
|
5378
5296
|
});
|
|
5379
|
-
|
|
5380
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-commonjs.js
|
|
5297
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-commonjs.js
|
|
5381
5298
|
function normalizeLegacyOptions(options) {
|
|
5382
5299
|
if (options.includes("allow-primitive-modules")) return { allowPrimitiveModules: true };
|
|
5383
5300
|
return options[0] || {};
|
|
@@ -5466,8 +5383,7 @@ var no_commonjs_default = createRule$1({
|
|
|
5466
5383
|
};
|
|
5467
5384
|
}
|
|
5468
5385
|
});
|
|
5469
|
-
|
|
5470
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-cycle.js
|
|
5386
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-cycle.js
|
|
5471
5387
|
const traversed = /* @__PURE__ */ new Set();
|
|
5472
5388
|
var no_cycle_default = createRule$1({
|
|
5473
5389
|
name: "no-cycle",
|
|
@@ -5562,8 +5478,7 @@ var no_cycle_default = createRule$1({
|
|
|
5562
5478
|
function routeString(route) {
|
|
5563
5479
|
return route.map((s) => `${s.value}:${s.loc.start.line}`).join("=>");
|
|
5564
5480
|
}
|
|
5565
|
-
|
|
5566
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-default-export.js
|
|
5481
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-default-export.js
|
|
5567
5482
|
var no_default_export_default = createRule$1({
|
|
5568
5483
|
name: "no-default-export",
|
|
5569
5484
|
meta: {
|
|
@@ -5610,8 +5525,7 @@ var no_default_export_default = createRule$1({
|
|
|
5610
5525
|
};
|
|
5611
5526
|
}
|
|
5612
5527
|
});
|
|
5613
|
-
|
|
5614
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-deprecated.js
|
|
5528
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-deprecated.js
|
|
5615
5529
|
function message(deprecation) {
|
|
5616
5530
|
if (deprecation.description) return {
|
|
5617
5531
|
messageId: "deprecatedDesc",
|
|
@@ -5722,8 +5636,7 @@ var no_deprecated_default = createRule$1({
|
|
|
5722
5636
|
};
|
|
5723
5637
|
}
|
|
5724
5638
|
});
|
|
5725
|
-
|
|
5726
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-duplicates.js
|
|
5639
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-duplicates.js
|
|
5727
5640
|
const isTypeScriptVersionSupportPreferInline = lazy(() => {
|
|
5728
5641
|
let typescriptPkg;
|
|
5729
5642
|
try {
|
|
@@ -5927,8 +5840,7 @@ var no_duplicates_default = createRule$1({
|
|
|
5927
5840
|
};
|
|
5928
5841
|
}
|
|
5929
5842
|
});
|
|
5930
|
-
|
|
5931
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-dynamic-require.js
|
|
5843
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-dynamic-require.js
|
|
5932
5844
|
function isRequire(node) {
|
|
5933
5845
|
return node.callee?.type === "Identifier" && node.callee.name === "require" && node.arguments.length > 0;
|
|
5934
5846
|
}
|
|
@@ -5981,8 +5893,7 @@ var no_dynamic_require_default = createRule$1({
|
|
|
5981
5893
|
};
|
|
5982
5894
|
}
|
|
5983
5895
|
});
|
|
5984
|
-
|
|
5985
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-empty-named-blocks.js
|
|
5896
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-empty-named-blocks.js
|
|
5986
5897
|
function getEmptyBlockRange(tokens, index) {
|
|
5987
5898
|
const token = tokens[index];
|
|
5988
5899
|
const nextToken = tokens[index + 1];
|
|
@@ -6059,8 +5970,7 @@ var no_empty_named_blocks_default = createRule$1({
|
|
|
6059
5970
|
};
|
|
6060
5971
|
}
|
|
6061
5972
|
});
|
|
6062
|
-
|
|
6063
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-extraneous-dependencies.js
|
|
5973
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-extraneous-dependencies.js
|
|
6064
5974
|
const depFieldCache = /* @__PURE__ */ new Map();
|
|
6065
5975
|
const minimatch = minimatch$1;
|
|
6066
5976
|
function hasKeys(obj = {}) {
|
|
@@ -6265,8 +6175,7 @@ var no_extraneous_dependencies_default = createRule$1({
|
|
|
6265
6175
|
};
|
|
6266
6176
|
}
|
|
6267
6177
|
});
|
|
6268
|
-
|
|
6269
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-import-module-exports.js
|
|
6178
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-import-module-exports.js
|
|
6270
6179
|
function getEntryPoint(context) {
|
|
6271
6180
|
const pkgPath = pkgUp({ cwd: context.physicalFilename });
|
|
6272
6181
|
try {
|
|
@@ -6330,8 +6239,7 @@ var no_import_module_exports_default = createRule$1({
|
|
|
6330
6239
|
};
|
|
6331
6240
|
}
|
|
6332
6241
|
});
|
|
6333
|
-
|
|
6334
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-internal-modules.js
|
|
6242
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-internal-modules.js
|
|
6335
6243
|
function normalizeSep(somePath) {
|
|
6336
6244
|
return somePath.split("\\").join("/");
|
|
6337
6245
|
}
|
|
@@ -6411,8 +6319,7 @@ var no_internal_modules_default = createRule$1({
|
|
|
6411
6319
|
}, { commonjs: true });
|
|
6412
6320
|
}
|
|
6413
6321
|
});
|
|
6414
|
-
|
|
6415
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-mutable-exports.js
|
|
6322
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-mutable-exports.js
|
|
6416
6323
|
var no_mutable_exports_default = createRule$1({
|
|
6417
6324
|
name: "no-mutable-exports",
|
|
6418
6325
|
meta: {
|
|
@@ -6451,8 +6358,7 @@ var no_mutable_exports_default = createRule$1({
|
|
|
6451
6358
|
};
|
|
6452
6359
|
}
|
|
6453
6360
|
});
|
|
6454
|
-
|
|
6455
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-named-as-default-member.js
|
|
6361
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-named-as-default-member.js
|
|
6456
6362
|
var no_named_as_default_member_default = createRule$1({
|
|
6457
6363
|
name: "no-named-as-default-member",
|
|
6458
6364
|
meta: {
|
|
@@ -6523,8 +6429,7 @@ var no_named_as_default_member_default = createRule$1({
|
|
|
6523
6429
|
};
|
|
6524
6430
|
}
|
|
6525
6431
|
});
|
|
6526
|
-
|
|
6527
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-named-as-default.js
|
|
6432
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-named-as-default.js
|
|
6528
6433
|
var no_named_as_default_default = createRule$1({
|
|
6529
6434
|
name: "no-named-as-default",
|
|
6530
6435
|
meta: {
|
|
@@ -6564,8 +6469,7 @@ var no_named_as_default_default = createRule$1({
|
|
|
6564
6469
|
};
|
|
6565
6470
|
}
|
|
6566
6471
|
});
|
|
6567
|
-
|
|
6568
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-named-default.js
|
|
6472
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-named-default.js
|
|
6569
6473
|
var no_named_default_default = createRule$1({
|
|
6570
6474
|
name: "no-named-default",
|
|
6571
6475
|
meta: {
|
|
@@ -6591,8 +6495,7 @@ var no_named_default_default = createRule$1({
|
|
|
6591
6495
|
} };
|
|
6592
6496
|
}
|
|
6593
6497
|
});
|
|
6594
|
-
|
|
6595
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-named-export.js
|
|
6498
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-named-export.js
|
|
6596
6499
|
var no_named_export_default = createRule$1({
|
|
6597
6500
|
name: "no-named-export",
|
|
6598
6501
|
meta: {
|
|
@@ -6627,8 +6530,7 @@ var no_named_export_default = createRule$1({
|
|
|
6627
6530
|
};
|
|
6628
6531
|
}
|
|
6629
6532
|
});
|
|
6630
|
-
|
|
6631
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-namespace.js
|
|
6533
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-namespace.js
|
|
6632
6534
|
var no_namespace_default = createRule$1({
|
|
6633
6535
|
name: "no-namespace",
|
|
6634
6536
|
meta: {
|
|
@@ -6725,8 +6627,7 @@ function generateLocalNames(names, nameConflicts, namespaceName) {
|
|
|
6725
6627
|
}
|
|
6726
6628
|
return localNames;
|
|
6727
6629
|
}
|
|
6728
|
-
|
|
6729
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-nodejs-modules.js
|
|
6630
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-nodejs-modules.js
|
|
6730
6631
|
var no_nodejs_modules_default = createRule$1({
|
|
6731
6632
|
name: "no-nodejs-modules",
|
|
6732
6633
|
meta: {
|
|
@@ -6759,8 +6660,7 @@ var no_nodejs_modules_default = createRule$1({
|
|
|
6759
6660
|
}, { commonjs: true });
|
|
6760
6661
|
}
|
|
6761
6662
|
});
|
|
6762
|
-
|
|
6763
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-relative-packages.js
|
|
6663
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-relative-packages.js
|
|
6764
6664
|
function toPosixPath(filePath) {
|
|
6765
6665
|
return filePath.replaceAll("\\", "/");
|
|
6766
6666
|
}
|
|
@@ -6814,8 +6714,7 @@ var no_relative_packages_default = createRule$1({
|
|
|
6814
6714
|
return moduleVisitor((source) => checkImportForRelativePackage(context, source.value, source), context.options[0]);
|
|
6815
6715
|
}
|
|
6816
6716
|
});
|
|
6817
|
-
|
|
6818
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-relative-parent-imports.js
|
|
6717
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-relative-parent-imports.js
|
|
6819
6718
|
var no_relative_parent_imports_default = createRule$1({
|
|
6820
6719
|
name: "no-relative-parent-imports",
|
|
6821
6720
|
meta: {
|
|
@@ -6847,8 +6746,7 @@ var no_relative_parent_imports_default = createRule$1({
|
|
|
6847
6746
|
}, context.options[0]);
|
|
6848
6747
|
}
|
|
6849
6748
|
});
|
|
6850
|
-
|
|
6851
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-rename-default.js
|
|
6749
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-rename-default.js
|
|
6852
6750
|
var no_rename_default_default = createRule$1({
|
|
6853
6751
|
name: "no-rename-default",
|
|
6854
6752
|
meta: {
|
|
@@ -7018,8 +6916,7 @@ function getDefaultExportNode(exportMap) {
|
|
|
7018
6916
|
default: return;
|
|
7019
6917
|
}
|
|
7020
6918
|
}
|
|
7021
|
-
|
|
7022
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-restricted-paths.js
|
|
6919
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-restricted-paths.js
|
|
7023
6920
|
const containsPath = (filepath, target) => {
|
|
7024
6921
|
const relative = path.relative(target, filepath);
|
|
7025
6922
|
return relative === "" || !relative.startsWith("..");
|
|
@@ -7183,8 +7080,7 @@ var no_restricted_paths_default = createRule$1({
|
|
|
7183
7080
|
}, { commonjs: true });
|
|
7184
7081
|
}
|
|
7185
7082
|
});
|
|
7186
|
-
|
|
7187
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-self-import.js
|
|
7083
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-self-import.js
|
|
7188
7084
|
function isImportingSelf(context, node, requireName) {
|
|
7189
7085
|
const filename = context.physicalFilename;
|
|
7190
7086
|
if (filename !== "<text>" && filename === resolve(requireName, context)) context.report({
|
|
@@ -7211,8 +7107,7 @@ var no_self_import_default = createRule$1({
|
|
|
7211
7107
|
}, { commonjs: true });
|
|
7212
7108
|
}
|
|
7213
7109
|
});
|
|
7214
|
-
|
|
7215
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-unassigned-import.js
|
|
7110
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-unassigned-import.js
|
|
7216
7111
|
function testIsAllow(globs, context, source) {
|
|
7217
7112
|
if (!Array.isArray(globs)) return false;
|
|
7218
7113
|
const filename = context.physicalFilename;
|
|
@@ -7268,8 +7163,7 @@ var no_unassigned_import_default = createRule$1({
|
|
|
7268
7163
|
};
|
|
7269
7164
|
}
|
|
7270
7165
|
});
|
|
7271
|
-
|
|
7272
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-unresolved.js
|
|
7166
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-unresolved.js
|
|
7273
7167
|
var no_unresolved_default = createRule$1({
|
|
7274
7168
|
name: "no-unresolved",
|
|
7275
7169
|
meta: {
|
|
@@ -7313,8 +7207,7 @@ var no_unresolved_default = createRule$1({
|
|
|
7313
7207
|
}, options);
|
|
7314
7208
|
}
|
|
7315
7209
|
});
|
|
7316
|
-
|
|
7317
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-unused-modules.js
|
|
7210
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-unused-modules.js
|
|
7318
7211
|
function isESLint9UnsupportedApi(input) {
|
|
7319
7212
|
return typeof input === "object" && input !== null && "shouldUseFlatConfig" in input && "FileEnumerator" in eslintUnsupportedApi;
|
|
7320
7213
|
}
|
|
@@ -7821,8 +7714,7 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
|
|
|
7821
7714
|
};
|
|
7822
7715
|
}
|
|
7823
7716
|
});
|
|
7824
|
-
|
|
7825
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-useless-path-segments.js
|
|
7717
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-useless-path-segments.js
|
|
7826
7718
|
function toRelativePath(relativePath) {
|
|
7827
7719
|
const stripped = relativePath.replaceAll(/\/$/g, "");
|
|
7828
7720
|
return /^((\.\.)|(\.))($|\/)/.test(stripped) ? stripped : `./${stripped}`;
|
|
@@ -7895,8 +7787,7 @@ var no_useless_path_segments_default = createRule$1({
|
|
|
7895
7787
|
}, options);
|
|
7896
7788
|
}
|
|
7897
7789
|
});
|
|
7898
|
-
|
|
7899
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/no-webpack-loader-syntax.js
|
|
7790
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/no-webpack-loader-syntax.js
|
|
7900
7791
|
var no_webpack_loader_syntax_default = createRule$1({
|
|
7901
7792
|
name: "no-webpack-loader-syntax",
|
|
7902
7793
|
meta: {
|
|
@@ -7919,8 +7810,7 @@ var no_webpack_loader_syntax_default = createRule$1({
|
|
|
7919
7810
|
}, { commonjs: true });
|
|
7920
7811
|
}
|
|
7921
7812
|
});
|
|
7922
|
-
|
|
7923
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/order.js
|
|
7813
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/order.js
|
|
7924
7814
|
const log = debug("eslint-plugin-import-x:rules:order");
|
|
7925
7815
|
const groupBy = (array, grouper) => array.reduce((acc, curr, index) => {
|
|
7926
7816
|
const key = grouper(curr, index);
|
|
@@ -8793,8 +8683,7 @@ var order_default = createRule$1({
|
|
|
8793
8683
|
};
|
|
8794
8684
|
}
|
|
8795
8685
|
});
|
|
8796
|
-
|
|
8797
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/prefer-default-export.js
|
|
8686
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/prefer-default-export.js
|
|
8798
8687
|
var prefer_default_export_default = createRule$1({
|
|
8799
8688
|
name: "prefer-default-export",
|
|
8800
8689
|
meta: {
|
|
@@ -8873,8 +8762,7 @@ var prefer_default_export_default = createRule$1({
|
|
|
8873
8762
|
};
|
|
8874
8763
|
}
|
|
8875
8764
|
});
|
|
8876
|
-
|
|
8877
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b93434ee32162321d8e7b0075eefd98b/node_modules/eslint-plugin-import-x/lib/rules/prefer-namespace-import.js
|
|
8765
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_f676d1e5740db252cf93d2ce6293b721/node_modules/eslint-plugin-import-x/lib/rules/prefer-namespace-import.js
|
|
8878
8766
|
var prefer_namespace_import_default = createRule$1({
|
|
8879
8767
|
name: "prefer-namespace-import",
|
|
8880
8768
|
meta: {
|
|
@@ -9044,8 +8932,7 @@ const configs$1 = {
|
|
|
9044
8932
|
const plugin$3 = plugin_;
|
|
9045
8933
|
plugin$3.flatConfigs = flatConfigs;
|
|
9046
8934
|
plugin$3.configs = configs$1;
|
|
9047
|
-
|
|
9048
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-import-zod@1.2.1_@typescript-eslint+utils@8.71.2_eslint@10.13.0_jiti@2.7._1cf2fad4f612b2d7d1cb349929e25529/node_modules/eslint-plugin-import-zod/dist/index.mjs
|
|
8935
|
+
// ../../node_modules/.pnpm/eslint-plugin-import-zod@1.2.1_@typescript-eslint+utils@8.72.0_eslint@10.13.0_jiti@2.7._168e9e0639a78dcca8d3fbbfe52fee4a/node_modules/eslint-plugin-import-zod/dist/index.mjs
|
|
9049
8936
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9050
8937
|
var __esm = (fn, res) => function() {
|
|
9051
8938
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
@@ -9168,8 +9055,7 @@ var dist_default = __commonJS({ "src/index.ts"(exports, module) {
|
|
|
9168
9055
|
}] });
|
|
9169
9056
|
module.exports = importZod;
|
|
9170
9057
|
} })();
|
|
9171
|
-
|
|
9172
|
-
//#region src/configs/imports.ts
|
|
9058
|
+
// src/configs/imports.ts
|
|
9173
9059
|
async function imports(options = {}) {
|
|
9174
9060
|
const { stylistic = true } = options;
|
|
9175
9061
|
return [{
|
|
@@ -9187,8 +9073,7 @@ async function imports(options = {}) {
|
|
|
9187
9073
|
}
|
|
9188
9074
|
}];
|
|
9189
9075
|
}
|
|
9190
|
-
|
|
9191
|
-
//#region src/configs/javascript.ts
|
|
9076
|
+
// src/configs/javascript.ts
|
|
9192
9077
|
async function javascript(options = {}) {
|
|
9193
9078
|
const { overrides = {}, globals = {} } = options;
|
|
9194
9079
|
return [{
|
|
@@ -9763,8 +9648,7 @@ async function javascript(options = {}) {
|
|
|
9763
9648
|
}
|
|
9764
9649
|
}];
|
|
9765
9650
|
}
|
|
9766
|
-
|
|
9767
|
-
//#region src/configs/jsdoc.ts
|
|
9651
|
+
// src/configs/jsdoc.ts
|
|
9768
9652
|
async function jsdoc(options = {}) {
|
|
9769
9653
|
const { stylistic = true, severity = "warn" } = options;
|
|
9770
9654
|
return [{
|
|
@@ -9793,8 +9677,7 @@ async function jsdoc(options = {}) {
|
|
|
9793
9677
|
}
|
|
9794
9678
|
}];
|
|
9795
9679
|
}
|
|
9796
|
-
|
|
9797
|
-
//#region src/configs/jsonc.ts
|
|
9680
|
+
// src/configs/jsonc.ts
|
|
9798
9681
|
async function jsonc(options = {}) {
|
|
9799
9682
|
const { files = [
|
|
9800
9683
|
GLOB_JSON,
|
|
@@ -9859,8 +9742,7 @@ async function jsonc(options = {}) {
|
|
|
9859
9742
|
}
|
|
9860
9743
|
}];
|
|
9861
9744
|
}
|
|
9862
|
-
|
|
9863
|
-
//#region src/configs/jsx.ts
|
|
9745
|
+
// src/configs/jsx.ts
|
|
9864
9746
|
async function jsx() {
|
|
9865
9747
|
await ensurePackages(["eslint-plugin-jsx-a11y"]);
|
|
9866
9748
|
const [pluginJsxA11y] = await Promise.all([interopDefault(import("eslint-plugin-jsx-a11y"))]);
|
|
@@ -10010,8 +9892,7 @@ async function jsx() {
|
|
|
10010
9892
|
}
|
|
10011
9893
|
}];
|
|
10012
9894
|
}
|
|
10013
|
-
|
|
10014
|
-
//#region src/configs/markdown.ts
|
|
9895
|
+
// src/configs/markdown.ts
|
|
10015
9896
|
async function markdown(options = {}) {
|
|
10016
9897
|
const { files = [GLOB_MARKDOWN], overrides = {} } = options;
|
|
10017
9898
|
return [{
|
|
@@ -10102,8 +9983,7 @@ async function markdown(options = {}) {
|
|
|
10102
9983
|
}
|
|
10103
9984
|
}];
|
|
10104
9985
|
}
|
|
10105
|
-
|
|
10106
|
-
//#region src/configs/mdx.ts
|
|
9986
|
+
// src/configs/mdx.ts
|
|
10107
9987
|
async function mdx(options = {}) {
|
|
10108
9988
|
const { files = [GLOB_MDX], overrides = {} } = options;
|
|
10109
9989
|
await ensurePackages(["eslint-plugin-mdx"]);
|
|
@@ -10123,8 +10003,7 @@ async function mdx(options = {}) {
|
|
|
10123
10003
|
}
|
|
10124
10004
|
}];
|
|
10125
10005
|
}
|
|
10126
|
-
|
|
10127
|
-
//#region src/configs/next.ts
|
|
10006
|
+
// src/configs/next.ts
|
|
10128
10007
|
/**
|
|
10129
10008
|
* Config for Next.js projects.
|
|
10130
10009
|
*/
|
|
@@ -10164,8 +10043,7 @@ async function next(options = {}) {
|
|
|
10164
10043
|
}
|
|
10165
10044
|
}];
|
|
10166
10045
|
}
|
|
10167
|
-
|
|
10168
|
-
//#region src/configs/node.ts
|
|
10046
|
+
// src/configs/node.ts
|
|
10169
10047
|
async function node() {
|
|
10170
10048
|
return [{
|
|
10171
10049
|
name: "storm/node/rules",
|
|
@@ -10182,8 +10060,7 @@ async function node() {
|
|
|
10182
10060
|
}
|
|
10183
10061
|
}];
|
|
10184
10062
|
}
|
|
10185
|
-
|
|
10186
|
-
//#region src/configs/nx.ts
|
|
10063
|
+
// src/configs/nx.ts
|
|
10187
10064
|
/**
|
|
10188
10065
|
* Config for Nx monorepos
|
|
10189
10066
|
*/
|
|
@@ -10238,8 +10115,7 @@ async function nx(options = {}) {
|
|
|
10238
10115
|
}
|
|
10239
10116
|
];
|
|
10240
10117
|
}
|
|
10241
|
-
|
|
10242
|
-
//#region src/configs/perfectionist.ts
|
|
10118
|
+
// src/configs/perfectionist.ts
|
|
10243
10119
|
/**
|
|
10244
10120
|
* Perfectionist plugin for props and items sorting.
|
|
10245
10121
|
*
|
|
@@ -10260,8 +10136,7 @@ async function perfectionist() {
|
|
|
10260
10136
|
}
|
|
10261
10137
|
}];
|
|
10262
10138
|
}
|
|
10263
|
-
|
|
10264
|
-
//#region src/configs/pnpm.ts
|
|
10139
|
+
// src/configs/pnpm.ts
|
|
10265
10140
|
async function pnpm(options = {}) {
|
|
10266
10141
|
const { overrides = {}, ignore = ["typescript"], ignoreWorkspaceDeps = true } = options;
|
|
10267
10142
|
const workspaceRoot = findWorkspaceRoot();
|
|
@@ -10341,8 +10216,7 @@ async function pnpm(options = {}) {
|
|
|
10341
10216
|
}
|
|
10342
10217
|
];
|
|
10343
10218
|
}
|
|
10344
|
-
|
|
10345
|
-
//#region src/configs/prettier.ts
|
|
10219
|
+
// src/configs/prettier.ts
|
|
10346
10220
|
/**
|
|
10347
10221
|
* Config for Prettier eslint integration
|
|
10348
10222
|
*/
|
|
@@ -10357,8 +10231,7 @@ async function prettier() {
|
|
|
10357
10231
|
}
|
|
10358
10232
|
}, config)];
|
|
10359
10233
|
}
|
|
10360
|
-
|
|
10361
|
-
//#region src/configs/react.ts
|
|
10234
|
+
// src/configs/react.ts
|
|
10362
10235
|
const ReactRefreshAllowConstantExportPackages = ["vite"];
|
|
10363
10236
|
const ReactRouterPackages = [
|
|
10364
10237
|
"@react-router/node",
|
|
@@ -10534,8 +10407,7 @@ async function react(options = {}) {
|
|
|
10534
10407
|
}] : []
|
|
10535
10408
|
];
|
|
10536
10409
|
}
|
|
10537
|
-
|
|
10538
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/util/Components.js
|
|
10410
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/util/Components.js
|
|
10539
10411
|
/**
|
|
10540
10412
|
* @fileoverview Utility class and functions for React components detection
|
|
10541
10413
|
* @author Yannick Croissant
|
|
@@ -10822,8 +10694,7 @@ var require_Components = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10822
10694
|
};
|
|
10823
10695
|
module.exports = Components;
|
|
10824
10696
|
}));
|
|
10825
|
-
|
|
10826
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/util/stylesheet.js
|
|
10697
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/util/stylesheet.js
|
|
10827
10698
|
var require_stylesheet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10828
10699
|
/**
|
|
10829
10700
|
* StyleSheets represents the StyleSheets found in the source code.
|
|
@@ -11132,8 +11003,7 @@ var require_stylesheet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11132
11003
|
module.exports.astHelpers = astHelpers;
|
|
11133
11004
|
module.exports.StyleSheets = StyleSheets;
|
|
11134
11005
|
}));
|
|
11135
|
-
|
|
11136
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/no-unused-styles.js
|
|
11006
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/no-unused-styles.js
|
|
11137
11007
|
/**
|
|
11138
11008
|
* @fileoverview Detects unused styles
|
|
11139
11009
|
* @author Tom Hastjarjanto
|
|
@@ -11186,8 +11056,7 @@ var require_no_unused_styles = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
11186
11056
|
})
|
|
11187
11057
|
};
|
|
11188
11058
|
}));
|
|
11189
|
-
|
|
11190
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/no-inline-styles.js
|
|
11059
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/no-inline-styles.js
|
|
11191
11060
|
/**
|
|
11192
11061
|
* @fileoverview Detects inline styles
|
|
11193
11062
|
* @author Aaron Greenwald
|
|
@@ -11226,8 +11095,7 @@ var require_no_inline_styles = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
11226
11095
|
})
|
|
11227
11096
|
};
|
|
11228
11097
|
}));
|
|
11229
|
-
|
|
11230
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/no-color-literals.js
|
|
11098
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/no-color-literals.js
|
|
11231
11099
|
/**
|
|
11232
11100
|
* @fileoverview Detects color literals
|
|
11233
11101
|
* @author Aaron Greenwald
|
|
@@ -11275,8 +11143,7 @@ var require_no_color_literals = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
11275
11143
|
})
|
|
11276
11144
|
};
|
|
11277
11145
|
}));
|
|
11278
|
-
|
|
11279
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/sort-styles.js
|
|
11146
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/sort-styles.js
|
|
11280
11147
|
/**
|
|
11281
11148
|
* @fileoverview Rule to require StyleSheet object keys to be sorted
|
|
11282
11149
|
* @author Mats Byrkjeland
|
|
@@ -11362,8 +11229,7 @@ var require_sort_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11362
11229
|
create
|
|
11363
11230
|
};
|
|
11364
11231
|
}));
|
|
11365
|
-
|
|
11366
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/split-platform-components.js
|
|
11232
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/split-platform-components.js
|
|
11367
11233
|
/**
|
|
11368
11234
|
* @fileoverview Android and IOS components should be
|
|
11369
11235
|
* used in platform specific React Native components.
|
|
@@ -11429,8 +11295,7 @@ var require_split_platform_components = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
11429
11295
|
create
|
|
11430
11296
|
};
|
|
11431
11297
|
}));
|
|
11432
|
-
|
|
11433
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/no-raw-text.js
|
|
11298
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/no-raw-text.js
|
|
11434
11299
|
/**
|
|
11435
11300
|
* @fileoverview Detects raw text outside of Text component
|
|
11436
11301
|
* @author Alex Zhukov
|
|
@@ -11506,8 +11371,7 @@ var require_no_raw_text = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11506
11371
|
create
|
|
11507
11372
|
};
|
|
11508
11373
|
}));
|
|
11509
|
-
|
|
11510
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/no-single-element-style-arrays.js
|
|
11374
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_b15b950d9591eec3cb8c583defd38a55/node_modules/eslint-plugin-react-native/lib/rules/no-single-element-style-arrays.js
|
|
11511
11375
|
/**
|
|
11512
11376
|
* @fileoverview Enforce no single element style arrays
|
|
11513
11377
|
* @author Michael Gall
|
|
@@ -11544,8 +11408,7 @@ var require_no_single_element_style_arrays = /* @__PURE__ */ __commonJSMin(((exp
|
|
|
11544
11408
|
}
|
|
11545
11409
|
};
|
|
11546
11410
|
}));
|
|
11547
|
-
|
|
11548
|
-
//#region ../../node_modules/.pnpm/eslint-plugin-react-native-globals@0.1.2/node_modules/eslint-plugin-react-native-globals/index.js
|
|
11411
|
+
// ../../node_modules/.pnpm/eslint-plugin-react-native-globals@0.1.2/node_modules/eslint-plugin-react-native-globals/index.js
|
|
11549
11412
|
var require_eslint_plugin_react_native_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11550
11413
|
module.exports = { environments: { all: { globals: {
|
|
11551
11414
|
__DEV__: false,
|
|
@@ -11584,8 +11447,7 @@ var require_eslint_plugin_react_native_globals = /* @__PURE__ */ __commonJSMin((
|
|
|
11584
11447
|
XMLHttpRequest: false
|
|
11585
11448
|
} } } };
|
|
11586
11449
|
}));
|
|
11587
|
-
|
|
11588
|
-
//#region src/configs/react-native.ts
|
|
11450
|
+
// src/configs/react-native.ts
|
|
11589
11451
|
var import_eslint_plugin_react_native = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11590
11452
|
const allRules = {
|
|
11591
11453
|
"no-unused-styles": require_no_unused_styles(),
|
|
@@ -11639,8 +11501,7 @@ async function reactNative(options = {}) {
|
|
|
11639
11501
|
}
|
|
11640
11502
|
}];
|
|
11641
11503
|
}
|
|
11642
|
-
|
|
11643
|
-
//#region src/configs/react-query.ts
|
|
11504
|
+
// src/configs/react-query.ts
|
|
11644
11505
|
/**
|
|
11645
11506
|
* Config for TanStack Query ESLint plugin.
|
|
11646
11507
|
*
|
|
@@ -11661,8 +11522,7 @@ async function reactQuery(options = {}) {
|
|
|
11661
11522
|
}
|
|
11662
11523
|
}];
|
|
11663
11524
|
}
|
|
11664
|
-
|
|
11665
|
-
//#region src/configs/regexp.ts
|
|
11525
|
+
// src/configs/regexp.ts
|
|
11666
11526
|
async function regexp(options = {}) {
|
|
11667
11527
|
const config = configs["flat/recommended"];
|
|
11668
11528
|
const rules = { ...config.rules };
|
|
@@ -11682,8 +11542,7 @@ async function regexp(options = {}) {
|
|
|
11682
11542
|
}
|
|
11683
11543
|
}];
|
|
11684
11544
|
}
|
|
11685
|
-
|
|
11686
|
-
//#region src/configs/secrets.ts
|
|
11545
|
+
// src/configs/secrets.ts
|
|
11687
11546
|
/**
|
|
11688
11547
|
* Config for No-Secrets ESLint plugin
|
|
11689
11548
|
*/
|
|
@@ -11697,8 +11556,7 @@ async function secrets(options) {
|
|
|
11697
11556
|
rules: { "no-secrets/no-secrets": ["error", { ignoreIdentifiers: ["nxCloudId"] }] }
|
|
11698
11557
|
}];
|
|
11699
11558
|
}
|
|
11700
|
-
|
|
11701
|
-
//#region src/configs/sort.ts
|
|
11559
|
+
// src/configs/sort.ts
|
|
11702
11560
|
/**
|
|
11703
11561
|
* Sort package.json
|
|
11704
11562
|
*
|
|
@@ -11919,8 +11777,7 @@ function sortTsconfig() {
|
|
|
11919
11777
|
] }
|
|
11920
11778
|
}];
|
|
11921
11779
|
}
|
|
11922
|
-
|
|
11923
|
-
//#region src/configs/storybook.ts
|
|
11780
|
+
// src/configs/storybook.ts
|
|
11924
11781
|
async function storybook(options = {}) {
|
|
11925
11782
|
const { csf = "loose" } = options;
|
|
11926
11783
|
await ensurePackages(["eslint-plugin-storybook"]);
|
|
@@ -11962,8 +11819,29 @@ async function storybook(options = {}) {
|
|
|
11962
11819
|
}
|
|
11963
11820
|
];
|
|
11964
11821
|
}
|
|
11965
|
-
|
|
11966
|
-
|
|
11822
|
+
// src/configs/tamagui.ts
|
|
11823
|
+
/**
|
|
11824
|
+
* Config for `@tamagui/eslint-plugin`.
|
|
11825
|
+
*
|
|
11826
|
+
* @see https://github.com/tamagui/tamagui/tree/main/code/core/eslint-plugin
|
|
11827
|
+
*/
|
|
11828
|
+
async function tamagui(options = {}) {
|
|
11829
|
+
const { config = {}, strictPayloads = false, overrides = {} } = options;
|
|
11830
|
+
await ensurePackages(["@tamagui/eslint-plugin"]);
|
|
11831
|
+
return [{
|
|
11832
|
+
name: "storm/tamagui/rules",
|
|
11833
|
+
files: ["**/*.{ts,tsx}"],
|
|
11834
|
+
plugins: { tamagui: await interopDefault(import("@tamagui/eslint-plugin")) },
|
|
11835
|
+
rules: {
|
|
11836
|
+
"tamagui/valid-flat-values": ["error", {
|
|
11837
|
+
config,
|
|
11838
|
+
...strictPayloads ? { strictPayloads: true } : {}
|
|
11839
|
+
}],
|
|
11840
|
+
...overrides
|
|
11841
|
+
}
|
|
11842
|
+
}];
|
|
11843
|
+
}
|
|
11844
|
+
// src/configs/test.ts
|
|
11967
11845
|
let plugin$1;
|
|
11968
11846
|
async function test(options = {}) {
|
|
11969
11847
|
const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
|
|
@@ -12001,8 +11879,7 @@ async function test(options = {}) {
|
|
|
12001
11879
|
}
|
|
12002
11880
|
}];
|
|
12003
11881
|
}
|
|
12004
|
-
|
|
12005
|
-
//#region src/configs/toml.ts
|
|
11882
|
+
// src/configs/toml.ts
|
|
12006
11883
|
async function toml(options = {}) {
|
|
12007
11884
|
const { files = [GLOB_TOML], overrides = {}, stylistic = true } = options;
|
|
12008
11885
|
const { indent = 2 } = typeof stylistic === "boolean" ? {} : stylistic;
|
|
@@ -12041,8 +11918,7 @@ async function toml(options = {}) {
|
|
|
12041
11918
|
}
|
|
12042
11919
|
}];
|
|
12043
11920
|
}
|
|
12044
|
-
|
|
12045
|
-
//#region src/configs/tsdoc.ts
|
|
11921
|
+
// src/configs/tsdoc.ts
|
|
12046
11922
|
async function tsdoc(options = {}) {
|
|
12047
11923
|
const { severity = "error", type = "recommended", configFile, files = [GLOB_TS, GLOB_TSX] } = options;
|
|
12048
11924
|
await ensurePackages(["@storm-software/eslint-plugin-tsdoc"]);
|
|
@@ -12058,8 +11934,7 @@ async function tsdoc(options = {}) {
|
|
|
12058
11934
|
}] }
|
|
12059
11935
|
}];
|
|
12060
11936
|
}
|
|
12061
|
-
|
|
12062
|
-
//#region src/configs/typescript.ts
|
|
11937
|
+
// src/configs/typescript.ts
|
|
12063
11938
|
async function typescript(options = {}) {
|
|
12064
11939
|
const { componentExts = [], overrides = {}, overridesTypeAware = {}, parserOptions = {}, tsconfigPath, typeImports = tsconfigPath ? "always" : "optional", type } = options;
|
|
12065
11940
|
const files = options.files ?? [
|
|
@@ -12302,8 +12177,7 @@ async function typescript(options = {}) {
|
|
|
12302
12177
|
}]
|
|
12303
12178
|
].filter(Boolean);
|
|
12304
12179
|
}
|
|
12305
|
-
|
|
12306
|
-
//#region src/configs/unicorn.ts
|
|
12180
|
+
// src/configs/unicorn.ts
|
|
12307
12181
|
async function unicorn(options = {}) {
|
|
12308
12182
|
return [{
|
|
12309
12183
|
name: "storm/unicorn/rules",
|
|
@@ -12348,8 +12222,7 @@ async function unicorn(options = {}) {
|
|
|
12348
12222
|
}
|
|
12349
12223
|
}];
|
|
12350
12224
|
}
|
|
12351
|
-
|
|
12352
|
-
//#region src/configs/unocss.ts
|
|
12225
|
+
// src/configs/unocss.ts
|
|
12353
12226
|
async function unocss(options = {}) {
|
|
12354
12227
|
const { attributify = true, strict = false } = options;
|
|
12355
12228
|
await ensurePackages(["@unocss/eslint-plugin"]);
|
|
@@ -12364,8 +12237,7 @@ async function unocss(options = {}) {
|
|
|
12364
12237
|
}
|
|
12365
12238
|
}];
|
|
12366
12239
|
}
|
|
12367
|
-
|
|
12368
|
-
//#region src/configs/yaml.ts
|
|
12240
|
+
// src/configs/yaml.ts
|
|
12369
12241
|
async function yaml(options = {}) {
|
|
12370
12242
|
const { files = [GLOB_YAML], overrides = {}, stylistic = true } = options;
|
|
12371
12243
|
const { indent = 2, quotes = "single" } = typeof stylistic === "boolean" ? {} : stylistic;
|
|
@@ -12410,8 +12282,7 @@ async function yaml(options = {}) {
|
|
|
12410
12282
|
}
|
|
12411
12283
|
];
|
|
12412
12284
|
}
|
|
12413
|
-
|
|
12414
|
-
//#region src/configs/zod.ts
|
|
12285
|
+
// src/configs/zod.ts
|
|
12415
12286
|
/**
|
|
12416
12287
|
* Config for Import-Zod ESLint plugin
|
|
12417
12288
|
*/
|
|
@@ -12425,8 +12296,7 @@ async function zod(options = {}) {
|
|
|
12425
12296
|
...overrides
|
|
12426
12297
|
}];
|
|
12427
12298
|
}
|
|
12428
|
-
|
|
12429
|
-
//#region src/utils/tsconfig.ts
|
|
12299
|
+
// src/utils/tsconfig.ts
|
|
12430
12300
|
/**
|
|
12431
12301
|
* Gets the path to the nearest tsconfig file by walking up from start path.
|
|
12432
12302
|
*
|
|
@@ -12466,8 +12336,7 @@ function checkTsConfigPath(root) {
|
|
|
12466
12336
|
else if (existsSync(joinPaths(root, "tsconfig.eslint.json"))) return "tsconfig.eslint.json";
|
|
12467
12337
|
else if (existsSync(joinPaths(root, "tsconfig.lint.json"))) return "tsconfig.lint.json";
|
|
12468
12338
|
}
|
|
12469
|
-
|
|
12470
|
-
//#region src/utils/package-manager.ts
|
|
12339
|
+
// src/utils/package-manager.ts
|
|
12471
12340
|
/**
|
|
12472
12341
|
* Detect the package manager used in the workspace.
|
|
12473
12342
|
*
|
|
@@ -12479,8 +12348,7 @@ function detectPackageManager() {
|
|
|
12479
12348
|
if (existsSync(join(workspaceRoot, "pnpm-lock.yaml")) || existsSync(join(workspaceRoot, "pnpm-lock.yml")) || existsSync(join(workspaceRoot, "pnpm-workpace.yaml"))) return "pnpm";
|
|
12480
12349
|
return "npm";
|
|
12481
12350
|
}
|
|
12482
|
-
|
|
12483
|
-
//#region src/preset.ts
|
|
12351
|
+
// src/preset.ts
|
|
12484
12352
|
const flatConfigProps = [
|
|
12485
12353
|
"name",
|
|
12486
12354
|
"languageOptions",
|
|
@@ -12516,7 +12384,7 @@ function getOverrides(options, key) {
|
|
|
12516
12384
|
* @param userConfigs - Additional ESLint configurations.
|
|
12517
12385
|
*/
|
|
12518
12386
|
function preset(options, ...userConfigs) {
|
|
12519
|
-
const { name, globals = {}, banner: enableBanner = true, astro: enableAstro = false, autoRenamePlugins = true, componentExts = [], gitignore: enableGitignore = true, jsx: enableJsx = true, mdx: enableMdx = false, cspell: enableCSpell = true, react: enableReact = false, "react-native": enableReactNative = false, regexp: enableRegexp = true, next: enableNext = false, graphql: enableGraphQL = false, storybook: enableStorybook = false, "react-query": enableReactQuery = false, typescript: enableTypeScript = isPackageExists("typescript"), unicorn: enableUnicorn = true, jsdoc: enableJSDoc = false, tsdoc: enableTSDoc = true, test: enableTest = true, unocss: enableUnoCSS = false, zod: enableZod = false, bun: enableBun, pnpm: enablePnpm } = options;
|
|
12387
|
+
const { name, globals = {}, banner: enableBanner = true, astro: enableAstro = false, autoRenamePlugins = true, componentExts = [], gitignore: enableGitignore = true, jsx: enableJsx = true, mdx: enableMdx = false, cspell: enableCSpell = true, react: enableReact = false, "react-native": enableReactNative = false, regexp: enableRegexp = true, next: enableNext = false, graphql: enableGraphQL = false, storybook: enableStorybook = false, "react-query": enableReactQuery = false, typescript: enableTypeScript = isPackageExists("typescript"), unicorn: enableUnicorn = true, jsdoc: enableJSDoc = false, tsdoc: enableTSDoc = true, test: enableTest = true, unocss: enableUnoCSS = false, zod: enableZod = false, tamagui: enableTamagui = false, bun: enableBun, pnpm: enablePnpm } = options;
|
|
12520
12388
|
const packageManager = detectPackageManager();
|
|
12521
12389
|
let isInEditor = options.isInEditor;
|
|
12522
12390
|
if (!isInEditor) {
|
|
@@ -12571,6 +12439,10 @@ function preset(options, ...userConfigs) {
|
|
|
12571
12439
|
}));
|
|
12572
12440
|
if (enableJsx) configs.push(jsx());
|
|
12573
12441
|
if (enableZod) configs.push(zod({ overrides: getOverrides(options, "zod") }));
|
|
12442
|
+
if (enableTamagui) configs.push(tamagui({
|
|
12443
|
+
...resolveSubOptions(options, "tamagui"),
|
|
12444
|
+
overrides: getOverrides(options, "tamagui")
|
|
12445
|
+
}));
|
|
12574
12446
|
if (stylisticOptions) configs.push(stylistic({
|
|
12575
12447
|
...stylisticOptions,
|
|
12576
12448
|
lineEndings: stylisticOptions.lineEndings ?? "unix",
|
|
@@ -12648,8 +12520,6 @@ function preset(options, ...userConfigs) {
|
|
|
12648
12520
|
}
|
|
12649
12521
|
const getConfig = preset;
|
|
12650
12522
|
const defineConfig = preset;
|
|
12651
|
-
|
|
12652
|
-
//#region src/index.ts
|
|
12523
|
+
// src/index.ts
|
|
12653
12524
|
var src_default = defineConfig;
|
|
12654
|
-
|
|
12655
|
-
export { StylisticConfigDefaults, astro, banner, bun, cspell, src_default as default, defaultPluginRenaming, defineConfig, disables, formatters, getConfig, getOverrides, graphql, ignores, imports, javascript, jsdoc, jsonc, jsx, markdown, mdx, next, node, nx, perfectionist, pnpm, preset, prettier, react, reactNative, reactQuery, regexp, resolveSubOptions, secrets, sortPackageJson, sortTsconfig, storybook, stylistic, test, toml, tsdoc, typescript, unicorn, unocss, yaml, zod };
|
|
12525
|
+
export { StylisticConfigDefaults, astro, banner, bun, cspell, src_default as default, defaultPluginRenaming, defineConfig, disables, formatters, getConfig, getOverrides, graphql, ignores, imports, javascript, jsdoc, jsonc, jsx, markdown, mdx, next, node, nx, perfectionist, pnpm, preset, prettier, react, reactNative, reactQuery, regexp, resolveSubOptions, secrets, sortPackageJson, sortTsconfig, storybook, stylistic, tamagui, test, toml, tsdoc, typescript, unicorn, unocss, yaml, zod };
|