@typescript-eslint/utils 8.67.1-alpha.2 → 8.67.1-alpha.21

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +2231 -0
  2. package/dist/ast-utils/eslint-utils/PatternMatcher.js +1 -0
  3. package/dist/ast-utils/eslint-utils/ReferenceTracker.js +1 -0
  4. package/dist/ast-utils/eslint-utils/astUtilities.js +1 -0
  5. package/dist/ast-utils/eslint-utils/index.js +1 -0
  6. package/dist/ast-utils/eslint-utils/predicates.js +1 -0
  7. package/dist/ast-utils/eslint-utils/scopeAnalysis.js +1 -0
  8. package/dist/ast-utils/helpers.js +1 -0
  9. package/dist/ast-utils/index.js +1 -0
  10. package/dist/ast-utils/misc.js +1 -0
  11. package/dist/ast-utils/predicates.js +1 -0
  12. package/dist/eslint-utils/InferTypesFromRule.js +1 -0
  13. package/dist/eslint-utils/RuleCreator.js +1 -0
  14. package/dist/eslint-utils/applyDefault.js +1 -0
  15. package/dist/eslint-utils/deepMerge.js +1 -0
  16. package/dist/eslint-utils/getParserServices.js +1 -0
  17. package/dist/eslint-utils/index.js +1 -0
  18. package/dist/eslint-utils/nullThrows.js +1 -0
  19. package/dist/eslint-utils/parserSeemsToBeTSESLint.js +1 -0
  20. package/dist/index.js +1 -0
  21. package/dist/json-schema.js +1 -0
  22. package/dist/ts-eslint/AST.js +1 -0
  23. package/dist/ts-eslint/Config.js +1 -0
  24. package/dist/ts-eslint/ESLint.js +1 -0
  25. package/dist/ts-eslint/Linter.js +1 -0
  26. package/dist/ts-eslint/Parser.js +1 -0
  27. package/dist/ts-eslint/ParserOptions.js +1 -0
  28. package/dist/ts-eslint/Processor.js +1 -0
  29. package/dist/ts-eslint/Rule.js +1 -0
  30. package/dist/ts-eslint/RuleTester.js +1 -0
  31. package/dist/ts-eslint/Scope.js +1 -0
  32. package/dist/ts-eslint/SourceCode.js +1 -0
  33. package/dist/ts-eslint/eslint/ESLintShared.js +1 -0
  34. package/dist/ts-eslint/eslint/FlatESLint.js +1 -0
  35. package/dist/ts-eslint/eslint/LegacyESLint.js +1 -0
  36. package/dist/ts-eslint/index.js +1 -0
  37. package/dist/ts-estree.js +1 -0
  38. package/dist/ts-utils/NoInfer.js +1 -0
  39. package/dist/ts-utils/index.js +1 -0
  40. package/dist/ts-utils/isArray.js +1 -0
  41. package/package.json +5 -4
@@ -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
@@ -99,3 +99,4 @@ exports.getStringIfConstant = eslintUtils.getStringIfConstant;
99
99
  */
100
100
  exports.hasSideEffect = eslintUtils.hasSideEffect;
101
101
  exports.isParenthesized = eslintUtils.isParenthesized;
102
+ //# sourceMappingURL=astUtilities.js.map
@@ -19,3 +19,4 @@ __exportStar(require("./PatternMatcher"), exports);
19
19
  __exportStar(require("./predicates"), exports);
20
20
  __exportStar(require("./ReferenceTracker"), exports);
