Skip to content

Commit

Permalink
feat: upgrading eslint-plugin-unicorn and enabling the import-style rule
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Sep 18, 2020
1 parent f9fcafd commit 9bdbf1a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 69 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module.exports = {
// "unicorn/consistent-function-scoping": "error", // Maybe?
'unicorn/custom-error-definition': 'error',
'unicorn/error-message': 'error',
'unicorn/import-style': 'error',
'unicorn/new-for-builtins': 'error',
'unicorn/no-array-instanceof': 'error',
'no-nested-ternary': 'off', // Disabled in favor of `unicorn/no-nested-ternary` which has better nesting detection.
Expand Down
107 changes: 39 additions & 68 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-sonarjs": "^0.5.0",
"eslint-plugin-unicorn": "^21.0.0"
"eslint-plugin-unicorn": "^22.0.0"
},
"peerDependencies": {
"eslint": "^7.0.0",
Expand Down

0 comments on commit 9bdbf1a

Please sign in to comment.