Skip to content

Commit df43df9

Browse files
committed
docs: mention in rule message current alternative to check-examples rule
1 parent f0f5e18 commit df43df9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/rules/checkExamples.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,8 @@ export default iterateJsdoc(({
117117
}) => {
118118
if (semver.gte(ESLint.version, '8.0.0')) {
119119
report(
120-
'This rule cannot yet be supported for ESLint 8; you ' +
121-
'should either downgrade to ESLint 7 or disable this rule. The ' +
122-
'possibility for ESLint 8 support is being tracked at https://github.com/eslint/eslint/issues/14745',
120+
'This rule does not work for ESLint 8+; you should disable this rule and use' +
121+
'the processor mentioned in the docs.',
123122
null,
124123
{
125124
column: 1,

test/rules/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ const main = async () => {
2929

3030
for (const ruleName of process.env.npm_config_rule ? process.env.npm_config_rule.split(',') : ruleNames) {
3131
if (semver.gte(ESLint.version, '8.0.0') && ruleName === 'check-examples') {
32-
// TODO: This rule cannot yet be supported for ESLint 8;
33-
// The possibility for ESLint 8 support is being tracked at https://github.com/eslint/eslint/issues/14745
32+
// Uses the processor instead for higher versions
3433
continue;
3534
}
3635

0 commit comments

Comments
 (0)