huridocs/uwazi

View on GitHub
app/react/ConnectionsList/components/ToggleStyleButtons.js

Summary

Maintainability
A
0 mins
Test Coverage
B
88%

Export statements should appear at the end of the file
Open

export function mapStateToProps({ connectionsList }) {

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

Prefer named exports.
Open

export default connect(mapStateToProps, mapDispatchToProps)(ToggleStyleButtons);

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

Missing an explicit type attribute for button
Open

        <button

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

Export statements should appear at the end of the file
Open

export class ToggleStyleButtons extends Component {

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

Missing an explicit type attribute for button
Open

        <button

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

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

  view: 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/

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

  switchView: PropTypes.func,

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

There are no issues that match your filters.

Category
Status