huridocs/uwazi

View on GitHub
app/react/Charts/components/LibraryCharts.js

Summary

Maintainability
A
0 mins
Test Coverage
A
97%

Export statements should appear at the end of the file
Open

export class LibraryCharts extends Component {

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

Prop type "object" is forbidden
Open

  templates: PropTypes.object,

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

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

  templates: PropTypes.object,

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

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

  fields: PropTypes.object,

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

Do not use Array index in keys
Open

                key={index}

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

Prop type "object" is forbidden
Open

  collection: PropTypes.object,

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

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

  collection: PropTypes.object,

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

Prefer named exports.
Open

export default connect(mapStateToProps)(LibraryCharts);

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

Prop type "object" is forbidden
Open

  fields: PropTypes.object,

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

Prop type "object" is forbidden
Open

  aggregations: PropTypes.object,

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

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

  aggregations: PropTypes.object,

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

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

  storeKey: PropTypes.string,

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

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

  translationContext: PropTypes.string,

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/

There are no issues that match your filters.

Category
Status