Skip to content

Commit 604a4b9

Browse files
authored
fix: allow any type for meta.docs.recommended in custom rules (#502)
1 parent 56e4b78 commit 604a4b9

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@
8686
"lint-staged": "^15.2.9",
8787
"mocha": "^11.6.0",
8888
"prettier": "^3.3.3",
89-
"typescript": "^5.8.3",
89+
"typescript": "^5.9.2",
9090
"yorkie": "^2.0.0"
9191
},
9292
"dependencies": {
93-
"@eslint/core": "^0.15.1",
94-
"@eslint/plugin-kit": "^0.3.4",
93+
"@eslint/core": "^0.15.2",
94+
"@eslint/plugin-kit": "^0.3.5",
9595
"github-slugger": "^2.0.0",
9696
"mdast-util-from-markdown": "^2.0.2",
9797
"mdast-util-frontmatter": "^2.0.1",

tests/types/types.test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,3 +289,18 @@ typeof processorPlugins satisfies {};
289289
return {};
290290
},
291291
});
292+
293+
// `meta.docs.recommended` can be any type
294+
(): MarkdownRuleDefinition => ({
295+
create() {
296+
return {};
297+
},
298+
meta: {
299+
docs: {
300+
recommended: {
301+
severity: "warn",
302+
options: ["never"],
303+
},
304+
},
305+
},
306+
});

0 commit comments

Comments
 (0)