@typescript-eslint/typescript-estree 8.67.1-alpha.13 → 8.67.1-alpha.15

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 (45) hide show
  1. package/dist/ast-converter.js +1 -0
  2. package/dist/check-modifiers.js +1 -0
  3. package/dist/check-syntax-errors.js +1 -0
  4. package/dist/clear-caches.js +1 -0
  5. package/dist/convert-comments.js +1 -0
  6. package/dist/convert.js +1 -0
  7. package/dist/create-program/WatchCompilerHostOfConfigFile.js +1 -0
  8. package/dist/create-program/createIsolatedProgram.js +1 -0
  9. package/dist/create-program/createProjectProgram.js +1 -0
  10. package/dist/create-program/createProjectProgramError.js +1 -0
  11. package/dist/create-program/createSourceFile.js +1 -0
  12. package/dist/create-program/describeFilePath.js +1 -0
  13. package/dist/create-program/getScriptKind.js +1 -0
  14. package/dist/create-program/getWatchProgramsForProjects.js +1 -0
  15. package/dist/create-program/shared.js +1 -0
  16. package/dist/create-program/useProvidedPrograms.js +1 -0
  17. package/dist/create-program/validateDefaultProjectForFilesGlob.js +1 -0
  18. package/dist/createParserServices.js +1 -0
  19. package/dist/getImportClausePhaseModifier.js +1 -0
  20. package/dist/getModifiers.js +1 -0
  21. package/dist/index.js +1 -0
  22. package/dist/jsx/xhtml-entities.js +1 -0
  23. package/dist/node-utils.js +1 -0
  24. package/dist/parseSettings/ExpiringCache.js +1 -0
  25. package/dist/parseSettings/candidateTSConfigRootDirs.js +1 -0
  26. package/dist/parseSettings/createParseSettings.js +1 -0
  27. package/dist/parseSettings/getProjectConfigFiles.js +1 -0
  28. package/dist/parseSettings/index.js +1 -0
  29. package/dist/parseSettings/inferSingleRun.js +1 -0
  30. package/dist/parseSettings/resolveProjectList.js +1 -0
  31. package/dist/parseSettings/warnAboutTSVersion.js +1 -0
  32. package/dist/parser-options.js +1 -0
  33. package/dist/parser.js +1 -0
  34. package/dist/semantic-or-syntactic-errors.js +1 -0
  35. package/dist/simple-traverse.js +1 -0
  36. package/dist/source-files.js +1 -0
  37. package/dist/ts-estree/estree-to-ts-node-types.js +1 -0
  38. package/dist/ts-estree/index.js +1 -0
  39. package/dist/ts-estree/ts-nodes.js +1 -0
  40. package/dist/use-at-your-own-risk.js +1 -0
  41. package/dist/useProgramFromProjectService.js +1 -0
  42. package/dist/version-check.js +1 -0
  43. package/dist/version.js +1 -0
  44. package/dist/withoutProjectParserOptions.js +1 -0
  45. package/package.json +7 -6
@@ -58,3 +58,4 @@ function astConverter(ast, parseSettings, shouldPreserveNodeMaps) {
58
58
  const astMaps = instance.getASTMaps();
59
59
  return { astMaps, estree };
60
60
  }
