huridocs/uwazi

View on GitHub
app/react/Connections/components/SearchResults.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

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

  onClick: PropTypes.func,

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/

Prefer named exports.
Open

export default SearchResults;

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

Export statements should appear at the end of the file
Open

export class SearchResults extends Component {

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

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

  searching: PropTypes.bool,

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

Do not use Array index in keys
Open

        key={index}

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

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

  selected: PropTypes.string,

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

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

  results: PropTypes.object,

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

Prop type "object" is forbidden
Open

  results: PropTypes.object,

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

There are no issues that match your filters.

Category
Status