@plugjs/eslint-plugin 0.2.19 → 0.2.20
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.
|
@@ -30,7 +30,7 @@ var require_package = __commonJS({
|
|
|
30
30
|
"node_modules/eslint-plugin-import-x/package.json"(exports2, module2) {
|
|
31
31
|
module2.exports = {
|
|
32
32
|
name: "eslint-plugin-import-x",
|
|
33
|
-
version: "4.3.
|
|
33
|
+
version: "4.3.1",
|
|
34
34
|
description: "Import with sanity.",
|
|
35
35
|
repository: "git+https://github.com/un-ts/eslint-plugin-import-x",
|
|
36
36
|
author: "JounQin <admin@1stg.me> (https://www.1stG.me)",
|
|
@@ -947,9 +947,6 @@ var require_resolve = __commonJS({
|
|
|
947
947
|
if (cachedPath !== void 0) {
|
|
948
948
|
return { found: true, path: cachedPath };
|
|
949
949
|
}
|
|
950
|
-
function cache(resolvedPath) {
|
|
951
|
-
fileExistsCache.set(cacheKey, resolvedPath);
|
|
952
|
-
}
|
|
953
950
|
function withResolver(resolver, config) {
|
|
954
951
|
if (resolver.interfaceVersion === 2) {
|
|
955
952
|
return resolver.resolve(modulePath, sourceFile, config);
|
|
@@ -983,7 +980,7 @@ var require_resolve = __commonJS({
|
|
|
983
980
|
if (!resolved.found) {
|
|
984
981
|
continue;
|
|
985
982
|
}
|
|
986
|
-
|
|
983
|
+
fileExistsCache.set(cacheKey, resolved.path);
|
|
987
984
|
return resolved;
|
|
988
985
|
}
|
|
989
986
|
return { found: false };
|
|
@@ -1909,7 +1906,11 @@ var require_import_declaration = __commonJS({
|
|
|
1909
1906
|
"use strict";
|
|
1910
1907
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1911
1908
|
exports2.importDeclaration = void 0;
|
|
1909
|
+
var utils_1 = require("@typescript-eslint/utils");
|
|
1912
1910
|
var importDeclaration = (context, node) => {
|
|
1911
|
+
if (node.parent && node.parent.type === utils_1.AST_NODE_TYPES.ImportDeclaration) {
|
|
1912
|
+
return node.parent;
|
|
1913
|
+
}
|
|
1913
1914
|
const ancestors = context.sourceCode.getAncestors(node);
|
|
1914
1915
|
return ancestors[ancestors.length - 1];
|
|
1915
1916
|
};
|
|
@@ -4956,8 +4957,13 @@ var require_no_duplicates = __commonJS({
|
|
|
4956
4957
|
};
|
|
4957
4958
|
moduleMaps.set(parent, map);
|
|
4958
4959
|
}
|
|
4959
|
-
if (
|
|
4960
|
-
|
|
4960
|
+
if (n.importKind === "type") {
|
|
4961
|
+
if (n.specifiers.length > 0 && n.specifiers[0].type === "ImportDefaultSpecifier") {
|
|
4962
|
+
return map.defaultTypesImported;
|
|
4963
|
+
}
|
|
4964
|
+
if (!preferInline) {
|
|
4965
|
+
return map.namedTypesImported;
|
|
4966
|
+
}
|
|
4961
4967
|
}
|
|
4962
4968
|
if (!preferInline && n.specifiers.some((spec) => "importKind" in spec && spec.importKind === "type")) {
|
|
4963
4969
|
return map.namedTypesImported;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plugjs/eslint-plugin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.20",
|
|
4
4
|
"description": "Shared ESLint configurations and extras",
|
|
5
5
|
"main": "./index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@eslint/js": "9.11.1",
|
|
39
39
|
"@nolyfill/is-core-module": "1.0.39",
|
|
40
|
-
"@typescript-eslint/utils": "8.
|
|
40
|
+
"@typescript-eslint/utils": "8.8.0",
|
|
41
41
|
"debug": "4.3.7",
|
|
42
42
|
"doctrine": "3.0.0",
|
|
43
43
|
"enhanced-resolve": "5.17.1",
|
|
44
44
|
"eslint": "9.11.1",
|
|
45
45
|
"eslint-module-utils": "2.12.0",
|
|
46
|
-
"eslint-plugin-unicorn": "
|
|
47
|
-
"eslint-visitor-keys": "4.
|
|
48
|
-
"espree": "10.
|
|
46
|
+
"eslint-plugin-unicorn": "56.0.0",
|
|
47
|
+
"eslint-visitor-keys": "4.1.0",
|
|
48
|
+
"espree": "10.2.0",
|
|
49
49
|
"estraverse": "5.3.0",
|
|
50
50
|
"fast-glob": "3.3.2",
|
|
51
51
|
"get-tsconfig": "4.8.1",
|
|
52
|
-
"globals": "15.
|
|
52
|
+
"globals": "15.10.0",
|
|
53
53
|
"is-bun-module": "1.2.1",
|
|
54
54
|
"is-core-module": "2.15.1",
|
|
55
55
|
"is-glob": "4.0.3",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"stable-hash": "0.0.4",
|
|
61
61
|
"tslib": "2.7.0",
|
|
62
62
|
"typescript": "5.6.2",
|
|
63
|
-
"typescript-eslint": "8.
|
|
63
|
+
"typescript-eslint": "8.8.0"
|
|
64
64
|
}
|
|
65
65
|
}
|