mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #47078 eslint: suggestion property to docs by @stefan-wullems
* eslint: suggestion property to docs Add the suggestion property to the docs object and boyscout some docs. * add test case
This commit is contained in:
parent
352d27df82
commit
0daecd1632
@ -277,6 +277,7 @@ rule = { create(context) { return {}; }, meta: {
|
||||
category: 'Possible Errors',
|
||||
recommended: true,
|
||||
url: 'https://eslint.org/docs/rules/no-console',
|
||||
suggestion: true
|
||||
}
|
||||
}};
|
||||
rule = { create(context) { return {}; }, meta: { fixable: 'whitespace' }};
|
||||
|
||||
6
types/eslint/index.d.ts
vendored
6
types/eslint/index.d.ts
vendored
@ -286,10 +286,16 @@ export namespace Rule {
|
||||
|
||||
interface RuleMetaData {
|
||||
docs?: {
|
||||
/** provides the short description of the rule in the [rules index](https://eslint.org/docs/rules/) */
|
||||
description?: string;
|
||||
/** specifies the heading under which the rule is listed in the [rules index](https://eslint.org/docs/rules/) */
|
||||
category?: string;
|
||||
/** is whether the `"extends": "eslint:recommended"` property in a [configuration file](https://eslint.org/docs/user-guide/configuring#extending-configuration-files) enables the rule */
|
||||
recommended?: boolean;
|
||||
/** specifies the URL at which the full documentation can be accessed */
|
||||
url?: string;
|
||||
/** specifies whether rules can return suggestions (defaults to false if omitted) */
|
||||
suggestion?: boolean
|
||||
};
|
||||
messages?: { [messageId: string]: string };
|
||||
fixable?: 'code' | 'whitespace';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user