Add ESLint rule forbidding extraneous defaultProps (#7453)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent a271e7f456
commit 659b4360bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .eslintrc
  2. 4
      ui/app/components/app/dropdowns/components/dropdown.js
  3. 1
      ui/app/components/ui/tooltip-v2.js
  4. 1
      ui/app/pages/first-time-flow/seed-phrase/confirm-seed-phrase/draggable-seed.component.js

@ -149,6 +149,7 @@
"padded-blocks": "off",
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"react/no-deprecated": 0,
"react/default-props-match-prop-types": 2,
"semi": [2, "never"],
"semi-spacing": [2, { "before": false, "after": true }],
"space-before-blocks": [2, "always"],

@ -4,8 +4,6 @@ const h = require('react-hyperscript')
const MenuDroppo = require('../../menu-droppo')
const extend = require('xtend')
const noop = () => {}
class Dropdown extends Component {
render () {
const {
@ -55,8 +53,6 @@ class Dropdown extends Component {
}
Dropdown.defaultProps = {
isOpen: false,
onClick: noop,
useCssTransition: false,
}

@ -7,7 +7,6 @@ export default class Tooltip extends PureComponent {
arrow: true,
children: null,
containerClassName: '',
hideOnClick: false,
html: null,
onHidden: null,
position: 'left',

@ -25,7 +25,6 @@ class DraggableSeed extends Component {
static defaultProps = {
className: '',
onClick () {},
}
componentWillReceiveProps (nextProps) {

Loading…
Cancel
Save