Skip to content
Permalink
Browse files

Enable prop-type eslint rule.

  • Loading branch information...
ghengeveld committed Feb 21, 2019
1 parent 45659ed commit b4d89f820611b0cea9ae1517de9436444139c705
Showing with 5 additions and 1 deletion.
  1. +0 −1 .eslintrc
  2. +1 −0 src/Async.js
  3. +2 −0 src/Async.spec.js
  4. +2 −0 src/useAsync.spec.js
@@ -12,7 +12,6 @@
},
"plugins": ["jest", "promise", "react", "react-hooks"],
"rules": {
"react/prop-types": "off",
"react-hooks/rules-of-hooks": "error"
},
"settings": {
@@ -161,6 +161,7 @@ export const createInstance = (defaultProps = {}, displayName = "Async") => {

if (PropTypes) {
Async.propTypes = {
children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
promiseFn: PropTypes.func,
deferFn: PropTypes.func,
watch: PropTypes.any,
@@ -1,3 +1,5 @@
/* eslint-disable react/prop-types */

import "jest-dom/extend-expect"
import React from "react"
import { render, fireEvent, cleanup, waitForElement } from "react-testing-library"
@@ -1,3 +1,5 @@
/* eslint-disable react/prop-types */

import "jest-dom/extend-expect"
import React from "react"
import { render, fireEvent, cleanup, waitForElement } from "react-testing-library"

0 comments on commit b4d89f8

Please sign in to comment.
You can’t perform that action at this time.