61
+ //# sourceMappingURL=ast-converter.js.map
@@ -287,3 +287,4 @@ function checkObjectPropertyModifier(node, modifier) {
287
287
  throw (0, node_utils_1.createError)(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot be used here.`);
288
288
  }
289
289
  }
290
+ //# sourceMappingURL=check-modifiers.js.map
@@ -468,3 +468,4 @@ function assertModuleSpecifier(node, allowNull) {
468
468
  throw (0, node_utils_1.createError)(node.moduleSpecifier, 'Module specifier must be a string literal.');
469
469
  }
470
470
  }
471
+ //# sourceMappingURL=check-syntax-errors.js.map
@@ -25,3 +25,4 @@ function clearCaches() {
25
25
  }
26
26
  // TODO - delete this in next major
27
27
  exports.clearProgramCache = clearCaches;
28
+ //# sourceMappingURL=clear-caches.js.map
@@ -59,3 +59,4 @@ function convertComments(ast) {
59
59
  };
60
60
  });
61
61
  }
62
+ //# sourceMappingURL=convert-comments.js.map
package/dist/convert.js CHANGED
@@ -2422,3 +2422,4 @@ class Converter {
2422
2422
  }
2423
2423
  }
2424
2424
  exports.Converter = Converter;
2425
+ //# sourceMappingURL=convert.js.map
@@ -3,3 +3,4 @@
3
3
  // They have been trimmed down to only include the relevant bits
4
4
  // We use some special internal TS apis to help us do our parsing flexibly
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=WatchCompilerHostOfConfigFile.js.map
@@ -94,3 +94,4 @@ function createIsolatedProgram(parseSettings) {
94
94
  }
95
95
  return { ast, program };
96
96
  }
97
+ //# sourceMappingURL=createIsolatedProgram.js.map
@@ -21,3 +21,4 @@ function createProjectProgram(parseSettings, programsForProjects) {
21
21
  }
22
22
  return astAndProgram;
23
23
  }
24
+ //# sourceMappingURL=createProjectProgram.js.map
@@ -72,3 +72,4 @@ function getErrorDetails(describedFilePath, parseSettings, programsForProjects)
72
72
  `See the typescript-eslint docs for more info: https://tseslint.com/none-of-those-tsconfigs-include-this-file`,
73
73
  ];
74
74
  }
75
+ //# sourceMappingURL=createProjectProgramError.js.map
@@ -60,3 +60,4 @@ function createNoProgram(parseSettings) {
60
60
  program: null,
61
61
  };
62
62
  }
63
+ //# sourceMappingURL=createSourceFile.js.map
@@ -28,3 +28,4 @@ function describeFilePath(filePath, tsconfigRootDir) {
28
28
  // path to print is probably the prefixed relative one.
29
29
  return `<tsconfigRootDir>/${relative}`;
30
30
  }
31
+ //# sourceMappingURL=describeFilePath.js.map
@@ -78,3 +78,4 @@ function getLanguageVariant(scriptKind) {
78
78
  return ts.LanguageVariant.Standard;
79
79
  }
80
80
  }
81
+ //# sourceMappingURL=getScriptKind.js.map
@@ -378,3 +378,4 @@ function maybeInvalidateProgram(existingWatch, filePath, tsconfigPath) {
378
378
  log('File was still not found in program after deletion check, assuming it is not part of this program. %s', filePath);
379
379
  return null;
380
380
  }
381
+ //# sourceMappingURL=getWatchProgramsForProjects.js.map
@@ -128,3 +128,4 @@ function createHash(content) {
128
128
  }
129
129
  return content;
130
130
  }
131
+ //# sourceMappingURL=shared.js.map
@@ -79,3 +79,4 @@ function createProgramFromConfigFile(configFile, projectDirectory) {
79
79
  const host = ts.createCompilerHost(parsed.options, true);
80
80
  return ts.createProgram(parsed.fileNames, parsed.options, host);
81
81
  }
82
+ //# sourceMappingURL=useProvidedPrograms.js.map
@@ -21,3 +21,4 @@ function validateDefaultProjectForFilesGlob(allowDefaultProject) {
21
21
  }
22
22
  }
23
23
  }
24
+ //# sourceMappingURL=validateDefaultProjectForFilesGlob.js.map
@@ -31,3 +31,4 @@ function createParserServices(astMaps, program) {
31
31
  getTypeOfSymbolAtLocation: (symbol, node) => checker.getTypeOfSymbolAtLocation(symbol, astMaps.esTreeNodeToTSNodeMap.get(node)),
32
32
  };
33
33
  }
34
+ //# sourceMappingURL=createParserServices.js.map
@@ -54,3 +54,4 @@ function getImportClausePhaseModifier(node) {
54
54
  // eslint-disable-next-line @typescript-eslint/no-deprecated -- guarded by TS version check
55
55
  return node.isTypeOnly ? 'type' : null;
56
56
  }
