Disable ESLint props validation in all child components

This commit is contained in:
Tom Southall
2022-02-13 20:56:30 +00:00
parent 762db58b97
commit c6fb80ecec
2 changed files with 5 additions and 2 deletions

View File

@@ -65,7 +65,8 @@
"sourceType": "module"
},
"rules": {
"semi": ["error", "never"]
"semi": ["error", "never"],
"react/prop-types": 0
}
}
}

View File

@@ -1,3 +1,5 @@
/* eslint react/prop-types: 1 */
import React from 'react'
import PropTypes from 'prop-types'
import { TurnstoneContextProvider } from './context/turnstone'
@@ -17,7 +19,7 @@ export default function Turnstone(props) {
}
//////////////////////////////////////////////////////
// Prop validation //
// Prop validation //
//////////////////////////////////////////////////////
const msgBothRequired = `Either a "data" prop or an "itemGroups" prop must be provided. Both are missing.`