huridocs/uwazi

View on GitHub
app/react/Viewer/components/ViewerDefaultMenu.js

Summary

Maintainability
A
0 mins
Test Coverage
F
50%

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

  targetDoc: PropTypes.bool,

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

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

  openPanel: PropTypes.func,

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

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

  panelIsOpen: PropTypes.bool,

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

Export statements should appear at the end of the file
Open

export class ViewerDefaultMenu extends Component {

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

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

  targetDoc: PropTypes.bool,

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/

Prop type "object" is forbidden
Open

  doc: PropTypes.object,

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

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

  doc: PropTypes.object,

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

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

  active: PropTypes.bool,

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

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

  doc: PropTypes.object,

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

Prefer named exports.
Open

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

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

There are no issues that match your filters.

Category
Status