huridocs/uwazi

View on GitHub

Showing 3,439 of 3,635 total issues

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/

Export statements should appear at the end of the file
Open

export class SearchForm extends Component {

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

Export statements should appear at the end of the file
Open

export class SearchResults extends Component {

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

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

  buttons: PropTypes.array,

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

Prop type "array" is forbidden
Open

  links: PropTypes.array,

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

Prop spreading is forbidden
Open

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

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

Prefer named exports.
Open

export default MarkdownViewer;
Severity: Minor
Found in app/react/Markdown/MarkdownViewer.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 { Parser as HTMLParser } from 'htmlparser2';

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

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

/**

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

Prop spreading is forbidden
Open

          {...props}

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

img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.
Open

        <img src="img1.jpg" />

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

Do not use Array index in keys
Open

            <PagesContext.Provider value={item} key={index}>

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

Do not use Array index in keys
Open

              <Cell key={index} fill={sliceColors[index % sliceColors.length]} />

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

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

import ImageGallery from 'react-image-gallery';

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

Export statements should appear at the end of the file
Open

export class ValueComponent extends Component {

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

Export statements should appear at the end of the file
Open

export const GaugeChartComponent = props => {

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';
Severity: Minor
Found in app/react/Markdown/components/Map.js by eslint

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

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

  visibleCount: PropTypes.number,

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

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

  children: PropTypes.array,

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

A control must be associated with a text label.
Open

            <input className="form-control" type="text" placeholder={placeholder} />

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

Severity
Category
Status
Source
Language