Skip to content

Commit fa73191

Browse files
authored
Add meta.hasSuggestions (#301)
1 parent 7b4ad4b commit fa73191

File tree

6 files changed

+7
-0
lines changed

6 files changed

+7
-0
lines changed

lib/rules/no-octal.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default createRule("no-octal", {
1616
"Replace the octal escape sequence with a hexadecimal escape sequence.",
1717
},
1818
type: "suggestion", // "problem",
19+
hasSuggestions: true,
1920
},
2021
create(context) {
2122
/**

lib/rules/no-unused-capturing-group.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ export default createRule("no-unused-capturing-group", {
196196
removeName: "Remove the unused name.",
197197
},
198198
type: "suggestion", // "problem",
199+
hasSuggestions: true,
199200
},
200201
create(context) {
201202
const fixable: boolean = context.options[0]?.fixable ?? false

lib/rules/no-useless-quantifier.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default createRule("no-useless-quantifier", {
2727
remove: "Remove the '{{quant}}' quantifier.",
2828
},
2929
type: "suggestion", // "problem",
30+
hasSuggestions: true,
3031
},
3132
create(context) {
3233
/**

lib/rules/no-zero-quantifier.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default createRule("no-zero-quantifier", {
2222
remove: "Remove this zero quantifier.",
2323
},
2424
type: "suggestion", // "problem",
25+
hasSuggestions: true,
2526
},
2627
create(context) {
2728
/**

lib/rules/strict.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default createRule("strict", {
7272
"Replace the octal escape with a hexadecimal escape.",
7373
},
7474
type: "suggestion",
75+
hasSuggestions: true,
7576
},
7677
create(context) {
7778
/**

lib/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export interface RuleMetaData {
2929
schema: JSONSchema4 | JSONSchema4[]
3030
deprecated?: boolean
3131
type: "problem" | "suggestion" | "layout"
32+
hasSuggestions?: boolean
3233
}
3334

3435
export interface PartialRuleModule {
@@ -49,4 +50,5 @@ export interface PartialRuleMetaData {
4950
schema: JSONSchema4 | JSONSchema4[]
5051
deprecated?: boolean
5152
type: "problem" | "suggestion" | "layout"
53+
hasSuggestions?: boolean
5254
}

0 commit comments

Comments
 (0)