mirror of
https://github.com/fergalmoran/turnstone.git
synced 2026-01-06 17:14:00 +00:00
Disable ESLint props validation in all child components
This commit is contained in:
@@ -65,7 +65,8 @@
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {
|
||||
"semi": ["error", "never"]
|
||||
"semi": ["error", "never"],
|
||||
"react/prop-types": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.`
|
||||
|
||||
Reference in New Issue
Block a user