@typescript-eslint/parser
Advanced tools
+11
-6
@@ -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 |
+9
-7
| { | ||
| "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" | ||
| } | ||
| } |
13991
3.97%195
2.63%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed