huridocs/uwazi

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

Summary

Maintainability
A
0 mins
Test Coverage
A
91%

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

  closePanel: PropTypes.func,

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

Prefer named exports.
Open

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

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/

Export statements should appear at the end of the file
Open

export class ConfirmCloseForm extends Component {

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

  hideModal: PropTypes.func,

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

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

  resetForm: PropTypes.func,

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

There are no issues that match your filters.

Category
Status