Skip to content

Commit c7a270d

Browse files
committed
Add missing dot.
1 parent e7d1bb0 commit c7a270d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

rules/shared/no-array-mutate-rule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ function noArrayMutateRule(methodName) {
4141
const messages = {
4242
[MESSAGE_ID_ERROR]: `Use \`Array#${replacement}()\` instead of \`Array#${methodName}()\`.`,
4343
[MESSAGE_ID_SUGGESTION_APPLY_REPLACEMENT]: `Switch to \`.${replacement}()\`.`,
44-
[MESSAGE_ID_SUGGESTION_SPREADING_ARRAY]: 'The spreading object is an array',
45-
[MESSAGE_ID_SUGGESTION_NOT_SPREADING_ARRAY]: 'The spreading object is NOT an array',
44+
[MESSAGE_ID_SUGGESTION_SPREADING_ARRAY]: 'The spreading object is an array.',
45+
[MESSAGE_ID_SUGGESTION_NOT_SPREADING_ARRAY]: 'The spreading object is NOT an array.',
4646
};
4747

4848
/** @param {import('eslint').Rule.RuleContext} context */

test/snapshots/no-array-reverse.js.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ Generated by [AVA](https://avajs.dev).
1919
| ^^^^^^^ Use \`Array#toReversed()\` instead of \`Array#reverse()\`.␊
2020
2121
--------------------------------------------------------------------------------␊
22-
Suggestion 1/2: The spreading object is an array␊
22+
Suggestion 1/2: The spreading object is an array.
2323
1 | reversed = array.toReversed()␊
2424
2525
--------------------------------------------------------------------------------␊
26-
Suggestion 2/2: The spreading object is NOT an array␊
26+
Suggestion 2/2: The spreading object is NOT an array.
2727
1 | reversed = [...array].toReversed()␊
2828
`
2929

@@ -42,11 +42,11 @@ Generated by [AVA](https://avajs.dev).
4242
| ^^^^^^^ Use \`Array#toReversed()\` instead of \`Array#reverse()\`.␊
4343
4444
--------------------------------------------------------------------------------␊
45-
Suggestion 1/2: The spreading object is an array␊
45+
Suggestion 1/2: The spreading object is an array.
4646
1 | reversed = array?.toReversed()␊
4747
4848
--------------------------------------------------------------------------------␊
49-
Suggestion 2/2: The spreading object is NOT an array␊
49+
Suggestion 2/2: The spreading object is NOT an array.
5050
1 | reversed = [...array]?.toReversed()␊
5151
`
5252

@@ -171,11 +171,11 @@ Generated by [AVA](https://avajs.dev).
171171
| ^^^^^^^ Use \`Array#toReversed()\` instead of \`Array#reverse()\`.␊
172172
173173
--------------------------------------------------------------------------------␊
174-
Suggestion 1/2: The spreading object is an array␊
174+
Suggestion 1/2: The spreading object is an array.
175175
1 | array.toReversed()␊
176176
177177
--------------------------------------------------------------------------------␊
178-
Suggestion 2/2: The spreading object is NOT an array␊
178+
Suggestion 2/2: The spreading object is NOT an array.
179179
1 | [...array].toReversed()␊
180180
`
181181

@@ -194,10 +194,10 @@ Generated by [AVA](https://avajs.dev).
194194
| ^^^^^^^ Use \`Array#toReversed()\` instead of \`Array#reverse()\`.␊
195195
196196
--------------------------------------------------------------------------------␊
197-
Suggestion 1/2: The spreading object is an array␊
197+
Suggestion 1/2: The spreading object is an array.
198198
1 | reversed = (0, array).toReversed()␊
199199
200200
--------------------------------------------------------------------------------␊
201-
Suggestion 2/2: The spreading object is NOT an array␊
201+
Suggestion 2/2: The spreading object is NOT an array.
202202
1 | reversed = [...(0, array)].toReversed()␊
203203
`
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)