Socket
Socket
Sign inDemoInstall

@typescript-eslint/typescript-estree

Package Overview
Dependencies
Maintainers
2
Versions
3851
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typescript-eslint/typescript-estree - npm Package Compare versions

Comparing version 8.8.1-alpha.2 to 8.8.1-alpha.3

1

dist/create-program/createSourceFile.js

@@ -43,2 +43,3 @@ "use strict";

jsDocParsingMode: parseSettings.jsDocParsingMode,
setExternalModuleIndicator: parseSettings.setExternalModuleIndicator,
},

@@ -45,0 +46,0 @@ /* setParentNodes */ true, (0, getScriptKind_1.getScriptKind)(parseSettings.filePath, parseSettings.jsx));

@@ -1,2 +0,2 @@

import type { CacheDurationSeconds, DebugLevel, JSDocParsingMode, ProjectServiceOptions } from '@typescript-eslint/types';
import type { CacheDurationSeconds, DebugLevel, JSDocParsingMode, ProjectServiceOptions, SourceType } from '@typescript-eslint/types';
import type * as ts from 'typescript';

@@ -7,2 +7,7 @@ import type { TSESTree, TSESTreeToTSNode, TSNode, TSToken } from './ts-estree';

/**
* Specify the `sourceType`.
* For more details, see https://github.com/typescript-eslint/typescript-eslint/pull/9121
*/
sourceType?: SourceType;
/**
* Prevents the parser from throwing an error if it receives an invalid AST from TypeScript.

@@ -9,0 +14,0 @@ * This case only usually occurs when attempting to lint invalid code.

20

dist/parseSettings/createParseSettings.js

@@ -32,2 +32,3 @@ "use strict";

exports.clearTSServerProjectService = clearTSServerProjectService;
const node_path_1 = __importDefault(require("node:path"));
const debug_1 = __importDefault(require("debug"));

@@ -64,2 +65,7 @@ const ts = __importStar(require("typescript"));

const passedLoggerFn = typeof tsestreeOptions.loggerFn === 'function';
const filePath = (0, shared_1.ensureAbsolutePath)(typeof tsestreeOptions.filePath === 'string' &&
tsestreeOptions.filePath !== '<input>'
? tsestreeOptions.filePath
: getFileName(tsestreeOptions.jsx), tsconfigRootDir);
const extension = node_path_1.default.extname(filePath).toLowerCase();
const jsDocParsingMode = (() => {

@@ -94,6 +100,12 @@ switch (tsestreeOptions.jsDocParsingMode) {

: [],
filePath: (0, shared_1.ensureAbsolutePath)(typeof tsestreeOptions.filePath === 'string' &&
tsestreeOptions.filePath !== '<input>'
? tsestreeOptions.filePath
: getFileName(tsestreeOptions.jsx), tsconfigRootDir),
filePath,
setExternalModuleIndicator: tsestreeOptions.sourceType === 'module' ||
(tsestreeOptions.sourceType === undefined &&
extension === ts.Extension.Mjs) ||
(tsestreeOptions.sourceType === undefined &&
extension === ts.Extension.Mts)
? (file) => {
file.externalModuleIndicator = true;
}
: undefined,
jsDocParsingMode,

@@ -100,0 +112,0 @@ jsx: tsestreeOptions.jsx === true,

@@ -60,2 +60,9 @@ import type * as ts from 'typescript';

/**
* Sets the external module indicator on the source file.
* Used by Typescript to determine if a sourceFile is an external module.
*
* needed to always parsing `mjs`/`mts` files as ESM
*/
setExternalModuleIndicator?: (file: ts.SourceFile) => void;
/**
* JSDoc parsing style to pass through to TypeScript

@@ -62,0 +69,0 @@ */

{
"name": "@typescript-eslint/typescript-estree",
"version": "8.8.1-alpha.2",
"version": "8.8.1-alpha.3",
"description": "A parser that converts TypeScript source code into an ESTree compatible form",

@@ -57,4 +57,4 @@ "files": [

"dependencies": {
"@typescript-eslint/types": "8.8.1-alpha.2",
"@typescript-eslint/visitor-keys": "8.8.1-alpha.2",
"@typescript-eslint/types": "8.8.1-alpha.3",
"@typescript-eslint/visitor-keys": "8.8.1-alpha.3",
"debug": "^4.3.4",

@@ -61,0 +61,0 @@ "fast-glob": "^3.3.2",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc