Skip to content

Commit 90e2683

Browse files
authored
Update packages/remark-lint/src/rules/invalid-deprecations.mjs
Signed-off-by: Aviv Keller <me@aviv.sh>
1 parent 158da71 commit 90e2683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/remark-lint/src/rules/invalid-deprecations.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const generateDeprecation = code => `DEP${code.toString().padStart(4, '0')}`;
1212
* @type {import('unified-lint-rule').Rule}
1313
*/
1414
const invalidDeprecations = (tree, vfile) => {
15-
if (vfile.basename !== 'deprecations') {
15+
if (vfile.stem !== 'deprecations') {
1616
// Skip non-deprecation files
1717
return;
1818
}

0 commit comments

Comments
 (0)