@typescript-eslint/types 8.64.1-alpha.1 → 8.64.1-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/parser-options.d.ts +13 -0
- package/package.json +5 -3
package/dist/parser-options.d.ts
CHANGED
|
@@ -64,5 +64,18 @@ export interface ParserOptions {
|
|
|
64
64
|
sourceType?: SourceType | undefined;
|
|
65
65
|
tokens?: boolean;
|
|
66
66
|
tsconfigRootDir?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Controls how the parser reacts when run with a TypeScript version that is
|
|
69
|
+
* not officially supported by typescript-eslint.
|
|
70
|
+
* - `'warn'` (default): log a warning to the console.
|
|
71
|
+
* - `'error'`: throw, causing the lint run to fail. Useful in CI to prevent
|
|
72
|
+
* unsupported TypeScript versions from being merged unnoticed.
|
|
73
|
+
* - `'ignore'`: do nothing.
|
|
74
|
+
*/
|
|
75
|
+
onUnsupportedTypeScriptVersion?: 'error' | 'ignore' | 'warn';
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated Use {@link onUnsupportedTypeScriptVersion} instead.
|
|
78
|
+
* `true` is equivalent to `'warn'` and `false` is equivalent to `'ignore'`.
|
|
79
|
+
*/
|
|
67
80
|
warnOnUnsupportedTypeScriptVersion?: boolean;
|
|
68
81
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/types",
|
|
3
|
-
"version": "8.64.1-alpha.
|
|
3
|
+
"version": "8.64.1-alpha.11",
|
|
4
4
|
"description": "Types for the TypeScript-ESTree AST spec",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -83,7 +83,8 @@
|
|
|
83
83
|
"eslint-plugin-internal:build"
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
|
-
"typecheck:tsgo": {}
|
|
86
|
+
"typecheck:tsgo": {},
|
|
87
|
+
"attw-check": {}
|
|
87
88
|
}
|
|
88
89
|
},
|
|
89
90
|
"scripts": {
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"lint": "pnpm -w exec nx lint",
|
|
96
97
|
"test": "pnpm -w exec nx test",
|
|
97
98
|
"typecheck": "pnpm -w exec nx typecheck",
|
|
98
|
-
"typecheck:tsgo": "pnpm -w exec nx typecheck:tsgo"
|
|
99
|
+
"typecheck:tsgo": "pnpm -w exec nx typecheck:tsgo",
|
|
100
|
+
"attw-check": "pnpm -w exec nx attw-check"
|
|
99
101
|
}
|
|
100
102
|
}
|