Skip to content

Commit 61b1e5a

Browse files
committedAug 5, 2021
Relax unicorn/numeric-separators-style
1 parent d9a39d3 commit 61b1e5a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ Then add a `.eslintrc` with the following:
7373

7474
* :wrench: [`unicorn/catch-error-name`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/catch-error-name.md)*changed* – I prefer `err` over `error` as I find `error`to be a far too similar name to the built in `Error` class
7575
* :mute: [`unicorn/explicit-length-check`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/explicit-length-check.md)*deactivated* – I don't see an issue with `if (string.length)` instead of `if (string.length !== 0)`
76+
* :wrench: [`unicorn/numeric-separators-style`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/numeric-separators-style.md)*changed* – require at least 6 digits in standard numbers for separators
7677
* :warning: [`unicorn/prefer-add-event-listener`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-add-event-listener.md)*changed* – set to `warn` instead of `error`
77-
* :mute: [`unicorn/prefer-module`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-module.md)*changed* – deactivated, each project needs to activate this one themselves for now
78+
* :mute: [`unicorn/prefer-module`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-module.md)*deactivated* each project needs to activate this one themselves for now
7879
* :warning: [`unicorn/prefer-spread`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-spread.md)*changed* – set to `warn` instead of `error`
7980
* :mute: [`unicorn/prevent-abbreviations`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prevent-abbreviations.md)*deactivated* – same as `unicorn/catch-error-name`, I prefer an abbreviated `err` over a non-abbreviated `error`because the latter is too similar to `Error` for my taste
8081

‎eslintrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262

6363
"unicorn/catch-error-name": ["error", {"name": "err"}],
6464
"unicorn/explicit-length-check": "off",
65+
"unicorn/numeric-separators-style": ["error", {"number": { "minimumDigits": 6 }}],
6566
"unicorn/prefer-add-event-listener": "warn",
6667
"unicorn/prefer-module": "off",
6768
"unicorn/prefer-spread": "warn",

0 commit comments

Comments
 (0)