hummingbird-me/kitsu-web

View on GitHub
app/utils/inject-script.js

Summary

Maintainability
A
1 hr
Test Coverage
B
83%

Function injectBrowser has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function injectBrowser(src) {
  return new RSVP.Promise((resolve, reject) => {
    // script has been loaded in the past or is currently loading
    if (_scriptsLoaded[src]) {
      return resolve();
Severity: Minor
Found in app/utils/inject-script.js - About 1 hr to fix

    Parsing error: Invalid ecmaVersion.
    Open

    import canUseDOM from 'client/utils/can-use-dom';
    Severity: Minor
    Found in app/utils/inject-script.js by eslint

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

    There are no issues that match your filters.

    Category
    Status