Skip to content

Commit

Permalink
Fix the lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianbote committed Oct 31, 2019
1 parent a81e96b commit f194093
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions compat/test/browser/forwardRef.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,9 @@ describe('forwardRef', () => {
let _ref = null;
let _set = null;
const Inner = forwardRef((props, ref) => {
const [_, setState] = useState(null);
const _hook = useState(null);
_ref = ref;
_set = setState;
_set = _hook.setState;
return <div ref={ref} />;
});

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
"lint": "eslint src test debug compat hooks test-utils"
},
"eslintConfig": {
"extends": ["developit", "prettier"],
"extends": [
"developit",
"prettier"
],
"settings": {
"react": {
"pragma": "createElement"
Expand Down

0 comments on commit f194093

Please sign in to comment.