GeekPark/gpk_account

View on GitHub
frontend/src/components/share/Select.jsx

Summary

Maintainability
A
0 mins
Test Coverage

'name' PropType is defined but prop is never used
Open

  name: PropTypes.string,

For more information visit Source: http://eslint.org/docs/rules/

Do not use Array index in keys
Open

              <option key={i} value={v[0]}>{v[1]}</option>

For more information visit Source: http://eslint.org/docs/rules/

'disabled' PropType is defined but prop is never used
Open

  disabled: PropTypes.bool,

For more information visit Source: http://eslint.org/docs/rules/

propType "value" is not required, but has no corresponding defaultProp declaration.
Open

  value: PropTypes.any,

For more information visit Source: http://eslint.org/docs/rules/

propType "onChange" is not required, but has no corresponding defaultProp declaration.
Open

  onChange: PropTypes.func,

For more information visit Source: http://eslint.org/docs/rules/

'value' PropType is defined but prop is never used
Open

  value: PropTypes.any,

For more information visit Source: http://eslint.org/docs/rules/

'options' PropType is defined but prop is never used
Open

  options: PropTypes.array.isRequired,

For more information visit Source: http://eslint.org/docs/rules/

propType "name" is not required, but has no corresponding defaultProp declaration.
Open

  name: PropTypes.string,

For more information visit Source: http://eslint.org/docs/rules/

Prop type any is forbidden
Open

  value: PropTypes.any,

For more information visit Source: http://eslint.org/docs/rules/

Using string literals in ref attributes is deprecated.
Open

        <select defaultValue={props.value} name={props.name} ref="select" disabled={props.disabled} onChange={props.onChange}>

For more information visit Source: http://eslint.org/docs/rules/

Prop type array is forbidden
Open

  options: PropTypes.array.isRequired,

For more information visit Source: http://eslint.org/docs/rules/

'className' PropType is defined but prop is never used
Open

  className: PropTypes.string,

For more information visit Source: http://eslint.org/docs/rules/

'onChange' PropType is defined but prop is never used
Open

  onChange: PropTypes.func,

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status