huridocs/uwazi

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

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/

Prefer named exports.
Open

export default connect(mapStateToProps)(PieChartComponent);

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

Export statements should appear at the end of the file
Open

export const PieChartComponent = 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';

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

There are no issues that match your filters.

Category
Status