huridocs/uwazi

View on GitHub
app/react/Attachments/components/AttachmentForm.js

Summary

Maintainability
A
0 mins
Test Coverage
F
16%

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

  isSourceDocument: 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 AttachmentForm extends Component {

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

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

  onSubmit: PropTypes.func,

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

A control must be associated with a text label.
Open

            <input className="form-control" />

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

Prefer named exports.
Open

export default connect()(AttachmentForm);

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

There are no issues that match your filters.

Category
Status