@typescript-eslint/utils 8.60.1-alpha.1 → 8.60.1-alpha.10
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as TSESLint from '../../ts-eslint';
|
|
2
2
|
import type { TSESTree } from '../../ts-estree';
|
|
3
|
-
declare const ReferenceTrackerREAD:
|
|
4
|
-
declare const ReferenceTrackerCALL:
|
|
5
|
-
declare const ReferenceTrackerCONSTRUCT:
|
|
6
|
-
declare const ReferenceTrackerESM:
|
|
3
|
+
declare const ReferenceTrackerREAD: symbol;
|
|
4
|
+
declare const ReferenceTrackerCALL: symbol;
|
|
5
|
+
declare const ReferenceTrackerCONSTRUCT: symbol;
|
|
6
|
+
declare const ReferenceTrackerESM: symbol;
|
|
7
7
|
interface ReferenceTracker {
|
|
8
8
|
/**
|
|
9
9
|
* Iterate the references that the given `traceMap` determined.
|
|
@@ -50,14 +50,10 @@ declare namespace ReferenceTracker {
|
|
|
50
50
|
type CALL = ReferenceTrackerStatic['CALL'];
|
|
51
51
|
type CONSTRUCT = ReferenceTrackerStatic['CONSTRUCT'];
|
|
52
52
|
type ESM = ReferenceTrackerStatic['ESM'];
|
|
53
|
-
type ReferenceType =
|
|
53
|
+
type ReferenceType = symbol;
|
|
54
54
|
type TraceMap<T = any> = Record<string, TraceMapElement<T>>;
|
|
55
55
|
interface TraceMapElement<T> {
|
|
56
56
|
[key: string]: TraceMapElement<T>;
|
|
57
|
-
[ReferenceTrackerCALL]?: T;
|
|
58
|
-
[ReferenceTrackerCONSTRUCT]?: T;
|
|
59
|
-
[ReferenceTrackerESM]?: true;
|
|
60
|
-
[ReferenceTrackerREAD]?: T;
|
|
61
57
|
}
|
|
62
58
|
interface FoundReference<T = any> {
|
|
63
59
|
info: T;
|
package/dist/ast-utils/misc.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { TSESTree } from '../ts-estree';
|
|
2
|
+
/**
|
|
3
|
+
* A regular expression to match line terminators.
|
|
4
|
+
* @see https://tc39.es/ecma262/multipage/ecmascript-language-lexical-grammar.html#prod-LineTerminator
|
|
5
|
+
*/
|
|
2
6
|
export declare const LINEBREAK_MATCHER: RegExp;
|
|
3
7
|
/**
|
|
4
8
|
* Determines whether two adjacent tokens are on the same line
|
package/dist/ast-utils/misc.js
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LINEBREAK_MATCHER = void 0;
|
|
4
4
|
exports.isTokenOnSameLine = isTokenOnSameLine;
|
|
5
|
+
/**
|
|
6
|
+
* A regular expression to match line terminators.
|
|
7
|
+
* @see https://tc39.es/ecma262/multipage/ecmascript-language-lexical-grammar.html#prod-LineTerminator
|
|
8
|
+
*/
|
|
5
9
|
exports.LINEBREAK_MATCHER = /\r\n|[\r\n\u2028\u2029]/;
|
|
6
10
|
/**
|
|
7
11
|
* Determines whether two adjacent tokens are on the same line
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/utils",
|
|
3
|
-
"version": "8.60.1-alpha.
|
|
3
|
+
"version": "8.60.1-alpha.10",
|
|
4
4
|
"description": "Utilities for working with TypeScript + ESLint together",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -54,15 +54,16 @@
|
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@eslint-community/eslint-utils": "^4.9.1",
|
|
57
|
-
"@typescript-eslint/scope-manager": "8.60.1-alpha.
|
|
58
|
-
"@typescript-eslint/
|
|
59
|
-
"@typescript-eslint/
|
|
57
|
+
"@typescript-eslint/scope-manager": "8.60.1-alpha.10",
|
|
58
|
+
"@typescript-eslint/types": "8.60.1-alpha.10",
|
|
59
|
+
"@typescript-eslint/typescript-estree": "8.60.1-alpha.10"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
|
|
63
63
|
"typescript": ">=4.8.4 <6.1.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
+
"@typescript/native-preview": "7.0.0-dev.20260518.1",
|
|
66
67
|
"@vitest/coverage-v8": "^4.0.18",
|
|
67
68
|
"eslint": "^10.0.0",
|
|
68
69
|
"rimraf": "^5.0.10",
|
|
@@ -88,6 +89,12 @@
|
|
|
88
89
|
"{projectRoot}/dist"
|
|
89
90
|
]
|
|
90
91
|
},
|
|
92
|
+
"typecheck:tsgo": {
|
|
93
|
+
"outputs": [
|
|
94
|
+
"{workspaceRoot}/dist",
|
|
95
|
+
"{projectRoot}/dist"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
91
98
|
"test": {
|
|
92
99
|
"dependsOn": [
|
|
93
100
|
"^build",
|
|
@@ -102,6 +109,7 @@
|
|
|
102
109
|
"format": "pnpm -w run format",
|
|
103
110
|
"lint": "pnpm -w exec nx lint",
|
|
104
111
|
"test": "pnpm -w exec nx test",
|
|
105
|
-
"typecheck": "pnpm -w exec nx typecheck"
|
|
112
|
+
"typecheck": "pnpm -w exec nx typecheck",
|
|
113
|
+
"typecheck:tsgo": "pnpm -w exec nx typecheck:tsgo"
|
|
106
114
|
}
|
|
107
115
|
}
|