Skip to content

Commit bd97347

Browse files
authored
Docs: fix some errors in rule example. (#52)
1 parent 786fc92 commit bd97347

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/rules/prefer-replace-text.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The rule reports an error if `replaceTextRange`'s first argument is an array of
77
Examples of **incorrect** code for this rule:
88

99
```js
10-
/* eslint eslint-plugin/prefer-text-range: error */
10+
/* eslint eslint-plugin/prefer-replace-text: error */
1111
module.exports = {
1212
create(context) {
1313
context.report({
@@ -23,7 +23,7 @@ module.exports = {
2323
Examples of **correct** code for this rule:
2424

2525
```js
26-
/* eslint eslint-plugin/prefer-text-range: error */
26+
/* eslint eslint-plugin/prefer-replace-text: error */
2727
module.exports = {
2828
create(context) {
2929
context.report({

docs/rules/test-case-property-ordering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Examples of **incorrect** code for this rule:
3131
// invalid; extra properties should need to be placed afterwards.
3232
{
3333
code: "foo",
34-
env: { es6: true }
34+
env: { es6: true },
3535
output: "bar",
3636
options: ["baz"],
3737
}

docs/rules/test-case-shorthand-strings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ ruleTester.run('example-rule', rule, {
139139
},
140140
{
141141
code: 'anotherValidTestCase'
142-
}
142+
},
143143
{
144144
code: 'testCaseWithOption',
145145
options: ["foo"]
@@ -150,7 +150,7 @@ ruleTester.run('example-rule', rule, {
150150

151151
ruleTester.run('example-rule', rule, {
152152
valid: [
153-
'validTestCase;'
153+
'validTestCase;',
154154
'anotherValidTestCase'
155155
],
156156
invalid: []
@@ -218,7 +218,7 @@ Examples of **correct** code for this rule with the `consistent-as-needed` optio
218218

219219
ruleTester.run('example-rule', rule, {
220220
valid: [
221-
'validTestCase;'
221+
'validTestCase;',
222222
'anotherValidTestCase;'
223223
],
224224
invalid: []

0 commit comments

Comments
 (0)