Fix error when meta.docs is undefined #15

Merged
yeonjuan merged 1 commit from allowoptional-docs into main 2025-03-15 17:40:37 +01:00
yeonjuan commented 2025-03-15 09:00:22 +01:00 (Migrated from github.com)

hello. I would like to fix an issue where an error occurs when ESLint Meta docs is undefined. I get errorㄴ when using some plugin rules.

Note that docs is optional in eslint's meta data.

github.com/eslint/eslint@17cb9586a7/lib/types/index.d.ts (L755-L767)

hello. I would like to fix an issue where an error occurs when ESLint Meta docs is undefined. I get errorㄴ when using some plugin rules. Note that docs is optional in eslint's meta data. https://github.com/eslint/eslint/blob/17cb9586a706e75adee09b2388deea77a6ca8f14/lib/types/index.d.ts#L755-L767
marijnh commented 2025-03-15 17:40:58 +01:00 (Migrated from github.com)

Thanks for the patch! I wasn't aware that property was optional.

Thanks for the patch! I wasn't aware that property was optional.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/lang-javascript!15
No description provided.