@depup/typescript-eslint__utils 8.66.0-depup.0 → 8.68.0-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/changes.json +1 -1
- package/dist/ast-utils/eslint-utils/PatternMatcher.js +1 -0
- package/dist/ast-utils/eslint-utils/ReferenceTracker.js +1 -0
- package/dist/ast-utils/eslint-utils/astUtilities.js +1 -0
- package/dist/ast-utils/eslint-utils/index.js +1 -0
- package/dist/ast-utils/eslint-utils/predicates.d.ts +20 -20
- package/dist/ast-utils/eslint-utils/predicates.js +1 -0
- package/dist/ast-utils/eslint-utils/scopeAnalysis.js +1 -0
- package/dist/ast-utils/helpers.js +1 -0
- package/dist/ast-utils/index.js +1 -0
- package/dist/ast-utils/misc.js +1 -0
- package/dist/ast-utils/predicates.d.ts +1 -1
- package/dist/ast-utils/predicates.js +1 -0
- package/dist/eslint-utils/InferTypesFromRule.js +1 -0
- package/dist/eslint-utils/RuleCreator.js +1 -0
- package/dist/eslint-utils/applyDefault.js +1 -0
- package/dist/eslint-utils/deepMerge.js +1 -0
- package/dist/eslint-utils/getParserServices.js +1 -0
- package/dist/eslint-utils/index.js +1 -0
- package/dist/eslint-utils/nullThrows.d.ts +1 -1
- package/dist/eslint-utils/nullThrows.js +1 -0
- package/dist/eslint-utils/parserSeemsToBeTSESLint.js +1 -0
- package/dist/index.js +1 -0
- package/dist/json-schema.js +1 -0
- package/dist/ts-eslint/AST.js +1 -0
- package/dist/ts-eslint/Config.js +1 -0
- package/dist/ts-eslint/ESLint.js +1 -0
- package/dist/ts-eslint/Linter.js +1 -0
- package/dist/ts-eslint/Parser.js +1 -0
- package/dist/ts-eslint/ParserOptions.js +1 -0
- package/dist/ts-eslint/Processor.js +1 -0
- package/dist/ts-eslint/Rule.d.ts +17 -0
- package/dist/ts-eslint/Rule.js +1 -0
- package/dist/ts-eslint/RuleTester.js +1 -0
- package/dist/ts-eslint/Scope.js +1 -0
- package/dist/ts-eslint/SourceCode.js +1 -0
- package/dist/ts-eslint/eslint/ESLintShared.js +1 -0
- package/dist/ts-eslint/eslint/FlatESLint.js +1 -0
- package/dist/ts-eslint/eslint/LegacyESLint.js +1 -0
- package/dist/ts-eslint/index.js +1 -0
- package/dist/ts-estree.js +1 -0
- package/dist/ts-utils/NoInfer.js +1 -0
- package/dist/ts-utils/index.js +1 -0
- package/dist/ts-utils/isArray.js +1 -0
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/typescript-eslint__utils
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [@typescript-eslint/utils](https://www.npmjs.com/package/@typescript-eslint/utils) @ 8.
|
|
17
|
-
| Processed | 2026-08-
|
|
16
|
+
| Original | [@typescript-eslint/utils](https://www.npmjs.com/package/@typescript-eslint/utils) @ 8.68.0 |
|
|
17
|
+
| Processed | 2026-08-25 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 1 |
|
|
20
20
|
|
package/changes.json
CHANGED
|
@@ -42,3 +42,4 @@ const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
|
|
|
42
42
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class}
|
|
43
43
|
*/
|
|
44
44
|
exports.PatternMatcher = eslintUtils.PatternMatcher;
|
|
45
|
+
//# sourceMappingURL=PatternMatcher.js.map
|
|
@@ -46,3 +46,4 @@ const ReferenceTrackerESM = eslintUtils.ReferenceTracker.ESM;
|
|
|
46
46
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class}
|
|
47
47
|
*/
|
|
48
48
|
exports.ReferenceTracker = eslintUtils.ReferenceTracker;
|
|
49
|
+
//# sourceMappingURL=ReferenceTracker.js.map
|
|
@@ -6,26 +6,26 @@ type PunctuatorTokenWithValue<Value extends string> = {
|
|
|
6
6
|
} & TSESTree.PunctuatorToken;
|
|
7
7
|
type IsPunctuatorTokenWithValueFunction<Value extends string> = IsSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
|
|
8
8
|
type IsNotPunctuatorTokenWithValueFunction<Value extends string> = IsNotSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
|
|
9
|
-
export declare const isArrowToken: IsPunctuatorTokenWithValueFunction<
|
|
10
|
-
export declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<
|
|
11
|
-
export declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<
|
|
12
|
-
export declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<
|
|
13
|
-
export declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<
|
|
14
|
-
export declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<
|
|
15
|
-
export declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<
|
|
16
|
-
export declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<
|
|
17
|
-
export declare const isColonToken: IsPunctuatorTokenWithValueFunction<
|
|
18
|
-
export declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<
|
|
19
|
-
export declare const isCommaToken: IsPunctuatorTokenWithValueFunction<
|
|
20
|
-
export declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<
|
|
9
|
+
export declare const isArrowToken: IsPunctuatorTokenWithValueFunction<'=>'>;
|
|
10
|
+
export declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<'=>'>;
|
|
11
|
+
export declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<'}'>;
|
|
12
|
+
export declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<'}'>;
|
|
13
|
+
export declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<']'>;
|
|
14
|
+
export declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<']'>;
|
|
15
|
+
export declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<')'>;
|
|
16
|
+
export declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<')'>;
|
|
17
|
+
export declare const isColonToken: IsPunctuatorTokenWithValueFunction<':'>;
|
|
18
|
+
export declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<':'>;
|
|
19
|
+
export declare const isCommaToken: IsPunctuatorTokenWithValueFunction<','>;
|
|
20
|
+
export declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<','>;
|
|
21
21
|
export declare const isCommentToken: IsSpecificTokenFunction<TSESTree.Comment>;
|
|
22
22
|
export declare const isNotCommentToken: IsNotSpecificTokenFunction<TSESTree.Comment>;
|
|
23
|
-
export declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<
|
|
24
|
-
export declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<
|
|
25
|
-
export declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<
|
|
26
|
-
export declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<
|
|
27
|
-
export declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<
|
|
28
|
-
export declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<
|
|
29
|
-
export declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<
|
|
30
|
-
export declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<
|
|
23
|
+
export declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<'{'>;
|
|
24
|
+
export declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<'{'>;
|
|
25
|
+
export declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<'['>;
|
|
26
|
+
export declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<'['>;
|
|
27
|
+
export declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<'('>;
|
|
28
|
+
export declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<'('>;
|
|
29
|
+
export declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<';'>;
|
|
30
|
+
export declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<';'>;
|
|
31
31
|
export {};
|
|
@@ -57,3 +57,4 @@ exports.isOpeningParenToken = eslintUtils.isOpeningParenToken;
|
|
|
57
57
|
exports.isNotOpeningParenToken = eslintUtils.isNotOpeningParenToken;
|
|
58
58
|
exports.isSemicolonToken = eslintUtils.isSemicolonToken;
|
|
59
59
|
exports.isNotSemicolonToken = eslintUtils.isNotSemicolonToken;
|
|
60
|
+
//# sourceMappingURL=predicates.js.map
|
|
@@ -19,3 +19,4 @@ const isTokenOfTypeWithConditions = (tokenType, conditions) => {
|
|
|
19
19
|
exports.isTokenOfTypeWithConditions = isTokenOfTypeWithConditions;
|
|
20
20
|
const isNotTokenOfTypeWithConditions = (tokenType, conditions) => (token) => !(0, exports.isTokenOfTypeWithConditions)(tokenType, conditions)(token);
|
|
21
21
|
exports.isNotTokenOfTypeWithConditions = isNotTokenOfTypeWithConditions;
|
|
22
|
+
//# sourceMappingURL=helpers.js.map
|
package/dist/ast-utils/index.js
CHANGED
package/dist/ast-utils/misc.js
CHANGED
|
@@ -35,7 +35,7 @@ export declare const isClassOrTypeElement: (node: TSESTree.Node | null | undefin
|
|
|
35
35
|
/**
|
|
36
36
|
* Checks if a node is a constructor method.
|
|
37
37
|
*/
|
|
38
|
-
export declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is Partial<TSESTree.MethodDefinitionComputedName
|
|
38
|
+
export declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is (Partial<TSESTree.MethodDefinitionComputedName> & TSESTree.MethodDefinitionComputedName) | (Partial<TSESTree.MethodDefinitionNonComputedName> & TSESTree.MethodDefinitionNonComputedName);
|
|
39
39
|
/**
|
|
40
40
|
* Checks if a node is a setter method.
|
|
41
41
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* A set of common reasons for calling nullThrows
|
|
3
3
|
*/
|
|
4
4
|
export declare const NullThrowsReasons: {
|
|
5
|
-
readonly MissingParent:
|
|
5
|
+
readonly MissingParent: 'Expected node to have a parent.';
|
|
6
6
|
readonly MissingToken: (token: string, thing: string) => string;
|
|
7
7
|
};
|
|
8
8
|
/**
|
package/dist/index.js
CHANGED
package/dist/json-schema.js
CHANGED
package/dist/ts-eslint/AST.js
CHANGED
package/dist/ts-eslint/Config.js
CHANGED
package/dist/ts-eslint/ESLint.js
CHANGED
package/dist/ts-eslint/Linter.js
CHANGED
package/dist/ts-eslint/Parser.js
CHANGED
package/dist/ts-eslint/Rule.d.ts
CHANGED
|
@@ -23,6 +23,14 @@ export interface RuleMetaDataDocs {
|
|
|
23
23
|
* Mark this rule as feature-frozen.
|
|
24
24
|
*/
|
|
25
25
|
frozen?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The dialects of the languages that the rule is intended to lint.
|
|
28
|
+
* @example
|
|
29
|
+
* ["JavaScript", "TypeScript"]
|
|
30
|
+
*
|
|
31
|
+
* since ESLint 10.2.0
|
|
32
|
+
*/
|
|
33
|
+
dialects?: string[] | undefined;
|
|
26
34
|
}
|
|
27
35
|
export interface ExternalSpecifier {
|
|
28
36
|
/**
|
|
@@ -96,6 +104,15 @@ export interface RuleMetaData<MessageIds extends string, PluginDocs = unknown, O
|
|
|
96
104
|
* Specifies whether rules can return suggestions. Omit if there is no suggestions
|
|
97
105
|
*/
|
|
98
106
|
hasSuggestions?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Languages supported by this rule in the format `"plugin/language"`.
|
|
109
|
+
* Use `"*"` for any language or `"plugin/*"` for any language from a specific plugin.
|
|
110
|
+
* @example
|
|
111
|
+
* ["js/js", "markdown/gfm", "json/jsonc", "css/css"]
|
|
112
|
+
*
|
|
113
|
+
* since ESLint 10.2.0
|
|
114
|
+
*/
|
|
115
|
+
languages?: string[] | undefined;
|
|
99
116
|
/**
|
|
100
117
|
* A map of messages which the rule can report.
|
|
101
118
|
* The key is the messageId, and the string is the parameterized error string.
|
package/dist/ts-eslint/Rule.js
CHANGED
package/dist/ts-eslint/Scope.js
CHANGED
package/dist/ts-eslint/index.js
CHANGED
package/dist/ts-estree.js
CHANGED
|
@@ -7,3 +7,4 @@ var types_1 = require("@typescript-eslint/types");
|
|
|
7
7
|
Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return types_1.AST_NODE_TYPES; } });
|
|
8
8
|
Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return types_1.AST_TOKEN_TYPES; } });
|
|
9
9
|
Object.defineProperty(exports, "TSESTree", { enumerable: true, get: function () { return types_1.TSESTree; } });
|
|
10
|
+
//# sourceMappingURL=ts-estree.js.map
|
package/dist/ts-utils/NoInfer.js
CHANGED
package/dist/ts-utils/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./isArray"), exports);
|
|
18
18
|
__exportStar(require("./NoInfer"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
package/dist/ts-utils/isArray.js
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/typescript-eslint__utils",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.68.0-depup.0",
|
|
4
4
|
"description": "Utilities for working with TypeScript + ESLint together (with updated dependencies)",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
|
+
"!**/*.js.map",
|
|
7
8
|
"!**/*.tsbuildinfo",
|
|
8
9
|
"changes.json",
|
|
9
10
|
"README.md"
|
|
@@ -59,16 +60,16 @@
|
|
|
59
60
|
],
|
|
60
61
|
"dependencies": {
|
|
61
62
|
"@eslint-community/eslint-utils": "^4.10.1",
|
|
62
|
-
"@typescript-eslint/scope-manager": "8.
|
|
63
|
-
"@typescript-eslint/types": "8.
|
|
64
|
-
"@typescript-eslint/typescript-estree": "8.
|
|
63
|
+
"@typescript-eslint/scope-manager": "8.68.0",
|
|
64
|
+
"@typescript-eslint/types": "8.68.0",
|
|
65
|
+
"@typescript-eslint/typescript-estree": "8.68.0"
|
|
65
66
|
},
|
|
66
67
|
"peerDependencies": {
|
|
67
68
|
"eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
|
|
68
69
|
"typescript": ">=4.8.4 <6.1.0"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
|
-
"@typescript/native
|
|
72
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
72
73
|
"@vitest/coverage-v8": "^4.0.18",
|
|
73
74
|
"eslint": "^10.0.0",
|
|
74
75
|
"rimraf": "^5.0.10",
|
|
@@ -128,8 +129,8 @@
|
|
|
128
129
|
},
|
|
129
130
|
"depsUpdated": 1,
|
|
130
131
|
"originalPackage": "@typescript-eslint/utils",
|
|
131
|
-
"originalVersion": "8.
|
|
132
|
-
"processedAt": "2026-08-
|
|
132
|
+
"originalVersion": "8.68.0",
|
|
133
|
+
"processedAt": "2026-08-25T00:16:19.927Z",
|
|
133
134
|
"smokeTest": "passed"
|
|
134
135
|
}
|
|
135
136
|
}
|