@typescript-eslint/typescript-estree 8.70.2-alpha.1 → 8.70.2-alpha.11

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/convert.js CHANGED
@@ -1763,6 +1763,7 @@ class Converter {
1763
1763
  case SyntaxKind.UndefinedKeyword:
1764
1764
  case SyntaxKind.IntrinsicKeyword: {
1765
1765
  return this.createNode(node, {
1766
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-assignment
1766
1767
  type: ts_estree_1.AST_NODE_TYPES[`TS${SyntaxKind[node.kind]}`],
1767
1768
  });
1768
1769
  }
@@ -2283,6 +2284,7 @@ class Converter {
2283
2284
  if (node.kind === ts.SyntaxKind.JSDocFunctionType) {
2284
2285
  this.#throwError(node, 'JSDoc types can only be used inside documentation comments.');
2285
2286
  }
2287
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-assignment
2286
2288
  const customType = `TS${SyntaxKind[node.kind]}`;
2287
2289
  /**
2288
2290
  * If the "errorOnUnknownASTType" option is set to true, throw an error,
@@ -41,6 +41,7 @@ exports.getLanguageVariant = getLanguageVariant;
41
41
  const node_path_1 = __importDefault(require("node:path"));
42
42
  const ts = __importStar(require("typescript"));
43
43
  function getScriptKind(filePath, jsx) {
44
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-assignment
44
45
  const extension = node_path_1.default.extname(filePath).toLowerCase();
45
46
  // note - we only respect the user's jsx setting for unknown extensions
46
47
  // this is so that we always match TS's internal script kind logic, preventing
@@ -96,6 +96,7 @@ function createParseSettings(code, tsestreeOptions = {}) {
96
96
  tsestreeOptions.filePath !== '<input>'
97
97
  ? tsestreeOptions.filePath
98
98
  : getFileName(tsestreeOptions.jsx), tsconfigRootDir);
99
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-assignment
99
100
  const extension = node_path_1.default.extname(filePath).toLowerCase();
100
101
  const jsDocParsingMode = (() => {
101
102
  switch (tsestreeOptions.jsDocParsingMode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/typescript-estree",
3
- "version": "8.70.2-alpha.1",
3
+ "version": "8.70.2-alpha.11",
4
4
  "description": "A parser that converts TypeScript source code into an ESTree compatible form",
5
5
  "files": [
6
6
  "dist",
@@ -43,10 +43,10 @@
43
43
  "syntax"
44
44
  ],
45
45
  "dependencies": {
46
- "@typescript-eslint/project-service": "8.70.2-alpha.1",
47
- "@typescript-eslint/tsconfig-utils": "8.70.2-alpha.1",
48
- "@typescript-eslint/types": "8.70.2-alpha.1",
49
- "@typescript-eslint/visitor-keys": "8.70.2-alpha.1",
46
+ "@typescript-eslint/project-service": "8.70.2-alpha.11",
47
+ "@typescript-eslint/tsconfig-utils": "8.70.2-alpha.11",
48
+ "@typescript-eslint/types": "8.70.2-alpha.11",
49
+ "@typescript-eslint/visitor-keys": "8.70.2-alpha.11",
50
50
  "debug": "^4.4.3",
51
51
  "minimatch": "^10.2.2",
52
52
  "semver": "^7.7.3",