lancetw/react-isomorphic-bundle

View on GitHub
src/shared/routes.js

Summary

Maintainability
A
1 hr
Test Coverage

Function default has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function (store) {
  return (
    <Route component={App}>
      <Route path="/" component={Home} />
      <Route path="/home" component={Home} />
Severity: Minor
Found in src/shared/routes.js - About 1 hr to fix

    A space is required before closing bracket
    Open

          <Route path="/post" component={Post} store={store} onEnter={auth}/>
    Severity: Minor
    Found in src/shared/routes.js by eslint

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

    The closing bracket must be aligned with the line containing the opening tag (expected column 7 on the next line)
    Open

            onEnter={auth} />
    Severity: Minor
    Found in src/shared/routes.js by eslint

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

    The closing bracket must be aligned with the line containing the opening tag (expected column 7 on the next line)
    Open

            store={store} />
    Severity: Minor
    Found in src/shared/routes.js by eslint

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

    Property should be placed on a new line
    Open

          <Route path="/password" component={ChangePassword}
    Severity: Minor
    Found in src/shared/routes.js by eslint

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

    JSX not allowed in files with extension '.js'
    Open

        <Route component={App}>
    Severity: Minor
    Found in src/shared/routes.js by eslint

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

    The closing bracket must be aligned with the line containing the opening tag (expected column 7 on the next line)
    Open

            store={store} onEnter={auth} />
    Severity: Minor
    Found in src/shared/routes.js by eslint

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

    A space is required before closing bracket
    Open

          <Route path="/post" component={Post} store={store} onEnter={auth}/>
    Severity: Minor
    Found in src/shared/routes.js by eslint

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

    There are no issues that match your filters.

    Category
    Status