believer/telefonnummer

View on GitHub

Showing 64 of 64 total issues

File riktnummer.ts has 274 lines of code (exceeds 250 allowed). Consider refactoring.
Open

export const RIKTNUMMER = [
  '011 Norrköping',
  '0120 Åtvidaberg',
  '0121 Söderköping',
  '0122 Finspång',
Severity: Minor
Found in lib/riktnummer.ts - About 2 hrs to fix

    Function phoneNumberParser has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
    Open

    export const phoneNumberParser = (
      phoneNumber: string,
      options: ParserOptions = { internationalized: false, separator: '-' }
    ): string => {
      const { separator } = options
    Severity: Minor
    Found in lib/parser.ts - About 1 hr to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Definition for rule '@typescript-eslint/no-triple-slash-reference' was not found.
    Open

    module.exports = {
    Severity: Minor
    Found in jest.config.js by eslint

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

    Definition for rule '@typescript-eslint/no-explicit-any' was not found.
    Open

    module.exports = {
    Severity: Minor
    Found in jest.config.js by eslint

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

    Definition for rule '@typescript-eslint/no-var-requires' was not found.
    Open

    module.exports = {
    Severity: Minor
    Found in jest.config.js by eslint

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

    Definition for rule '@typescript-eslint/no-non-null-assertion' was not found.
    Open

    module.exports = {
    Severity: Minor
    Found in jest.config.js by eslint

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

    Insert ,
    Open

      }
    Severity: Minor
    Found in jest.config.js by eslint

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

    Definition for rule '@typescript-eslint/no-explicit-any' was not found.
    Open

    import commonjs from 'rollup-plugin-commonjs'
    Severity: Minor
    Found in rollup.config.js by eslint

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

    Definition for rule '@typescript-eslint/array-type' was not found.
    Open

    module.exports = {
    Severity: Minor
    Found in jest.config.js by eslint

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

    Definition for rule '@typescript-eslint/no-namespace' was not found.
    Open

    import commonjs from 'rollup-plugin-commonjs'
    Severity: Minor
    Found in rollup.config.js by eslint

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

    Definition for rule '@typescript-eslint/array-type' was not found.
    Open

    import commonjs from 'rollup-plugin-commonjs'
    Severity: Minor
    Found in rollup.config.js by eslint

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

    Insert ,
    Open

          'process.env.NODE_ENV': JSON.stringify(env)
    Severity: Minor
    Found in rollup.config.js by eslint

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

    Definition for rule '@typescript-eslint/no-parameter-properties' was not found.
    Open

    import commonjs from 'rollup-plugin-commonjs'
    Severity: Minor
    Found in rollup.config.js by eslint

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

    Definition for rule '@typescript-eslint/adjacent-overload-signatures' was not found.
    Open

    import commonjs from 'rollup-plugin-commonjs'
    Severity: Minor
    Found in rollup.config.js by eslint

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

    Definition for rule '@typescript-eslint/camelcase' was not found.
    Open

    import commonjs from 'rollup-plugin-commonjs'
    Severity: Minor
    Found in rollup.config.js by eslint

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

    Definition for rule '@typescript-eslint/no-array-constructor' was not found.
    Open

    import commonjs from 'rollup-plugin-commonjs'
    Severity: Minor
    Found in rollup.config.js by eslint

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

    Definition for rule '@typescript-eslint/no-empty-interface' was not found.
    Open

    import commonjs from 'rollup-plugin-commonjs'
    Severity: Minor
    Found in rollup.config.js by eslint

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

    Insert ,
    Open

            sourcemap: true
    Severity: Minor
    Found in rollup.config.js by eslint

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

    Definition for rule '@typescript-eslint/adjacent-overload-signatures' was not found.
    Open

    module.exports = {
    Severity: Minor
    Found in jest.config.js by eslint

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

    Definition for rule '@typescript-eslint/no-array-constructor' was not found.
    Open

    module.exports = {
    Severity: Minor
    Found in jest.config.js by eslint

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

    Severity
    Category
    Status
    Source
    Language