@typescript-eslint/utils 8.0.0-alpha.5 → 8.0.0-alpha.6
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/eslint-utils/index.d.ts +0 -1
- package/dist/eslint-utils/index.d.ts.map +1 -1
- package/dist/eslint-utils/index.js +0 -1
- package/dist/eslint-utils/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/eslint-utils/context.d.ts +0 -16
- package/dist/eslint-utils/context.d.ts.map +0 -1
- package/dist/eslint-utils/context.js +0 -34
- package/dist/eslint-utils/context.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./applyDefault"), exports);
|
|
18
|
-
__exportStar(require("./context"), exports);
|
|
19
18
|
__exportStar(require("./getParserServices"), exports);
|
|
20
19
|
__exportStar(require("./InferTypesFromRule"), exports);
|
|
21
20
|
__exportStar(require("./RuleCreator"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,sDAAoC;AACpC,uDAAqC;AACrC,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/utils",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.6",
|
|
4
4
|
"description": "Utilities for working with TypeScript + ESLint together",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -70,16 +70,16 @@
|
|
|
70
70
|
"@eslint-community/eslint-utils": "^4.4.0",
|
|
71
71
|
"@types/json-schema": "^7.0.15",
|
|
72
72
|
"@types/semver": "^7.5.8",
|
|
73
|
-
"@typescript-eslint/scope-manager": "8.0.0-alpha.
|
|
74
|
-
"@typescript-eslint/types": "8.0.0-alpha.
|
|
75
|
-
"@typescript-eslint/typescript-estree": "8.0.0-alpha.
|
|
73
|
+
"@typescript-eslint/scope-manager": "8.0.0-alpha.6",
|
|
74
|
+
"@typescript-eslint/types": "8.0.0-alpha.6",
|
|
75
|
+
"@typescript-eslint/typescript-estree": "8.0.0-alpha.6",
|
|
76
76
|
"semver": "^7.6.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"eslint": "^8.57.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@typescript-eslint/parser": "8.0.0-alpha.
|
|
82
|
+
"@typescript-eslint/parser": "8.0.0-alpha.6",
|
|
83
83
|
"downlevel-dts": "*",
|
|
84
84
|
"jest": "29.7.0",
|
|
85
85
|
"prettier": "^3.2.5",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Scope, SourceCode } from '../ts-eslint';
|
|
2
|
-
import type { RuleContext } from '../ts-eslint/Rule';
|
|
3
|
-
import type { TSESTree } from '../ts-estree';
|
|
4
|
-
/** @deprecated use `context.sourceCode.getAncestors(node)` */
|
|
5
|
-
export declare function getAncestors(context: Readonly<RuleContext<string, unknown[]>>): TSESTree.Node[];
|
|
6
|
-
/** @deprecated use `context.sourceCode.getCwd()` */
|
|
7
|
-
export declare function getCwd(context: Readonly<RuleContext<string, unknown[]>>): string;
|
|
8
|
-
/** @deprecated use `context.sourceCode.getDeclaredVariables(node)` */
|
|
9
|
-
export declare function getDeclaredVariables(context: Readonly<RuleContext<string, unknown[]>>, node: TSESTree.Node): readonly Scope.Variable[];
|
|
10
|
-
/** @deprecated use `context.filename` */
|
|
11
|
-
export declare function getFilename(context: Readonly<RuleContext<string, unknown[]>>): string;
|
|
12
|
-
/** @deprecated use `context.sourceCode.getScope(node) */
|
|
13
|
-
export declare function getScope(context: Readonly<RuleContext<string, readonly unknown[]>>): Scope.Scope;
|
|
14
|
-
/** @deprecated use `context.sourceCode` */
|
|
15
|
-
export declare function getSourceCode(context: Readonly<RuleContext<string, readonly unknown[]>>): Readonly<SourceCode>;
|
|
16
|
-
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,8DAA8D;AAC9D,wBAAgB,YAAY,CAC1B,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,GAChD,QAAQ,CAAC,IAAI,EAAE,CAEjB;AAED,oDAAoD;AACpD,wBAAgB,MAAM,CACpB,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,GAChD,MAAM,CAER;AAED,sEAAsE;AACtE,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,EACjD,IAAI,EAAE,QAAQ,CAAC,IAAI,GAClB,SAAS,KAAK,CAAC,QAAQ,EAAE,CAE3B;AAED,yCAAyC;AACzC,wBAAgB,WAAW,CACzB,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,GAChD,MAAM,CAER;AAED,yDAAyD;AACzD,wBAAgB,QAAQ,CACtB,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC,CAAC,GACzD,KAAK,CAAC,KAAK,CAEb;AAED,2CAA2C;AAC3C,wBAAgB,aAAa,CAC3B,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC,CAAC,GACzD,QAAQ,CAAC,UAAU,CAAC,CAEtB"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSourceCode = exports.getScope = exports.getFilename = exports.getDeclaredVariables = exports.getCwd = exports.getAncestors = void 0;
|
|
4
|
-
/** @deprecated use `context.sourceCode.getAncestors(node)` */
|
|
5
|
-
function getAncestors(context) {
|
|
6
|
-
return context.getAncestors();
|
|
7
|
-
}
|
|
8
|
-
exports.getAncestors = getAncestors;
|
|
9
|
-
/** @deprecated use `context.sourceCode.getCwd()` */
|
|
10
|
-
function getCwd(context) {
|
|
11
|
-
return context.getCwd();
|
|
12
|
-
}
|
|
13
|
-
exports.getCwd = getCwd;
|
|
14
|
-
/** @deprecated use `context.sourceCode.getDeclaredVariables(node)` */
|
|
15
|
-
function getDeclaredVariables(context, node) {
|
|
16
|
-
return context.sourceCode.getDeclaredVariables(node);
|
|
17
|
-
}
|
|
18
|
-
exports.getDeclaredVariables = getDeclaredVariables;
|
|
19
|
-
/** @deprecated use `context.filename` */
|
|
20
|
-
function getFilename(context) {
|
|
21
|
-
return context.filename;
|
|
22
|
-
}
|
|
23
|
-
exports.getFilename = getFilename;
|
|
24
|
-
/** @deprecated use `context.sourceCode.getScope(node) */
|
|
25
|
-
function getScope(context) {
|
|
26
|
-
return context.getScope();
|
|
27
|
-
}
|
|
28
|
-
exports.getScope = getScope;
|
|
29
|
-
/** @deprecated use `context.sourceCode` */
|
|
30
|
-
function getSourceCode(context) {
|
|
31
|
-
return context.sourceCode;
|
|
32
|
-
}
|
|
33
|
-
exports.getSourceCode = getSourceCode;
|
|
34
|
-
//# sourceMappingURL=context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/eslint-utils/context.ts"],"names":[],"mappings":";;;AAMA,8DAA8D;AAC9D,SAAgB,YAAY,CAC1B,OAAiD;IAEjD,OAAO,OAAO,CAAC,YAAY,EAAE,CAAC;AAChC,CAAC;AAJD,oCAIC;AAED,oDAAoD;AACpD,SAAgB,MAAM,CACpB,OAAiD;IAEjD,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC;AAC1B,CAAC;AAJD,wBAIC;AAED,sEAAsE;AACtE,SAAgB,oBAAoB,CAClC,OAAiD,EACjD,IAAmB;IAEnB,OAAO,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AALD,oDAKC;AAED,yCAAyC;AACzC,SAAgB,WAAW,CACzB,OAAiD;IAEjD,OAAO,OAAO,CAAC,QAAQ,CAAC;AAC1B,CAAC;AAJD,kCAIC;AAED,yDAAyD;AACzD,SAAgB,QAAQ,CACtB,OAA0D;IAE1D,OAAO,OAAO,CAAC,QAAQ,EAAE,CAAC;AAC5B,CAAC;AAJD,4BAIC;AAED,2CAA2C;AAC3C,SAAgB,aAAa,CAC3B,OAA0D;IAE1D,OAAO,OAAO,CAAC,UAAU,CAAC;AAC5B,CAAC;AAJD,sCAIC"}
|