File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33export const INTRODUCED_IN_REGEX = / < ! - - \s ? i n t r o d u c e d _ i n = .* - - > / ;
44
5- export const llmDescription_REGEX = / < ! - - \s ? l l m D e s c r i p t i o n : .* - - > / ;
5+ export const LLM_DESCRIPTION_REGEX = / < ! - - \s ? l l m D e s c r i p t i o n : .* - - > / ;
66
77export const LINT_MESSAGES = {
88 missingIntroducedIn : "Missing 'introduced_in' field in the API doc entry" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { findBefore } from 'unist-util-find-before';
66import {
77 INTRODUCED_IN_REGEX ,
88 LINT_MESSAGES ,
9- llmDescription_REGEX ,
9+ LLM_DESCRIPTION_REGEX ,
1010} from '../constants.mjs' ;
1111
1212/**
@@ -31,7 +31,7 @@ const METADATA_CHECKS = Object.freeze([
3131 } ,
3232 {
3333 name : 'llmDescription' ,
34- regex : llmDescription_REGEX ,
34+ regex : LLM_DESCRIPTION_REGEX ,
3535 level : 'warn' ,
3636 message : LINT_MESSAGES . missingLlmDescription ,
3737 } ,
You can’t perform that action at this time.
0 commit comments