huridocs/uwazi

View on GitHub
app/react/Documents/components/TocForm.js

Summary

Maintainability
A
0 mins
Test Coverage
F
18%

A control must be associated with a text label.
Open

                <input className="form-control" />

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

Export statements should appear at the end of the file
Open

export class TocForm extends Component {

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

Prop type "object" is forbidden
Open

  file: PropTypes.object.isRequired,

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

Prefer named exports.
Open

export default TocForm;

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

Prop type "array" is forbidden
Open

  toc: PropTypes.array,

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/

Do not use Array index in keys
Open

          <div className={`toc-indent-${tocElement.indentation}`} key={index}>

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

There are no issues that match your filters.

Category
Status