21
21
  __exportStar(require("./scopeAnalysis"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -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
@@ -49,3 +49,4 @@ exports.findVariable = eslintUtils.findVariable;
49
49
  * If such scope doesn't exist then it returns the 1st argument `initialScope`.
50
50
  */
51
51
  exports.getInnermostScope = eslintUtils.getInnermostScope;
52
+ //# sourceMappingURL=scopeAnalysis.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
@@ -18,3 +18,4 @@ __exportStar(require("./eslint-utils"), exports);
18
18
  __exportStar(require("./helpers"), exports);
19
19
  __exportStar(require("./misc"), exports);
20
20
  __exportStar(require("./predicates"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -13,3 +13,4 @@ exports.LINEBREAK_MATCHER = /\r\n|[\r\n\u2028\u2029]/;
13
13
  function isTokenOnSameLine(left, right) {
14
14
  return left.loc.end.line === right.loc.start.line;
15
15
  }
16
+ //# sourceMappingURL=misc.js.map
@@ -106,3 +106,4 @@ exports.isLoop = (0, helpers_1.isNodeOfTypes)([
106
106
  ts_estree_1.AST_NODE_TYPES.ForOfStatement,
107
107
  ts_estree_1.AST_NODE_TYPES.WhileStatement,
108
108
  ]);
109
+ //# sourceMappingURL=predicates.js.map
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=InferTypesFromRule.js.map
@@ -52,3 +52,4 @@ defaultOptions, meta, name, }) {
52
52
  RuleCreator.withoutDocs = function withoutDocs(args) {
53
53
  return createRule(args);
54
54
  };
55
+ //# sourceMappingURL=RuleCreator.js.map
@@ -31,3 +31,4 @@ function applyDefault(defaultOptions, userOptions) {
31
31
  });
32
32
  return options;
33
33
  }
34
+ //# sourceMappingURL=applyDefault.js.map
@@ -44,3 +44,4 @@ function deepMerge(first = {}, second = {}) {
44
44
  return [key, value];
45
45
  }));
46
46
  }
47
+ //# sourceMappingURL=deepMerge.js.map
@@ -39,3 +39,4 @@ function throwError(parser) {
39
39
  ].filter(Boolean);
40
40
  throw new Error(messages.join('\n'));
41
41
  }
42
+ //# sourceMappingURL=getParserServices.js.map
@@ -20,3 +20,4 @@ __exportStar(require("./getParserServices"), exports);
20
20
  __exportStar(require("./InferTypesFromRule"), exports);
21
21
  __exportStar(require("./nullThrows"), exports);
22
22
  __exportStar(require("./RuleCreator"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -19,3 +19,4 @@ function nullThrows(value, message) {
19
19
  }
20
20
  return value;
21
21
  }
22
+ //# sourceMappingURL=nullThrows.js.map
@@ -4,3 +4,4 @@ exports.parserSeemsToBeTSESLint = parserSeemsToBeTSESLint;
4
4
  function parserSeemsToBeTSESLint(parser) {
5
5
  return !!parser && /(?:typescript-eslint|\.\.)[\w/\\]*parser/.test(parser);
6
6
  }
7
+ //# sourceMappingURL=parserSeemsToBeTSESLint.js.map
package/dist/index.js CHANGED
@@ -43,3 +43,4 @@ exports.JSONSchema = __importStar(require("./json-schema"));
43
43
  exports.TSESLint = __importStar(require("./ts-eslint"));
44
44
  __exportStar(require("./ts-estree"), exports);
45
45
  exports.TSUtils = __importStar(require("./ts-utils"));
46
+ //# sourceMappingURL=index.js.map
@@ -6,3 +6,4 @@
6
6
  * - We want to provide stricter types
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=json-schema.js.map
@@ -1,3 +1,4 @@
1
1
  "use strict";
2
2
  /* eslint-disable @typescript-eslint/no-namespace, no-restricted-syntax */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=AST.js.map
@@ -1,3 +1,4 @@
1
1
  "use strict";
2
2
  /* eslint-disable @typescript-eslint/consistent-indexed-object-style, @typescript-eslint/no-namespace */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=Config.js.map
@@ -11,3 +11,4 @@ var LegacyESLint_1 = require("./eslint/LegacyESLint");
11
11
  * @deprecated - use ESLint instead
12
12
  */
13
13
  Object.defineProperty(exports, "LegacyESLint", { enumerable: true, get: function () { return LegacyESLint_1.LegacyESLint; } });
14
+ //# sourceMappingURL=ESLint.js.map
@@ -11,3 +11,4 @@ const eslint_1 = require("eslint");
11
11
  class Linter extends eslint_1.Linter {
12
12
  }
13
13
  exports.Linter = Linter;
14
+ //# sourceMappingURL=Linter.js.map
@@ -1,3 +1,4 @@
1
1
  "use strict";
2
2
  /* eslint-disable @typescript-eslint/no-namespace */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=Parser.js.map
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ParserOptions.js.map
@@ -1,3 +1,4 @@
1
1
  "use strict";
2
2
  /* eslint-disable @typescript-eslint/no-namespace */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=Processor.js.map
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Rule.js.map
@@ -9,3 +9,4 @@ const eslint_1 = require("eslint");
9
9
  class RuleTester extends eslint_1.RuleTester {
10
10
  }
11
11
  exports.RuleTester = RuleTester;
12
+ //# sourceMappingURL=RuleTester.js.map
@@ -41,3 +41,4 @@ var Scope;
41
41
  Scope.ScopeType = scopeManager.ScopeType;
42
42
  Scope.DefinitionType = scopeManager.DefinitionType;
43
43
  })(Scope || (exports.Scope = Scope = {}));
