Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 6a5c85d

Browse files
committed
Add emitDecoratorMetadata to ParserOptions
1 parent 793e30d commit 6a5c85d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/parser-options.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,18 @@ export interface ParserOptions extends Partial<Record<string, unknown>> {
207207
*
208208
* @default true
209209
*
210-
* @see [warnOnUnsupportedTypeScriptVersion](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionswarnonunsupportedtypescriptversion)
210+
* @see [warnOnUnsupportedTypeScriptVersion](https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/parser#parseroptionswarnonunsupportedtypescriptversion)
211211
*/
212212
warnOnUnsupportedTypeScriptVersion?: boolean;
213+
/**
214+
* This option allow you to tell parser to act as if `emitDecoratorMetadata: true` is set in `tsconfig.json`, but without [type-aware linting](https://typescript-eslint.io/docs/linting/type-linting/).
215+
* In other words, you don't have to specify `parserOptions.project` in this case, making the linting process faster.
216+
*
217+
* @default undefined
218+
*
219+
* @see [emitDecoratorMetadata](https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/parser#parseroptionsemitdecoratormetadata)
220+
*/
221+
emitDecoratorMetadata?: boolean;
213222
/**
214223
* @see [vueFeatures](https://github.com/vuejs/vue-eslint-parser#parseroptionsvuefeatures)
215224
*/

0 commit comments

Comments
 (0)