From 5d9bc8ad15d7fc23d91a6229b779c606198508ab Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Wed, 22 Apr 2020 21:50:03 +0200 Subject: [PATCH 1/2] [test] disable react/prop-types in tests --- .eslintrc.js | 3 +++ packages/material-ui/src/Portal/Portal.test.js | 1 - packages/material-ui/src/Select/Select.test.js | 1 - packages/material-ui/src/SvgIcon/SvgIcon.test.js | 1 - packages/material-ui/test/integration/NestedMenu.test.js | 1 - 5 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index ed483a34c27e35..92d78701121427 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -131,6 +131,9 @@ module.exports = { // They are accessed to test custom validator implementation with PropTypes.checkPropTypes 'react/forbid-foreign-prop-types': 'off', + // components that are defined in test are isolated enough + // that they don't need type-checking + 'react/prop-types': 'off', }, }, { diff --git a/packages/material-ui/src/Portal/Portal.test.js b/packages/material-ui/src/Portal/Portal.test.js index 5cd91873d0451c..4e47d3fc61b0e5 100644 --- a/packages/material-ui/src/Portal/Portal.test.js +++ b/packages/material-ui/src/Portal/Portal.test.js @@ -1,4 +1,3 @@ -/* eslint-disable react/prop-types */ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; diff --git a/packages/material-ui/src/Select/Select.test.js b/packages/material-ui/src/Select/Select.test.js index 4db60d2d528b4f..f654cfc36ff384 100644 --- a/packages/material-ui/src/Select/Select.test.js +++ b/packages/material-ui/src/Select/Select.test.js @@ -833,7 +833,6 @@ describe('