Skip to content

Commit 9bdbf1a

Browse files
committed
feat: upgrading eslint-plugin-unicorn and enabling the import-style rule
1 parent f9fcafd commit 9bdbf1a

File tree

3 files changed

+41
-69
lines changed

3 files changed

+41
-69
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ module.exports = {
4545
// "unicorn/consistent-function-scoping": "error", // Maybe?
4646
'unicorn/custom-error-definition': 'error',
4747
'unicorn/error-message': 'error',
48+
'unicorn/import-style': 'error',
4849
'unicorn/new-for-builtins': 'error',
4950
'unicorn/no-array-instanceof': 'error',
5051
'no-nested-ternary': 'off', // Disabled in favor of `unicorn/no-nested-ternary` which has better nesting detection.

package-lock.json

Lines changed: 39 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"eslint-plugin-prettier": "^3.1.1",
2828
"eslint-plugin-react": "^7.17.0",
2929
"eslint-plugin-sonarjs": "^0.5.0",
30-
"eslint-plugin-unicorn": "^21.0.0"
30+
"eslint-plugin-unicorn": "^22.0.0"
3131
},
3232
"peerDependencies": {
3333
"eslint": "^7.0.0",

0 commit comments

Comments
 (0)