huridocs/uwazi

View on GitHub

Showing 3,439 of 3,635 total issues

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

  data: PropTypes.array,
Severity: Minor
Found in app/react/Charts/components/Pie.js by eslint

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

Definition for rule 'node/no-restricted-import' was not found.
Open

import React from 'react';

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

Definition for rule 'node/no-restricted-import' was not found.
Open

import { actions as formActions } from 'react-redux-form';

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

Prop spreading is forbidden
Open

    component = shallow(<AttachmentsList {...props} />);

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

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

  languages: PropTypes.object,

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

Prefer named exports.
Open

export default Captcha;

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

Export statements should appear at the end of the file
Open

export class FormGroup extends Component {

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

Declare only one React component per file
Open

export class FormGroup extends Component {

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/

Prefer named exports.
Open

export default class LinkField extends Component {

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 "array" is forbidden
Open

  value: PropTypes.array,

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

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

  onChange: PropTypes.func,

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

parseValue should be placed after onChange
Open

  parseValue(rows = []) {
Severity: Minor
Found in app/react/Forms/components/Nested.js by eslint

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

Use callback in setState when referencing the previous state.
Open

    const values = { ...this.state.values, [key]: [], [`${key}any`]: e.target.checked };

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

Prop type "object" is forbidden
Open

  value: PropTypes.object,

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

Export statements should appear at the end of the file
Open

export default class NumericRangeSlide extends Component {

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

Prop type "array" is forbidden
Open

  options: PropTypes.array.isRequired,

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

Prop spreading is forbidden
Open

    component = shallow(<Nested {...props} />);

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

Prop spreading is forbidden
Open

      component = shallow(<RadioButtons {...props} />);

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

Severity
Category
Status
Source
Language