Skip to content

Commit 3ec833e

Browse files
committed
refactor: conventions
1 parent 229552c commit 3ec833e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/linter/constants.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
export const INTRODUCED_IN_REGEX = /<!--\s?introduced_in=.*-->/;
44

5-
export const llmDescription_REGEX = /<!--\s?llmDescription:.*-->/;
5+
export const LLM_DESCRIPTION_REGEX = /<!--\s?llmDescription:.*-->/;
66

77
export const LINT_MESSAGES = {
88
missingIntroducedIn: "Missing 'introduced_in' field in the API doc entry",

src/linter/rules/missing-metadata.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { findBefore } from 'unist-util-find-before';
66
import {
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
},

0 commit comments

Comments
 (0)