Skip to content

Commit

Permalink
Fix swapped rule descriptions (#1187)
Browse files Browse the repository at this point in the history
  • Loading branch information
willheslam authored Apr 21, 2021
1 parent 25896a6 commit 65378cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ Each rule has emojis denoting:
| [numeric-separators-style](docs/rules/numeric-separators-style.md) | Enforce the style of numeric separators by correctly grouping digits. | | 🔧 |
| [prefer-add-event-listener](docs/rules/prefer-add-event-listener.md) | Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions. || 🔧 |
| [prefer-array-find](docs/rules/prefer-array-find.md) | Prefer `.find(…)` over the first element from `.filter(…)`. || 🔧 |
| [prefer-array-flat](docs/rules/prefer-array-flat.md) | Prefer `.flatMap(…)` over `.map(…).flat()`. | | 🔧 |
| [prefer-array-flat-map](docs/rules/prefer-array-flat-map.md) | Prefer `Array#flat()` over legacy techniques to flatten arrays. | | 🔧 |
| [prefer-array-flat](docs/rules/prefer-array-flat.md) | Prefer `Array#flat()` over legacy techniques to flatten arrays. | | 🔧 |
| [prefer-array-flat-map](docs/rules/prefer-array-flat-map.md) | Prefer `.flatMap(…)` over `.map(…).flat()`. | | 🔧 |
| [prefer-array-index-of](docs/rules/prefer-array-index-of.md) | Prefer `Array#indexOf()` over `Array#findIndex()` when looking for the index of an item. || 🔧 |
| [prefer-array-some](docs/rules/prefer-array-some.md) | Prefer `.some(…)` over `.find(…)`. || |
| [prefer-date-now](docs/rules/prefer-date-now.md) | Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch. || 🔧 |
Expand Down
2 changes: 1 addition & 1 deletion rules/prefer-array-flat-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
description: 'Prefer `Array#flat()` over legacy techniques to flatten arrays.',
description: 'Prefer `.flatMap(…)` over `.map(…).flat()`.',
url: getDocumentationUrl(__filename)
},
fixable: 'code',
Expand Down
2 changes: 1 addition & 1 deletion rules/prefer-array-flat.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
description: 'Prefer `.flatMap(…)` over `.map(…).flat()`.',
description: 'Prefer `Array#flat()` over legacy techniques to flatten arrays.',
url: getDocumentationUrl(__filename)
},
fixable: 'code',
Expand Down

0 comments on commit 65378cb

Please sign in to comment.