huridocs/uwazi

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

Summary

Maintainability
A
0 mins
Test Coverage
B
84%

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/

Prop type "object" is forbidden
Open

  docForm: 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/

Prefer named exports.
Open

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

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/

Prop type "object" is forbidden
Open

  formState: PropTypes.object,

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

Export statements should appear at the end of the file
Open

export class MetadataPanelMenu extends Component {

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

Prop type "object" is forbidden
Open

  templates: PropTypes.object,

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

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

  docForm: PropTypes.object,

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 "formState" is not required, but has no corresponding defaultProps declaration.
Open

  formState: PropTypes.object,

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

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

  loadInReduxForm: PropTypes.func,

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

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

  templates: PropTypes.object,

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

There are no issues that match your filters.

Category
Status