44
+ //# sourceMappingURL=Scope.js.map
@@ -6,3 +6,4 @@ const eslint_1 = require("eslint");
6
6
  class SourceCode extends eslint_1.SourceCode {
7
7
  }
8
8
  exports.SourceCode = SourceCode;
9
+ //# sourceMappingURL=SourceCode.js.map
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ESLintShared.js.map
@@ -17,3 +17,4 @@ class FlatESLint extends (use_at_your_own_risk_1.default.FlatESLint ??
17
17
  eslint_1.ESLint) {
18
18
  }
19
19
  exports.FlatESLint = FlatESLint;
20
+ //# sourceMappingURL=FlatESLint.js.map
@@ -34,3 +34,4 @@ class LegacyESLint extends (use_at_your_own_risk_1.default.LegacyESLint ??
34
34
  MissingLegacyESLint) {
35
35
  }
36
36
  exports.LegacyESLint = LegacyESLint;
37
+ //# sourceMappingURL=LegacyESLint.js.map
@@ -25,3 +25,4 @@ __exportStar(require("./Rule"), exports);
25
25
  __exportStar(require("./RuleTester"), exports);
26
26
  __exportStar(require("./Scope"), exports);
27
27
  __exportStar(require("./SourceCode"), exports);
28
+ //# sourceMappingURL=index.js.map
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
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=NoInfer.js.map
@@ -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
@@ -5,3 +5,4 @@ exports.isArray = isArray;
5
5
  function isArray(arg) {
6
6
  return Array.isArray(arg);
7
7
  }
8
+ //# sourceMappingURL=isArray.js.map
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@typescript-eslint/utils",
3
- "version": "8.67.1-alpha.2",
3
+ "version": "8.67.1-alpha.21",
4
4
  "description": "Utilities for working with TypeScript + ESLint together",
5
5
  "files": [
6
6
  "dist",
7
+ "!**/*.js.map",
7
8
  "!**/*.tsbuildinfo"
8
9
  ],
9
10
  "type": "commonjs",
@@ -51,9 +52,9 @@
51
52
  ],
52
53
  "dependencies": {
53
54
  "@eslint-community/eslint-utils": "^4.9.1",
54
- "@typescript-eslint/scope-manager": "8.67.1-alpha.2",
55
- "@typescript-eslint/typescript-estree": "8.67.1-alpha.2",
56
- "@typescript-eslint/types": "8.67.1-alpha.2"
55
+ "@typescript-eslint/scope-manager": "8.67.1-alpha.21",
56
+ "@typescript-eslint/types": "8.67.1-alpha.21",
57
+ "@typescript-eslint/typescript-estree": "8.67.1-alpha.21"
57
58
  },
58
59
  "peerDependencies": {
59
60
  "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",