Skip to content

Commit

Permalink
Update eslint to v7.7.0
Browse files Browse the repository at this point in the history
Update hook test since eslint now supports nullish coalescing
  • Loading branch information
Pascal Fong Kye committed Aug 29, 2020
1 parent 0b0c734 commit c5d356f
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 193 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"create-react-class": "^15.6.3",
"danger": "^9.2.10",
"error-stack-parser": "^2.0.6",
"eslint": "^7.0.0",
"eslint": "^7.7.0",
"eslint-config-fbjs": "^1.1.1",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-babel": "^5.3.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -752,9 +752,7 @@ const tests = {
errors: [
conditionalError('useState'),
conditionalError('useState'),
// TODO: ideally this *should* warn, but ESLint
// doesn't plan full support for ?? until it advances.
// conditionalError('useState'),
conditionalError('useState'),
],
},
{
Expand Down
Loading

0 comments on commit c5d356f

Please sign in to comment.