Revert "ESLint: Re-enable rule default-props-match-prop-types (#10868)" (#11050)

This reverts commit 9f01a7fdf8.
This commit is contained in:
Grace Guo
2020-09-24 12:33:38 -07:00
committed by GitHub
parent eded51b2f8
commit f99753a800
21 changed files with 60 additions and 13 deletions

View File

@@ -37,6 +37,7 @@ const propTypes = {
const defaultProps = {
onStop: () => {},
onSave: () => {},
disabled: false,
};
// Prolly need to move this to a global context

View File

@@ -35,8 +35,8 @@ const propTypes = {
choices: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.array),
PropTypes.func,
]),
schemes: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
]).isRequired,
schemes: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired,
isLinear: PropTypes.bool,
};

View File

@@ -37,7 +37,7 @@ export const DEFAULT_VIEWPORT = {
const PARAMS = ['longitude', 'latitude', 'zoom', 'bearing', 'pitch'];
const propTypes = {
onChange: PropTypes.func,
onChange: PropTypes.func.isRequired,
value: PropTypes.shape({
longitude: PropTypes.number,
latitude: PropTypes.number,