Skip to content

Commit

Permalink
require-array-join-separator: Rename from array-join-separator (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish authored May 19, 2021
1 parent 1a51db5 commit a9009f6
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ module.exports = {
'unicorn'
],
rules: {
'unicorn/array-join-separator': 'error',
'unicorn/better-regex': 'error',
'unicorn/catch-error-name': 'error',
'unicorn/consistent-destructuring': 'error',
Expand Down Expand Up @@ -118,6 +117,7 @@ module.exports = {
'unicorn/prefer-ternary': 'error',
'unicorn/prefer-type-error': 'error',
'unicorn/prevent-abbreviations': 'error',
'unicorn/require-array-join-separator': 'error',
'unicorn/string-content': 'off',
'unicorn/throw-new-error': 'error'
}
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Configure it in `package.json`.
"unicorn"
],
"rules": {
"unicorn/array-join-separator": "error",
"unicorn/better-regex": "error",
"unicorn/catch-error-name": "error",
"unicorn/consistent-destructuring": "error",
Expand Down Expand Up @@ -113,6 +112,7 @@ Configure it in `package.json`.
"unicorn/prefer-ternary": "error",
"unicorn/prefer-type-error": "error",
"unicorn/prevent-abbreviations": "error",
"unicorn/require-array-join-separator": "error",
"unicorn/string-content": "off",
"unicorn/throw-new-error": "error"
}
Expand All @@ -133,7 +133,6 @@ Each rule has emojis denoting:

| Name                                          | Description || 🔧 |
| :-- | :-- | :-- | :-- |
| [array-join-separator](docs/rules/array-join-separator.md) | Enforce using the separator argument with `Array#join()`. || 🔧 |
| [better-regex](docs/rules/better-regex.md) | Improve regexes by making them shorter, consistent, and safer. || 🔧 |
| [catch-error-name](docs/rules/catch-error-name.md) | Enforce a specific parameter name in catch clauses. || 🔧 |
| [consistent-destructuring](docs/rules/consistent-destructuring.md) | Use destructured variables over properties. || 🔧 |
Expand Down Expand Up @@ -210,6 +209,7 @@ Each rule has emojis denoting:
| [prefer-ternary](docs/rules/prefer-ternary.md) | Prefer ternary expressions over simple `if-else` statements. || 🔧 |
| [prefer-type-error](docs/rules/prefer-type-error.md) | Enforce throwing `TypeError` in type checking conditions. || 🔧 |
| [prevent-abbreviations](docs/rules/prevent-abbreviations.md) | Prevent abbreviations. || 🔧 |
| [require-array-join-separator](docs/rules/require-array-join-separator.md) | Enforce using the separator argument with `Array#join()`. || 🔧 |
| [string-content](docs/rules/string-content.md) | Enforce better string content. | | 🔧 |
| [throw-new-error](docs/rules/throw-new-error.md) | Require `new` when throwing an error. || 🔧 |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const {isCommaToken} = require('eslint-utils');
const getDocumentationUrl = require('./utils/get-documentation-url');
const methodSelector = require('./utils/method-selector');

const MESSAGE_ID = 'array-join-separator';
const MESSAGE_ID = 'require-array-join-separator';
const messages = {
[MESSAGE_ID]: 'Missing the separator argument.'
};
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Snapshot report for `test/array-join-separator.mjs`
# Snapshot report for `test/require-array-join-separator.mjs`

The actual snapshot is saved in `array-join-separator.mjs.snap`.
The actual snapshot is saved in `require-array-join-separator.mjs.snap`.

Generated by [AVA](https://avajs.dev).

Expand Down

0 comments on commit a9009f6

Please sign in to comment.