57
+ //# sourceMappingURL=getImportClausePhaseModifier.js.map
@@ -72,3 +72,4 @@ function getDecorators(node, includeIllegalDecorators = false) {
72
72
  // @ts-expect-error intentional fallback for older TS versions
73
73
  node.decorators?.filter(ts.isDecorator));
74
74
  }
75
+ //# sourceMappingURL=getModifiers.js.map
package/dist/index.js CHANGED
@@ -39,3 +39,4 @@ var version_1 = require("./version");
39
39
  Object.defineProperty(exports, "version", { enumerable: true, get: function () { return version_1.version; } });
40
40
  var withoutProjectParserOptions_1 = require("./withoutProjectParserOptions");
41
41
  Object.defineProperty(exports, "withoutProjectParserOptions", { enumerable: true, get: function () { return withoutProjectParserOptions_1.withoutProjectParserOptions; } });
42
+ //# sourceMappingURL=index.js.map
@@ -256,3 +256,4 @@ exports.xhtmlEntities = {
256
256
  zwj: '\u200D',
257
257
  zwnj: '\u200C',
258
258
  };
259
+ //# sourceMappingURL=xhtml-entities.js.map
@@ -671,3 +671,4 @@ function isEntityNameExpression(node) {
671
671
  return (node.kind === SyntaxKind.Identifier ||
672
672
  isPropertyAccessEntityNameExpression(node));
673
673
  }
674
+ //# sourceMappingURL=node-utils.js.map
@@ -44,3 +44,4 @@ class ExpiringCache {
44
44
  }
45
45
  }
46
46
  exports.ExpiringCache = ExpiringCache;
47
+ //# sourceMappingURL=ExpiringCache.js.map
@@ -26,3 +26,4 @@ function getInferredTSConfigRootDir() {
26
26
  ].join('\n'));
27
27
  }
28
28
  }
29
+ //# sourceMappingURL=candidateTSConfigRootDirs.js.map
@@ -250,3 +250,4 @@ function populateProjectService(optionsRaw, settings) {
250
250
  });
251
251
  return TSSERVER_PROJECT_SERVICE;
252
252
  }
253
+ //# sourceMappingURL=createParseSettings.js.map
@@ -80,3 +80,4 @@ function getProjectConfigFiles(parseSettings, project) {
80
80
  directory.length >= parseSettings.tsconfigRootDir.length);
81
81
  throw new Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${parseSettings.filePath}' within '${parseSettings.tsconfigRootDir}'.`);
82
82
  }
83
+ //# sourceMappingURL=getProjectConfigFiles.js.map
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -60,3 +60,4 @@ function inferSingleRun(options) {
60
60
  */
61
61
  return false;
62
62
  }
63
+ //# sourceMappingURL=inferSingleRun.js.map
@@ -93,3 +93,4 @@ function clearGlobResolutionCache() {
93
93
  RESOLUTION_CACHE?.clear();
94
94
  RESOLUTION_CACHE = null;
95
95
  }
96
+ //# sourceMappingURL=resolveProjectList.js.map
@@ -88,3 +88,4 @@ function handleUnsupportedTSVersion(parseSettings, behavior, passedLoggerFn) {
88
88
  }
89
89
  warnedAboutTSVersion = true;
90
90
  }
91
+ //# sourceMappingURL=warnAboutTSVersion.js.map
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=parser-options.js.map
package/dist/parser.js CHANGED
@@ -182,3 +182,4 @@ function parseAndGenerateServices(code, tsestreeOptions) {
182
182
  services: (0, createParserServices_1.createParserServices)(astMaps, program),
183
183
  };
184
184
  }
185
+ //# sourceMappingURL=parser.js.map
@@ -92,3 +92,4 @@ function convertDiagnosticToSemanticOrSyntacticError(diagnostic) {
92
92
  message: (0, typescript_1.flattenDiagnosticMessageText)(diagnostic.messageText, typescript_1.sys.newLine),
93
93
  };
94
94
  }
