cattr-app/frontend-application

View on GitHub
app/core/utils/color.js

Summary

Maintainability
A
0 mins
Test Coverage

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Replace ··if·(typeof·background·===·'undefined'·||·background·===·null·||·background·===·'transparent')·{ with if·(⏎····typeof·background·===·"undefined"·||⏎····background·===·null·||⏎····background·===·"transparent"
Open

    if (typeof background === 'undefined' || background === null || background === 'transparent') {
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Replace ········return·'black' with ····return·"black"
Open

        return 'black';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Delete ··
Open

    }
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Delete ··
Open

    const hsl = convert.hex.hsl(background);
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Delete ··
Open

    if (hsl === null) {
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Definition for rule 'vue/attributes-order' was not found
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Replace 'color-convert' with "color-convert"
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Delete ··
Open

    }
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import * as convert from 'color-convert';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Replace ······return·'black' with )·{⏎····return·"black"
Open

        return 'black';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

Replace ····return·hsl[2]·>·50·?·'black'·:·'white' with ··return·hsl[2]·>·50·?·"black"·:·"white"
Open

    return hsl[2] > 50 ? 'black' : 'white';
Severity: Minor
Found in app/core/utils/color.js by eslint

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

There are no issues that match your filters.

Category
Status