🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@typescript-eslint/parser

Package Overview
Dependencies
Maintainers
2
Versions
4768
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typescript-eslint/parser - npm Package Compare versions

Comparing version
8.64.1-alpha.4
to
8.64.1-alpha.6
+11
-6
dist/parser.js

@@ -80,11 +80,16 @@ "use strict";

}
/**
* Allow the user to suppress the warning from typescript-estree if they are using an unsupported
* version of TypeScript
*/
const warnOnUnsupportedTypeScriptVersion = validateBoolean(parserOptions.warnOnUnsupportedTypeScriptVersion, true);
if (parserOptions.onUnsupportedTypeScriptVersion != null &&
// eslint-disable-next-line @typescript-eslint/no-deprecated -- read for backwards compatibility
parserOptions.warnOnUnsupportedTypeScriptVersion != null) {
throw new Error('Cannot use both the `onUnsupportedTypeScriptVersion` and the deprecated `warnOnUnsupportedTypeScriptVersion` options. Please use only `onUnsupportedTypeScriptVersion`.');
}
const onUnsupportedTypeScriptVersion = parserOptions.onUnsupportedTypeScriptVersion ??
// eslint-disable-next-line @typescript-eslint/no-deprecated -- read for backwards compatibility
(validateBoolean(parserOptions.warnOnUnsupportedTypeScriptVersion, true)
? 'warn'
: 'ignore');
const tsestreeOptions = {
jsx: validateBoolean(parserOptions.ecmaFeatures.jsx),
...(!warnOnUnsupportedTypeScriptVersion && { loggerFn: false }),
...parserOptions,
onUnsupportedTypeScriptVersion,
// Override errorOnTypeScriptSyntacticAndSemanticIssues and set it to false to prevent use from user config

@@ -91,0 +96,0 @@ // https://github.com/typescript-eslint/typescript-eslint/issues/8681#issuecomment-2000411834

{
"name": "@typescript-eslint/parser",
"version": "8.64.1-alpha.4",
"version": "8.64.1-alpha.6",
"description": "An ESLint custom parser which leverages TypeScript ESTree",

@@ -45,6 +45,6 @@ "files": [

"debug": "^4.4.3",
"@typescript-eslint/types": "8.64.1-alpha.4",
"@typescript-eslint/scope-manager": "8.64.1-alpha.4",
"@typescript-eslint/typescript-estree": "8.64.1-alpha.4",
"@typescript-eslint/visitor-keys": "8.64.1-alpha.4"
"@typescript-eslint/scope-manager": "8.64.1-alpha.6",
"@typescript-eslint/types": "8.64.1-alpha.6",
"@typescript-eslint/typescript-estree": "8.64.1-alpha.6",
"@typescript-eslint/visitor-keys": "8.64.1-alpha.6"
},

@@ -73,3 +73,4 @@ "devDependencies": {

},
"typecheck:tsgo": {}
"typecheck:tsgo": {},
"attw-check": {}
}

@@ -84,4 +85,5 @@ },

"typecheck": "pnpm -w exec nx typecheck",
"typecheck:tsgo": "pnpm -w exec nx typecheck:tsgo"
"typecheck:tsgo": "pnpm -w exec nx typecheck:tsgo",
"attw-check": "pnpm -w exec nx attw-check"
}
}