Skip to content

Commit 61bcd20

Browse files
Consistent message formatting (#112)
1 parent 599e578 commit 61bcd20

32 files changed

+306
-306
lines changed

lib/rules/match-any.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default createRule("match-any", {
5353
},
5454
],
5555
messages: {
56-
unexpected: 'Unexpected using "{{expr}}" to match any character.',
56+
unexpected: "Unexpected using '{{expr}}' to match any character.",
5757
},
5858
type: "suggestion", // "problem",
5959
},

lib/rules/no-dupe-characters-character-class.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ export default createRule("no-dupe-characters-character-class", {
257257
},
258258
schema: [],
259259
messages: {
260-
duplicates: 'Unexpected element "{{element}}" duplication.',
261-
charIsIncluded: 'The "{{char}}" is included in "{{element}}".',
260+
duplicates: "Unexpected element '{{element}}' duplication.",
261+
charIsIncluded: "The '{{char}}' is included in '{{element}}'.",
262262
intersect:
263-
'Unexpected intersection of "{{elementA}}" and "{{elementB}}" was found "{{intersection}}".',
263+
"Unexpected intersection of '{{elementA}}' and '{{elementB}}' was found '{{intersection}}'.",
264264
},
265265
},
266266
create(context) {

lib/rules/no-escape-backspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default createRule("no-escape-backspace", {
1515
},
1616
schema: [],
1717
messages: {
18-
unexpected: 'Unexpected "[\\b]". Use "\\u0008" instead.',
18+
unexpected: "Unexpected '[\\b]'. Use '\\u0008' instead.",
1919
},
2020
type: "suggestion", // "problem",
2121
},

lib/rules/no-invisible-character.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default createRule("no-invisible-character", {
2020
schema: [],
2121
messages: {
2222
unexpected:
23-
'Unexpected invisible character. Use "{{instead}}" instead.',
23+
"Unexpected invisible character. Use '{{instead}}' instead.",
2424
},
2525
type: "suggestion", // "problem",
2626
},

lib/rules/no-octal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default createRule("no-octal", {
1010
},
1111
schema: [],
1212
messages: {
13-
unexpected: 'Unexpected octal escape sequence "{{expr}}".',
13+
unexpected: "Unexpected octal escape sequence '{{expr}}'.",
1414
},
1515
type: "suggestion", // "problem",
1616
},

lib/rules/no-useless-exactly-quantifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default createRule("no-useless-exactly-quantifier", {
1515
},
1616
schema: [],
1717
messages: {
18-
unexpected: 'Unexpected quantifier "{{expr}}".',
18+
unexpected: "Unexpected quantifier '{{expr}}'.",
1919
},
2020
type: "suggestion", // "problem",
2121
},

lib/rules/no-useless-two-nums-quantifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default createRule("no-useless-two-nums-quantifier", {
1717
fixable: "code",
1818
schema: [],
1919
messages: {
20-
unexpected: 'Unexpected quantifier "{{expr}}".',
20+
unexpected: "Unexpected quantifier '{{expr}}'.",
2121
},
2222
type: "suggestion", // "problem",
2323
},

lib/rules/prefer-character-class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default createRule("prefer-character-class", {
2929
schema: [],
3030
messages: {
3131
unexpected:
32-
'Unexpected the disjunction of single element alternatives. Use character class "[...]" instead.',
32+
"Unexpected the disjunction of single element alternatives. Use character class '[...]' instead.",
3333
},
3434
type: "suggestion", // "problem",
3535
},

lib/rules/prefer-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default createRule("prefer-d", {
2020
schema: [],
2121
messages: {
2222
unexpected:
23-
'Unexpected {{type}} "{{expr}}". Use "{{instead}}" instead.',
23+
"Unexpected {{type}} '{{expr}}'. Use '{{instead}}' instead.",
2424
},
2525
type: "suggestion", // "problem",
2626
},

lib/rules/prefer-plus-quantifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default createRule("prefer-plus-quantifier", {
1717
fixable: "code",
1818
schema: [],
1919
messages: {
20-
unexpected: 'Unexpected quantifier "{{expr}}". Use "+" instead.',
20+
unexpected: "Unexpected quantifier '{{expr}}'. Use '+' instead.",
2121
},
2222
type: "suggestion", // "problem",
2323
},

0 commit comments

Comments
 (0)