huridocs/uwazi

View on GitHub
app/react/ConnectionsList/components/SearchBar.js

Summary

Maintainability
A
0 mins
Test Coverage
A
93%

JSX props should not use .bind()
Open

              <Icon icon="times" onClick={this.resetSearch.bind(this)} />

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

propType "entityId" is not required, but has no corresponding defaultProps declaration.
Open

  entityId: PropTypes.string,

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

Export statements should appear at the end of the file
Open

export function mapStateToProps({ relationships }) {

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

Definition for rule 'node/no-restricted-import' was not found.
Open

import PropTypes from 'prop-types';

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

propType "search" is not required, but has no corresponding defaultProps declaration.
Open

  search: PropTypes.object,

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

Prefer named exports.
Open

export default connect(mapStateToProps, mapDispatchToProps)(SearchBar);

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

Export statements should appear at the end of the file
Open

export class SearchBar extends Component {

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

Prop type "object" is forbidden
Open

  search: PropTypes.object,

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

A control must be associated with a text label.
Open

              <input

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

There are no issues that match your filters.

Category
Status