95
+ //# sourceMappingURL=semantic-or-syntactic-errors.js.map
@@ -56,3 +56,4 @@ class SimpleTraverser {
56
56
  function simpleTraverse(startingNode, options, setParentPointers = false) {
57
57
  new SimpleTraverser(options, setParentPointers).traverse(startingNode, undefined);
58
58
  }
59
+ //# sourceMappingURL=simple-traverse.js.map
@@ -47,3 +47,4 @@ function isSourceFile(code) {
47
47
  function getCodeText(code) {
48
48
  return isSourceFile(code) ? code.getFullText(code) : code;
49
49
  }
50
+ //# sourceMappingURL=source-files.js.map
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=estree-to-ts-node-types.js.map
@@ -22,3 +22,4 @@ var types_1 = require("@typescript-eslint/types");
22
22
  Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return types_1.AST_NODE_TYPES; } });
23
23
  Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return types_1.AST_TOKEN_TYPES; } });
24
24
  Object.defineProperty(exports, "TSESTree", { enumerable: true, get: function () { return types_1.TSESTree; } });
25
+ //# sourceMappingURL=index.js.map
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ts-nodes.js.map
@@ -27,3 +27,4 @@ Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true,
27
27
  // required by packages/type-utils
28
28
  var shared_1 = require("./create-program/shared");
29
29
  Object.defineProperty(exports, "getCanonicalFileName", { enumerable: true, get: function () { return shared_1.getCanonicalFileName; } });
30
+ //# sourceMappingURL=use-at-your-own-risk.js.map
@@ -203,3 +203,4 @@ function absolutify(filePath, serviceAndSettings) {
203
203
  function filePathMatchedBy(filePath, allowDefaultProject) {
204
204
  return !!allowDefaultProject?.some(pattern => (0, minimatch_1.minimatch)(filePath, pattern, { dot: true }));
205
205
  }
206
+ //# sourceMappingURL=useProgramFromProjectService.js.map
@@ -61,3 +61,4 @@ exports.typescriptVersionIsAtLeast = {};
61
61
  for (const version of versions) {
62
62
  exports.typescriptVersionIsAtLeast[version] = semverCheck(version);
63
63
  }
64
+ //# sourceMappingURL=version-check.js.map
package/dist/version.js CHANGED
@@ -4,3 +4,4 @@ exports.version = void 0;
4
4
  // note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder
5
5
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
6
6
  exports.version = require('../package.json').version;
7
+ //# sourceMappingURL=version.js.map
@@ -14,3 +14,4 @@ function withoutProjectParserOptions(opts) {
14
14
  const { EXPERIMENTAL_useProjectService, project, projectService, ...rest } = opts;
15
15
  return rest;
16
16
  }
17
+ //# sourceMappingURL=withoutProjectParserOptions.js.map
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@typescript-eslint/typescript-estree",
3
- "version": "8.67.1-alpha.13",
3
+ "version": "8.67.1-alpha.15",
4
4
  "description": "A parser that converts TypeScript source code into an ESTree compatible form",
5
5
  "files": [
6
6
  "dist",
7
- "!**/*.tsbuildinfo"
7
+ "!**/*.tsbuildinfo",
8
+ "!**/*.js.map"
8
9
  ],
9
10
  "type": "commonjs",
10
11
  "exports": {
@@ -47,10 +48,10 @@
47
48
  "semver": "^7.7.3",
48
49
  "tinyglobby": "^0.2.15",
49
50
  "ts-api-utils": "^2.5.0",
50
- "@typescript-eslint/project-service": "8.67.1-alpha.13",
51
- "@typescript-eslint/types": "8.67.1-alpha.13",
52
- "@typescript-eslint/tsconfig-utils": "8.67.1-alpha.13",
53
- "@typescript-eslint/visitor-keys": "8.67.1-alpha.13"
51
+ "@typescript-eslint/project-service": "8.67.1-alpha.15",
52
+ "@typescript-eslint/tsconfig-utils": "8.67.1-alpha.15",
53
+ "@typescript-eslint/types": "8.67.1-alpha.15",
54
+ "@typescript-eslint/visitor-keys": "8.67.1-alpha.15"
54
55
  },
55
56
  "devDependencies": {
56
57
  "@typescript/native": "npm:typescript@^7.0.2",