huridocs/uwazi

View on GitHub
app/react/Markdown/components/slider.js

Summary

Maintainability
A
0 mins
Test Coverage
F
13%

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/

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

import React, { Component } from 'react';

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

Missing an explicit type attribute for button
Open

            <button className="slider-btn" onClick={() => this.slide(1)}>

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

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

  initialIndex: PropTypes.number,

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

'title' PropType is defined but prop is never used
Open

  title: PropTypes.string,

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

Prefer named exports.
Open

export default class VictimSlider extends Component {

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

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

  title: PropTypes.string,

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

Prop type "array" is forbidden
Open

  children: PropTypes.array,

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

Export statements should appear at the end of the file
Open

export default class VictimSlider extends Component {

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

Missing an explicit type attribute for button
Open

            <button className="slider-btn" onClick={() => this.slide(-1)}>

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

There are no issues that match your filters.

Category
Status