@@ -118,11 +118,22 @@ export interface ParserOptions extends Partial<Record<string, unknown>> {
118
118
} ;
119
119
jsxPragma ?: string ;
120
120
jsxFragmentName ?: string | null ;
121
+ /**
122
+ * @see [lib](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionslib)
123
+ */
121
124
lib ?: Lib [ ] ;
122
125
comment ?: boolean ;
123
126
debugLevel ?: DebugLevel ;
124
127
errorOnTypeScriptSyntacticAndSemanticIssues ?: boolean ;
125
128
errorOnUnknownASTType ?: boolean ;
129
+ /**
130
+ * This option allows you to provide one or more additional file extensions which should be considered in the TypeScript Program compilation.
131
+ *
132
+ * The default extensions are `.ts`, `.tsx`, `.js`, and `.jsx`. Add extensions starting with `.`, followed by the file extension.
133
+ * E.g. for a `.vue` file use `"extraFileExtensions: [".vue"]`.
134
+ *
135
+ * @see [extraFileExtensions](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionsextrafileextensions)
136
+ */
126
137
extraFileExtensions ?: string [ ] ;
127
138
filePath ?: string ;
128
139
loc ?: boolean ;
@@ -133,11 +144,29 @@ export interface ParserOptions extends Partial<Record<string, unknown>> {
133
144
* @see [Specifying Parser](https://eslint.org/docs/user-guide/configuring/plugins#specifying-parser)
134
145
*/
135
146
parser ?: Parser ;
147
+ /**
148
+ * @see [project](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionsproject)
149
+ */
136
150
project ?: string | string [ ] ;
151
+ /**
152
+ * @see [projectFolderIgnoreList](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionsprojectfolderignorelist)
153
+ */
137
154
projectFolderIgnoreList ?: Array < string | RegExp > ;
138
155
range ?: boolean ;
139
156
tokens ?: boolean ;
157
+ /**
158
+ * This option allows you to provide the root directory for relative tsconfig paths specified in the `project` option above.
159
+ *
160
+ * @see [tsconfigRootDir](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionstsconfigrootdir)
161
+ */
140
162
tsconfigRootDir ?: string ;
141
163
useJSXTextNode ?: boolean ;
164
+ /**
165
+ * This option allows you to toggle the warning that the parser will give you if you use a version of TypeScript which is not explicitly supported.
166
+ *
167
+ * @default true
168
+ *
169
+ * @see [warnOnUnsupportedTypeScriptVersion](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionswarnonunsupportedtypescriptversion)
170
+ */
142
171
warnOnUnsupportedTypeScriptVersion ?: boolean ;
143
172
}
0 commit comments