Fix ESLint Errors following Drupal coding standards and best practices

Created on 18 October 2024, 4 months ago

Problem/Motivation

The gitlab-ci tooling added to this module's workflow has helped discover a number of style issues with the included javascript.

This issue aims to update the javascript so that it doesn't violate Drupal javascript coding standards.

These are the linting errors that are currently being discovered.
https://git.drupalcode.org/project/environment_indicator/-/jobs/3032505

[0KRunning with gitlab-runner 17.3.1 (66269445)[0;m
[0K  on gitlab-runner-9dccd6855-vtfgl s8ex1X2yJ, system ID: r_Fs6duF1rd5sK[0;m
[0K[36;1mResolving secrets[0;m[0;m
section_start:1728727846:prepare_executor
[0K[0K[36;1mPreparing the "kubernetes" executor[0;m[0;m
[0K"CPURequest" overwritten with "2"[0;m
[0KUsing Kubernetes namespace: gitlab-runner[0;m
[0KUsing Kubernetes executor with image drupalci/php-8.1-apache:production ...[0;m
[0KUsing attach strategy to execute scripts...[0;m
section_end:1728727846:prepare_executor
[0Ksection_start:1728727846:prepare_script
[0K[0K[36;1mPreparing environment[0;m[0;m
[0KUsing FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...[0;m
Waiting for pod gitlab-runner/runner-s8ex1x2yj-project-58790-concurrent-5-esugaq55 to be running, status is Pending
Running on runner-s8ex1x2yj-project-58790-concurrent-5-esugaq55 via gitlab-runner-9dccd6855-vtfgl...

section_end:1728727877:prepare_script
[0Ksection_start:1728727877:get_sources
[0K[0K[36;1mGetting source from Git repository[0;m[0;m
[32;1mFetching changes...[0;m
Initialized empty Git repository in /builds/project/environment_indicator/.git/
[32;1mCreated fresh repository.[0;m
[32;1mChecking out f98dd03a as detached HEAD (ref is 4.x)...[0;m

[32;1mSkipping Git submodules setup[0;m

section_end:1728727878:get_sources
[0Ksection_start:1728727878:download_artifacts
[0K[0K[36;1mDownloading artifacts[0;m[0;m
[32;1mDownloading artifacts for composer (3032498)...[0;m
Downloading artifacts from coordinator... ok      [0;m  host[0;m=drupal-gitlab-job-artifacts.s3.us-west-2.amazonaws.com id[0;m=3032498 responseStatus[0;m=200 OK token[0;m=glcbt-64

section_end:1728727884:download_artifacts
[0Ksection_start:1728727884:step_script
[0K[0K[36;1mExecuting "step_script" stage of the job script[0;m[0;m
[32;1m$ cd $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/$CI_PROJECT_NAME[0;m
[32;1m$ ln -s $CI_PROJECT_DIR/$_WEB_ROOT/core/.eslintrc.passing.json $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/.eslintrc.json[0;m
[32;1m$ ln -s $CI_PROJECT_DIR/$_WEB_ROOT/core/.eslintrc.jquery.json $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/.eslintrc.jquery.json[0;m
[32;1m$ test -e .prettierrc.json || ln -s $CI_PROJECT_DIR/$_WEB_ROOT/core/.prettierrc.json .[0;m
[32;1m$ test -e .prettierignore || echo '*.yml' > .prettierignore[0;m
[32;1m$ echo "ESLINT version $(${CI_PROJECT_DIR}/${_WEB_ROOT}/core/node_modules/.bin/eslint --version)"[0;m
ESLINT version v8.57.0
[32;1m$ $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/eslint --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$CI_PROJECT_DIR/$_WEB_ROOT/core --ext=.js,.yml --format=junit --output-file=$CI_PROJECT_DIR/junit.xml $_ESLINT_EXTRA . || EXIT_CODE_FILE=$?[0;m
[32;1m$ touch $CI_PROJECT_DIR/_eslint.patch[0;m
[32;1m$ if [ "$EXIT_CODE_FILE" != "1" ]; then # collapsed multi-line command[0;m
[32;1m$ printf "$DIVIDER\nThese are the current ESLINT errors and warnings$DIVIDER\n"[0;m
 
*****************************************************************************************************************************
These are the current ESLINT errors and warnings 
*****************************************************************************************************************************
[32;1m$ $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/eslint --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$CI_PROJECT_DIR/$_WEB_ROOT/core --ext=.js,.yml $_ESLINT_EXTRA . || true[0;m

/builds/project/environment_indicator/web/modules/custom/environment_indicator/config/schema/environment_indicator.schema.yml
  44:1  error  Expected indentation of 2 spaces but found 4 spaces  yml/indent
  45:1  error  Expected indentation of 2 spaces but found 4 spaces  yml/indent
  46:1  error  Expected indentation of 2 spaces but found 4 spaces  yml/indent
  47:1  error  Expected indentation of 4 spaces but found 6 spaces  yml/indent
  48:1  error  Expected indentation of 6 spaces but found 8 spaces  yml/indent
  49:1  error  Expected indentation of 6 spaces but found 8 spaces  yml/indent
  50:1  error  Expected indentation of 4 spaces but found 6 spaces  yml/indent
  51:1  error  Expected indentation of 6 spaces but found 8 spaces  yml/indent
  52:1  error  Expected indentation of 6 spaces but found 8 spaces  yml/indent
  53:1  error  Expected indentation of 4 spaces but found 6 spaces  yml/indent
  54:1  error  Expected indentation of 6 spaces but found 8 spaces  yml/indent
  55:1  error  Expected indentation of 6 spaces but found 8 spaces  yml/indent

/builds/project/environment_indicator/web/modules/custom/environment_indicator/js/color.js
   1:1   error  Unexpected var, use let or const instead                                                                                                                                                            no-var
   1:19  error  Insert `Ā·`                                                                                                                                                                                          prettier/prettier
   2:3   error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
   2:5   error  Unexpected var, use let or const instead                                                                                                                                                            no-var
   3:1   error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
   3:5   error  Assignment (=) can be replaced with operator assignment (+=)                                                                                                                                        operator-assignment
   3:11  error  Unexpected string concatenation                                                                                                                                                                     prefer-template
   4:3   error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
   5:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` with `Ā·Ā·Ā·Ā·`                                                                                                                                                                      prettier/prettier
   6:3   error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
   7:1   error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
  11:1   error  Unexpected var, use let or const instead                                                                                                                                                            no-var
  11:27  error  Insert `Ā·`                                                                                                                                                                                          prettier/prettier
  12:1   error  Replace `Ā·Ā·Ā·Ā·` with `Ā·Ā·`                                                                                                                                                                            prettier/prettier
  13:1   error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
  15:1   error  Replace `Ā·Ā·Ā·Ā·` with `Ā·Ā·`                                                                                                                                                                            prettier/prettier
  16:3   error  Replace `Ā·Ā·colorĀ·=Ā·color.replace(āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'#$1$1$2$2$3$3'āŽĀ·Ā·Ā·Ā·` with `colorĀ·=Ā·color.replace(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i,Ā·'#$1$1$2$2$3$3'`  prettier/prettier
  21:1   error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
  22:1   error  Replace `Ā·Ā·Ā·Ā·` with `Ā·Ā·`                                                                                                                                                                            prettier/prettier
  22:5   error  Split 'var' declarations into multiple statements                                                                                                                                                   one-var
  22:5   error  All 'var' declarations must be at the top of the function scope                                                                                                                                     vars-on-top
  22:5   error  Unexpected var, use let or const instead                                                                                                                                                            no-var
  23:5   error  Delete `Ā·Ā·Ā·Ā·`                                                                                                                                                                                       prettier/prettier
  24:5   error  Replace `Ā·Ā·Ā·Ā·rgbĀ·=Ā·color.match(newĀ·RegExp(` with `rgbĀ·=Ā·color.match(āŽĀ·Ā·Ā·Ā·Ā·Ā·newĀ·RegExp(āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                    prettier/prettier
  25:11  error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
  26:1   error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
  27:11  error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
  28:1   error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
  29:11  error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
  30:11  error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
  31:1   error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
  32:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'\\s*\\)$'` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'\\s*\\)$',`                                                                                                                                       prettier/prettier
  33:9   error  Replace `,Ā·'i')` with `'i',āŽĀ·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                 prettier/prettier
  34:5   error  Insert `),āŽ`                                                                                                                                                                                        prettier/prettier
  35:1   error  Delete `āŽĀ·Ā·Ā·Ā·`                                                                                                                                                                                      prettier/prettier
  37:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·decimalĀ·=Ā·!!rgb?Ā·[rgb[1],Ā·rgb[2],Ā·rgb[3]]Ā·:Ā·color` with `Ā·Ā·Ā·Ā·decimalĀ·=Ā·!!rgbāŽĀ·Ā·Ā·Ā·Ā·Ā·?Ā·[rgb[1],Ā·rgb[2],Ā·rgb[3]]āŽĀ·Ā·Ā·Ā·Ā·Ā·:Ā·colorāŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                            prettier/prettier
  37:19  error  Redundant double negation                                                                                                                                                                           no-extra-boolean-cast
  39:21  error  Insert `Ā·`                                                                                                                                                                                          prettier/prettier
  40:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·returnĀ·parseInt(arguments[1],Ā·16)Ā·+` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·returnĀ·(āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(arguments[1],Ā·16)Ā·+āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                            prettier/prettier
  40:24  error  Unexpected string concatenation                                                                                                                                                                     prefer-template
  40:33  error  Use the rest parameters instead of 'arguments'                                                                                                                                                      prefer-rest-params
  41:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(arguments[2],Ā·16)Ā·+` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(arguments[2],Ā·16)Ā·+āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                      prettier/prettier
  41:30  error  Use the rest parameters instead of 'arguments'                                                                                                                                                      prefer-rest-params
  42:17  error  Replace `Ā·Ā·Ā·Ā·parseInt(arguments[3],Ā·16)` with `parseInt(arguments[3],Ā·16)āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·)`                                                                                                          prettier/prettier
  42:30  error  Use the rest parameters instead of 'arguments'                                                                                                                                                      prefer-rest-params
  43:14  error  Insert `,`                                                                                                                                                                                          prettier/prettier
  44:9   error  Replace `)` with `Ā·Ā·)āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                   prettier/prettier
  45:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` with `Ā·Ā·Ā·Ā·`                                                                                                                                                                      prettier/prettier
  47:1   error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
  48:1   error  Replace `Ā·Ā·Ā·Ā·returnĀ·!!rgbĀ·?` with `Ā·Ā·returnĀ·!!rgb`                                                                                                                                                  prettier/prettier
  48:12  error  Redundant double negation                                                                                                                                                                           no-extra-boolean-cast
  49:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'rgb'Ā·+Ā·(alphaĀ·!==Ā·nullĀ·?Ā·'a'Ā·:Ā·'')Ā·+` with `Ā·Ā·Ā·Ā·?Ā·'rgb'Ā·+āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(alphaĀ·!==Ā·nullĀ·?Ā·'a'Ā·:Ā·'')Ā·+āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                          prettier/prettier
  49:9   error  Unexpected string concatenation                                                                                                                                                                     prefer-template
  50:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                              prettier/prettier
  51:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[0],Ā·10)Ā·+Ā·difference,Ā·darkerĀ·?Ā·0Ā·:Ā·255` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[0],Ā·10)Ā·+Ā·difference,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·darkerĀ·?Ā·0Ā·:Ā·255,`                               prettier/prettier
  52:9   error  Replace `Ā·Ā·Ā·Ā·)Ā·+` with `)Ā·+āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                prettier/prettier
  53:1   error  Delete `Ā·Ā·Ā·Ā·`                                                                                                                                                                                       prettier/prettier
  54:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[1],Ā·10)Ā·+Ā·difference,Ā·darkerĀ·?Ā·0Ā·:Ā·255` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[1],Ā·10)Ā·+Ā·difference,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·darkerĀ·?Ā·0Ā·:Ā·255,`                               prettier/prettier
  55:9   error  Replace `Ā·Ā·Ā·Ā·)Ā·+` with `)Ā·+āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                prettier/prettier
  56:1   error  Delete `Ā·Ā·Ā·Ā·`                                                                                                                                                                                       prettier/prettier
  57:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[2],Ā·10)Ā·+Ā·difference,Ā·darkerĀ·?Ā·0Ā·:Ā·255` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[2],Ā·10)Ā·+Ā·difference,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·darkerĀ·?Ā·0Ā·:Ā·255,`                               prettier/prettier
  58:1   error  Delete `Ā·Ā·Ā·Ā·`                                                                                                                                                                                       prettier/prettier
  59:9   error  Delete `Ā·Ā·Ā·Ā·`                                                                                                                                                                                       prettier/prettier
  59:31  error  Unexpected string concatenation                                                                                                                                                                     prefer-template
  60:9   error  Replace `Ā·Ā·Ā·Ā·')'Ā·:` with `')'`                                                                                                                                                                      prettier/prettier
  61:5   error  Replace `Ā·Ā·Ā·` with `:`                                                                                                                                                                              prettier/prettier
  62:1   error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier
  63:9   error  Delete `Ā·Ā·Ā·Ā·`                                                                                                                                                                                       prettier/prettier
  64:9   error  Replace `Ā·Ā·Ā·Ā·pad(` with `pad(āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                           prettier/prettier
  65:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[0],Ā·10)Ā·+Ā·difference,Ā·darkerĀ·?Ā·0Ā·:Ā·255` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[0],Ā·10)Ā·+Ā·difference,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·darkerĀ·?Ā·0Ā·:Ā·255,`                           prettier/prettier
  66:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·).toString(16),Ā·2)` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·).toString(16),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·2`                                                                                                               prettier/prettier
  67:9   error  Replace `Ā·Ā·Ā·Ā·pad(` with `),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·pad(āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                prettier/prettier
  68:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[1],Ā·10)Ā·+Ā·difference,Ā·darkerĀ·?Ā·0Ā·:Ā·255` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[1],Ā·10)Ā·+Ā·difference,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·darkerĀ·?Ā·0Ā·:Ā·255,`                           prettier/prettier
  69:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·).toString(16),Ā·2)` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·).toString(16),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·2`                                                                                                               prettier/prettier
  70:9   error  Replace `Ā·Ā·Ā·Ā·pad(` with `),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·pad(āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                prettier/prettier
  71:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[2],Ā·10)Ā·+Ā·difference,Ā·darkerĀ·?Ā·0Ā·:Ā·255` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[2],Ā·10)Ā·+Ā·difference,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·darkerĀ·?Ā·0Ā·:Ā·255,`                           prettier/prettier
  72:1   error  Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·).toString(16),Ā·2)` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·).toString(16),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·2,`                                                                                                              prettier/prettier
  73:9   error  Insert `),āŽĀ·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                                  prettier/prettier
  75:1   error  Unexpected var, use let or const instead                                                                                                                                                            no-var
  75:28  error  Insert `Ā·`                                                                                                                                                                                          prettier/prettier
  76:1   error  Replace `Ā·Ā·Ā·Ā·` with `Ā·Ā·`                                                                                                                                                                            prettier/prettier
  78:1   error  Unexpected var, use let or const instead                                                                                                                                                            no-var
  78:27  error  Insert `Ā·`                                                                                                                                                                                          prettier/prettier
  79:1   error  Delete `Ā·Ā·`                                                                                                                                                                                         prettier/prettier

/builds/project/environment_indicator/web/modules/custom/environment_indicator/js/environment_indicator.js
   2:1   error  Replace `āŽĀ·Ā·"useĀ·strict"` with `Ā·Ā·'useĀ·strict'`                                                                                                                                                                                                                                                                                                                                                                                                                                                          prettier/prettier
   3:3   error  'use strict' is unnecessary inside of modules                                                                                                                                                                                                                                                                                                                                                                                                                                                            strict
   6:5   error  Expected method shorthand                                                                                                                                                                                                                                                                                                                                                                                                                                                                                object-shorthand
   7:7   error  Prefer addEventListener to $.bind                                                                                                                                                                                                                                                                                                                                                                                                                                                                        jquery/no-bind
   8:11  error  Replace `'#environment-indicatorĀ·.environment-switcher-container',Ā·context` with `āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'#environment-indicatorĀ·.environment-switcher-container',āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·context,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                                                                                                                                                                      prettier/prettier
  10:6   error  Insert `,`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               prettier/prettier
  14:5   error  Expected method shorthand                                                                                                                                                                                                                                                                                                                                                                                                                                                                                object-shorthand
  15:17  error  Replace `(settings.environmentIndicator)` with `Ā·settings.environmentIndicator`                                                                                                                                                                                                                                                                                                                                                                                                                          prettier/prettier
  15:49  error  Expected '!==' and instead saw '!='                                                                                                                                                                                                                                                                                                                                                                                                                                                                      eqeqeq
  17:28  error  Replace `Ā·getComputedStyle(document.body).getPropertyValue('--enviroment-indicator-border-width'` with `āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·getComputedStyle(document.body).getPropertyValue(āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'--enviroment-indicator-border-width',āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                                                                                                                      prettier/prettier
  20:13  error  Replace `!$body.hasClass('gin--vertical-toolbar')Ā·&&Ā·!$body.hasClass('gin--horizontal-toolbar')` with `āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·!$body.hasClass('gin--vertical-toolbar')Ā·&&āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·!$body.hasClass('gin--horizontal-toolbar')āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                                                                                                                             prettier/prettier
  21:11  error  Prefer getComputedStyle to $.css                                                                                                                                                                                                                                                                                                                                                                                                                                                                         jquery/no-css
  21:42  error  Replace `'background-color',Ā·settings.environmentIndicator.bgColor` with `āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'background-color',āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·settings.environmentIndicator.bgColor,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                                                                                                                                                                                prettier/prettier
  22:11  error  Prefer getComputedStyle to $.css                                                                                                                                                                                                                                                                                                                                                                                                                                                                         jquery/no-css
  22:53  error  Replace `.not('.is-active')` with `āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·.not('.is-active')āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                                                                                                                                                                                                                                                                         prettier/prettier
  27:11  error  Prefer getComputedStyle to $.css                                                                                                                                                                                                                                                                                                                                                                                                                                                                         jquery/no-css
  27:59  error  Replace `'border-left-color':Ā·settings.environmentIndicator.bgColor,Ā·'border-left-width':Ā·borderWidth` with `āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'border-left-color':Ā·settings.environmentIndicator.bgColor,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'border-left-width':Ā·borderWidth,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                                                                                                          prettier/prettier
  28:11  error  Prefer getComputedStyle to $.css                                                                                                                                                                                                                                                                                                                                                                                                                                                                         jquery/no-css
  28:81  error  Replace `{'margin-left':Ā·'calc(var(--enviroment-indicator-border-width)Ā·*Ā·-0.5)'}` with `āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'margin-left':āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'calc(var(--enviroment-indicator-border-width)Ā·*Ā·-0.5)',āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·},āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                                                                                                                 prettier/prettier
  32:11  error  Prefer getComputedStyle to $.css                                                                                                                                                                                                                                                                                                                                                                                                                                                                         jquery/no-css
  32:55  error  Replace `'border-top-color':Ā·settings.environmentIndicator.bgColor,Ā·'border-top-width':Ā·borderWidth` with `āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'border-top-color':Ā·settings.environmentIndicator.bgColor,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'border-top-width':Ā·borderWidth,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                                                                                                              prettier/prettier
  35:11  error  Replace `($body.hasClass('gin--horizontal-toolbar')Ā·||Ā·$body.hasClass('gin--vertical-toolbar')` with `Ā·(āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·$body.hasClass('gin--horizontal-toolbar')Ā·||āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·$body.hasClass('gin--vertical-toolbar')āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                                                                                                                              prettier/prettier
  36:37  error  Replace `"<style>.toolbarĀ·.toolbar-barĀ·#toolbar-item-administration-trayĀ·a.toolbar-icon-admin-toolbar-tools-help.toolbar-icon-default::before{Ā·background-color:Ā·"Ā·+Ā·settings.environmentIndicator.bgColorĀ·+Ā·"Ā·}</style>"` with `āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'<style>.toolbarĀ·.toolbar-barĀ·#toolbar-item-administration-trayĀ·a.toolbar-icon-admin-toolbar-tools-help.toolbar-icon-default::before{Ā·background-color:Ā·'Ā·+āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·settings.environmentIndicator.bgColorĀ·+āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'Ā·}</style>',āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`  prettier/prettier
  36:37  error  Unexpected string concatenation                                                                                                                                                                                                                                                                                                                                                                                                                                                                          prefer-template
  39:6   error  Insert `,`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               prettier/prettier
  43:5   error  Expected method shorthand                                                                                                                                                                                                                                                                                                                                                                                                                                                                                object-shorthand
  44:64  error  Insert `Ā·`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               prettier/prettier
  45:13  error  Replace `typeof(settings.environmentIndicator)` with `āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·typeofĀ·settings.environmentIndicator`                                                                                                                                                                                                                                                                                                                                                                                                   prettier/prettier
  45:51  error  Expected '!==' and instead saw '!='                                                                                                                                                                                                                                                                                                                                                                                                                                                                      eqeqeq
  46:17  error  Replace `(settings.environmentIndicator.addFavicon)` with `Ā·settings.environmentIndicator.addFavicon`                                                                                                                                                                                                                                                                                                                                                                                                    prettier/prettier
  46:60  error  Expected '!==' and instead saw '!='                                                                                                                                                                                                                                                                                                                                                                                                                                                                      eqeqeq
  47:51  error  Insert `āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       prettier/prettier
  49:11  error  'Tinycon' is not defined                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 no-undef
  49:29  error  Replace `settings.environmentIndicator.name.slice(0,Ā·1).trim()` with `āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·settings.environmentIndicator.name.slice(0,Ā·1).trim(),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·`                                                                                                                                                                                                                                                                                                                                                    prettier/prettier
  50:11  error  'Tinycon' is not defined                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 no-undef
  52:58  error  Insert `,`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               prettier/prettier
  55:9   error  Insert `;`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               prettier/prettier
  56:6   error  Insert `,`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               prettier/prettier
  57:4   error  Replace `āŽ` with `;`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier

/builds/project/environment_indicator/web/modules/custom/environment_indicator/js/tinycon.min.js
  7:1     error  Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-unused-expressions
  7:2     error  Replace `functionĀ·()Ā·{Ā·varĀ·aĀ·=Ā·{},Ā·bĀ·=Ā·null,Ā·cĀ·=Ā·null,Ā·dĀ·=Ā·null,Ā·eĀ·=Ā·null,Ā·fĀ·=Ā·{},Ā·gĀ·=Ā·Math.ceil(window.devicePixelRatio)Ā·||Ā·1,Ā·hĀ·=Ā·16Ā·*Ā·g,Ā·iĀ·=Ā·{Ā·width:Ā·7,Ā·height:Ā·9,Ā·font:Ā·10Ā·*Ā·gĀ·+Ā·"pxĀ·arial",Ā·color:Ā·"#ffffff",Ā·background:Ā·"#F03D25",Ā·fallback:Ā·!0,Ā·crossOrigin:Ā·!0,Ā·abbreviate:Ā·!0Ā·},Ā·jĀ·=Ā·functionĀ·()Ā·{Ā·varĀ·aĀ·=Ā·navigator.userAgent.toLowerCase();Ā·returnĀ·functionĀ·(b)Ā·{Ā·returnĀ·a.indexOf(b)Ā·!==Ā·-1Ā·}Ā·}(),Ā·kĀ·=Ā·{Ā·ie:Ā·j("trident"),Ā·chrome:Ā·j("chrome"),Ā·webkit:Ā·j("chrome")Ā·||Ā·j("safari"),Ā·safari:Ā·j("safari")Ā·&&Ā·!j("chrome"),Ā·mozilla:Ā·j("mozilla")Ā·&&Ā·!j("chrome")Ā·&&Ā·!j("safari")Ā·},Ā·lĀ·=Ā·functionĀ·()Ā·{Ā·forĀ·(varĀ·aĀ·=Ā·document.getElementsByTagName("link"),Ā·bĀ·=Ā·0,Ā·cĀ·=Ā·a.length;Ā·bĀ·<Ā·c;Ā·b++)ifĀ·((a[b].getAttribute("rel")Ā·||Ā·"").match(/\bicon\b/i))Ā·returnĀ·a[b];Ā·returnĀ·!1Ā·},Ā·mĀ·=Ā·functionĀ·()Ā·{Ā·forĀ·(varĀ·aĀ·=Ā·document.getElementsByTagName("link"),Ā·bĀ·=Ā·0,Ā·cĀ·=Ā·a.length;Ā·bĀ·<Ā·c;Ā·b++)Ā·{Ā·voidĀ·0Ā·!==Ā·a[b]Ā·&&Ā·(a[b].getAttribute("rel")Ā·||Ā·"").match(/\bicon\b/i)Ā·&&Ā·a[b].parentNode.removeChild(a[b])Ā·}Ā·},Ā·nĀ·=Ā·functionĀ·()Ā·{Ā·ifĀ·(!cĀ·||Ā·!b)Ā·{Ā·varĀ·aĀ·=Ā·l();Ā·bĀ·=Ā·aĀ·?Ā·a.getAttribute("href")Ā·:Ā·"/favicon.ico",Ā·cĀ·||Ā·(cĀ·=Ā·b)Ā·}Ā·returnĀ·bĀ·},Ā·oĀ·=Ā·functionĀ·()Ā·{Ā·returnĀ·eĀ·||Ā·(eĀ·=Ā·document.createElement("canvas"),Ā·e.widthĀ·=Ā·h,Ā·e.heightĀ·=Ā·h),Ā·eĀ·},Ā·pĀ·=Ā·functionĀ·(a)Ā·{Ā·ifĀ·(a)Ā·{Ā·m();Ā·varĀ·bĀ·=Ā·document.createElement("link");Ā·b.typeĀ·=Ā·"image/x-icon",Ā·b.relĀ·=Ā·"icon",Ā·b.hrefĀ·=Ā·a,Ā·document.getElementsByTagName("head")[0].appendChild(b)Ā·}Ā·},Ā·qĀ·=Ā·functionĀ·(a,Ā·b)Ā·{Ā·ifĀ·(!o().getContextĀ·||Ā·k.ieĀ·||Ā·k.safariĀ·||Ā·"force"Ā·===Ā·f.fallback)Ā·returnĀ·r(a);Ā·varĀ·cĀ·=Ā·o().getContext("2d"),Ā·bĀ·=Ā·bĀ·||Ā·"#000000",Ā·eĀ·=Ā·n();Ā·dĀ·=Ā·document.createElement("img"),Ā·d.onloadĀ·=Ā·functionĀ·()Ā·{Ā·c.clearRect(0,Ā·0,Ā·h,Ā·h),Ā·c.drawImage(d,Ā·0,Ā·0,Ā·d.width,Ā·d.height,Ā·0,Ā·0,Ā·h,Ā·h),Ā·(aĀ·+Ā·"").lengthĀ·>Ā·0Ā·&&Ā·s(c,Ā·a,Ā·b),Ā·t()Ā·},Ā·!e.match(/^data/)Ā·&&Ā·f.crossOriginĀ·&&Ā·(d.crossOriginĀ·=Ā·"anonymous"),Ā·d.srcĀ·=Ā·eĀ·},Ā·rĀ·=Ā·functionĀ·(a)Ā·{Ā·ifĀ·(f.fallback)Ā·{Ā·varĀ·bĀ·=Ā·document.title;Ā·"("Ā·===Ā·b[0]Ā·&&Ā·(bĀ·=Ā·b.slice(b.indexOf("Ā·"))),Ā·(aĀ·+Ā·"").lengthĀ·>Ā·0Ā·?Ā·document.titleĀ·=Ā·"("Ā·+Ā·aĀ·+Ā·")Ā·"Ā·+Ā·bĀ·:Ā·document.titleĀ·=Ā·bĀ·}Ā·},Ā·sĀ·=Ā·functionĀ·(a,Ā·b,Ā·c)Ā·{Ā·"number"Ā·==Ā·typeofĀ·bĀ·&&Ā·bĀ·>Ā·99Ā·&&Ā·f.abbreviateĀ·&&Ā·(bĀ·=Ā·u(b));Ā·varĀ·dĀ·=Ā·(bĀ·+Ā·"").lengthĀ·-Ā·1,Ā·eĀ·=Ā·f.widthĀ·*Ā·gĀ·+Ā·6Ā·*Ā·gĀ·*Ā·d,Ā·iĀ·=Ā·f.heightĀ·*Ā·g,Ā·jĀ·=Ā·hĀ·-Ā·i,Ā·lĀ·=Ā·hĀ·-Ā·eĀ·-Ā·g,Ā·mĀ·=Ā·16Ā·*Ā·g,Ā·nĀ·=Ā·16Ā·*Ā·g,Ā·oĀ·=Ā·2Ā·*Ā·g;Ā·a.fontĀ·=Ā·(k.webkitĀ·?Ā·"boldĀ·"Ā·:Ā·"")Ā·+Ā·f.font,Ā·a.fillStyleĀ·=Ā·f.background,Ā·a.strokeStyleĀ·=Ā·f.background,Ā·a.lineWidthĀ·=Ā·g,Ā·a.beginPath(),Ā·a.moveTo(lĀ·+Ā·o,Ā·j),Ā·a.quadraticCurveTo(l,Ā·j,Ā·l,Ā·jĀ·+Ā·o),Ā·a.lineTo(l,Ā·mĀ·-Ā·o),Ā·a.quadraticCurveTo(l,Ā·m,Ā·lĀ·+Ā·o,Ā·m),Ā·a.lineTo(nĀ·-Ā·o,Ā·m),Ā·a.quadraticCurveTo(n,Ā·m,Ā·n,Ā·mĀ·-Ā·o),Ā·a.lineTo(n,Ā·jĀ·+Ā·o),Ā·a.quadraticCurveTo(n,Ā·j,Ā·nĀ·-Ā·o,Ā·j),Ā·a.closePath(),Ā·a.fill(),Ā·a.beginPath(),Ā·a.strokeStyleĀ·=Ā·"rgba(0,0,0,0.3)",Ā·a.moveTo(lĀ·+Ā·oĀ·/Ā·2,Ā·m),Ā·a.lineTo(nĀ·-Ā·oĀ·/Ā·2,Ā·m),Ā·a.stroke(),Ā·a.fillStyleĀ·=Ā·f.color,Ā·a.textAlignĀ·=Ā·"right",Ā·a.textBaselineĀ·=Ā·"top",Ā·a.fillText(b,Ā·2Ā·===Ā·gĀ·?Ā·29Ā·:Ā·15,Ā·k.mozillaĀ·?Ā·7Ā·*Ā·gĀ·:Ā·6Ā·*Ā·g)Ā·},Ā·tĀ·=Ā·functionĀ·()Ā·{Ā·o().getContextĀ·&&Ā·p(o().toDataURL())Ā·},Ā·uĀ·=Ā·functionĀ·(a)Ā·{Ā·forĀ·(varĀ·bĀ·=Ā·[["G",Ā·1e9],Ā·["M",Ā·1e6],Ā·["k",Ā·1e3]],Ā·cĀ·=Ā·0;Ā·cĀ·<Ā·b.length;Ā·++c)ifĀ·(aĀ·>=Ā·b[c][1])Ā·{Ā·aĀ·=Ā·v(aĀ·/Ā·b[c][1])Ā·+Ā·b[c][0];Ā·breakĀ·}Ā·returnĀ·aĀ·},Ā·vĀ·=Ā·functionĀ·(a,Ā·b)Ā·{Ā·returnĀ·newĀ·Number(a).toFixed(b)Ā·};Ā·a.setOptionsĀ·=Ā·functionĀ·(a)Ā·{Ā·fĀ·=Ā·{},Ā·a.colourĀ·&&Ā·(a.colorĀ·=Ā·a.colour);Ā·forĀ·(varĀ·bĀ·inĀ·i)Ā·f[b]Ā·=Ā·a.hasOwnProperty(b)Ā·?Ā·a[b]Ā·:Ā·i[b];Ā·returnĀ·thisĀ·},Ā·a.setImageĀ·=Ā·functionĀ·(a)Ā·{Ā·returnĀ·bĀ·=Ā·a,Ā·t(),Ā·thisĀ·},Ā·a.setBubbleĀ·=Ā·functionĀ·(a,Ā·b)Ā·{Ā·returnĀ·aĀ·=Ā·aĀ·||Ā·"",Ā·q(a,Ā·b),Ā·thisĀ·},Ā·a.resetĀ·=Ā·functionĀ·()Ā·{Ā·bĀ·=Ā·c,Ā·p(c)Ā·},Ā·a.setOptions(i),Ā·"function"Ā·==Ā·typeofĀ·defineĀ·&&Ā·define.amdĀ·?Ā·define(a)Ā·:Ā·"undefined"Ā·!=Ā·typeofĀ·moduleĀ·?Ā·module.exportsĀ·=Ā·aĀ·:Ā·window.TinyconĀ·=Ā·aĀ·}` with `(functionĀ·()Ā·{āŽĀ·Ā·varĀ·aĀ·=Ā·{},āŽĀ·Ā·Ā·Ā·bĀ·=Ā·null,āŽĀ·Ā·Ā·Ā·cĀ·=Ā·null,āŽĀ·Ā·Ā·Ā·dĀ·=Ā·null,āŽĀ·Ā·Ā·Ā·eĀ·=Ā·null,āŽĀ·Ā·Ā·Ā·fĀ·=Ā·{},āŽĀ·Ā·Ā·Ā·gĀ·=Ā·Math.ceil(window.devicePixelRatio)Ā·||Ā·1,āŽĀ·Ā·Ā·Ā·hĀ·=Ā·16Ā·*Ā·g,āŽĀ·Ā·Ā·Ā·iĀ·=Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·width:Ā·7,āŽĀ·Ā·Ā·Ā·Ā·Ā·height:Ā·9,āŽĀ·Ā·Ā·Ā·Ā·Ā·font:Ā·10Ā·*Ā·gĀ·+Ā·'pxĀ·arial',āŽĀ·Ā·Ā·Ā·Ā·Ā·color:Ā·'#ffffff',āŽĀ·Ā·Ā·Ā·Ā·Ā·background:Ā·'#F03D25',āŽĀ·Ā·Ā·Ā·Ā·Ā·fallback:Ā·!0,āŽĀ·Ā·Ā·Ā·Ā·Ā·crossOrigin:Ā·!0,āŽĀ·Ā·Ā·Ā·Ā·Ā·abbreviate:Ā·!0,āŽĀ·Ā·Ā·Ā·},āŽĀ·Ā·Ā·Ā·jĀ·=Ā·(functionĀ·()Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·varĀ·aĀ·=Ā·navigator.userAgent.toLowerCase();āŽĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·functionĀ·(b)Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·returnĀ·a.indexOf(b)Ā·!==Ā·-1;āŽĀ·Ā·Ā·Ā·Ā·Ā·};āŽĀ·Ā·Ā·Ā·})(),āŽĀ·Ā·Ā·Ā·kĀ·=Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·ie:Ā·j('trident'),āŽĀ·Ā·Ā·Ā·Ā·Ā·chrome:Ā·j('chrome'),āŽĀ·Ā·Ā·Ā·Ā·Ā·webkit:Ā·j('chrome')Ā·||Ā·j('safari'),āŽĀ·Ā·Ā·Ā·Ā·Ā·safari:Ā·j('safari')Ā·&&Ā·!j('chrome'),āŽĀ·Ā·Ā·Ā·Ā·Ā·mozilla:Ā·j('mozilla')Ā·&&Ā·!j('chrome')Ā·&&Ā·!j('safari'),āŽĀ·Ā·Ā·Ā·},āŽĀ·Ā·Ā·Ā·lĀ·=Ā·functionĀ·()Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·forĀ·(āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·varĀ·aĀ·=Ā·document.getElementsByTagName('link'),Ā·bĀ·=Ā·0,Ā·cĀ·=Ā·a.length;āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·bĀ·<Ā·c;āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·b++āŽĀ·Ā·Ā·Ā·Ā·Ā·)āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·ifĀ·((a[b].getAttribute('rel')Ā·||Ā·'').match(/\bicon\b/i))Ā·returnĀ·a[b];āŽĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·!1;āŽĀ·Ā·Ā·Ā·},āŽĀ·Ā·Ā·Ā·mĀ·=Ā·functionĀ·()Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·forĀ·(āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·varĀ·aĀ·=Ā·document.getElementsByTagName('link'),Ā·bĀ·=Ā·0,Ā·cĀ·=Ā·a.length;āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·bĀ·<Ā·c;āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·b++āŽĀ·Ā·Ā·Ā·Ā·Ā·)Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·voidĀ·0Ā·!==Ā·a[b]Ā·&&āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a[b].getAttribute('rel')Ā·||Ā·'').match(/\bicon\b/i)Ā·&&āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a[b].parentNode.removeChild(a[b]);āŽĀ·Ā·Ā·Ā·Ā·Ā·}āŽĀ·Ā·Ā·Ā·},āŽĀ·Ā·Ā·Ā·nĀ·=Ā·functionĀ·()Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·ifĀ·(!cĀ·||Ā·!b)Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·varĀ·aĀ·=Ā·l();āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(bĀ·=Ā·aĀ·?Ā·a.getAttribute('href')Ā·:Ā·'/favicon.ico'),Ā·cĀ·||Ā·(cĀ·=Ā·b);āŽĀ·Ā·Ā·Ā·Ā·Ā·}āŽĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·b;āŽĀ·Ā·Ā·Ā·},āŽĀ·Ā·Ā·Ā·oĀ·=Ā·functionĀ·()Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·(āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·eĀ·||āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·((eĀ·=Ā·document.createElement('canvas')),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(e.widthĀ·=Ā·h),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(e.heightĀ·=Ā·h)),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·eāŽĀ·Ā·Ā·Ā·Ā·Ā·);āŽĀ·Ā·Ā·Ā·},āŽĀ·Ā·Ā·Ā·pĀ·=Ā·functionĀ·(a)Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·ifĀ·(a)Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·m();āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·varĀ·bĀ·=Ā·document.createElement('link');āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(b.typeĀ·=Ā·'image/x-icon'),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(b.relĀ·=Ā·'icon'),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(b.hrefĀ·=Ā·a),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·document.getElementsByTagName('head')[0].appendChild(b);āŽĀ·Ā·Ā·Ā·Ā·Ā·}āŽĀ·Ā·Ā·Ā·},āŽĀ·Ā·Ā·Ā·qĀ·=Ā·functionĀ·(a,Ā·b)Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·ifĀ·(!o().getContextĀ·||Ā·k.ieĀ·||Ā·k.safariĀ·||Ā·'force'Ā·===Ā·f.fallback)āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·returnĀ·r(a);āŽĀ·Ā·Ā·Ā·Ā·Ā·varĀ·cĀ·=Ā·o().getContext('2d'),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·bĀ·=Ā·bĀ·||Ā·'#000000',āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·eĀ·=Ā·n();āŽĀ·Ā·Ā·Ā·Ā·Ā·(dĀ·=Ā·document.createElement('img')),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(d.onloadĀ·=Ā·functionĀ·()Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·c.clearRect(0,Ā·0,Ā·h,Ā·h),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·c.drawImage(d,Ā·0,Ā·0,Ā·d.width,Ā·d.height,Ā·0,Ā·0,Ā·h,Ā·h),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(aĀ·+Ā·'').lengthĀ·>Ā·0Ā·&&Ā·s(c,Ā·a,Ā·b),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·t();āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·}),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·!e.match(/^data/)Ā·&&Ā·f.crossOriginĀ·&&Ā·(d.crossOriginĀ·=Ā·'anonymous'),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(d.srcĀ·=Ā·e);āŽĀ·Ā·Ā·Ā·},āŽĀ·Ā·Ā·Ā·rĀ·=Ā·functionĀ·(a)Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·ifĀ·(f.fallback)Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·varĀ·bĀ·=Ā·document.title;āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'('Ā·===Ā·b[0]Ā·&&Ā·(bĀ·=Ā·b.slice(b.indexOf('Ā·'))),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(aĀ·+Ā·'').lengthĀ·>Ā·0āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·?Ā·(document.titleĀ·=Ā·'('Ā·+Ā·aĀ·+Ā·')Ā·'Ā·+Ā·b)āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·:Ā·(document.titleĀ·=Ā·b);āŽĀ·Ā·Ā·Ā·Ā·Ā·}āŽĀ·Ā·Ā·Ā·},āŽĀ·Ā·Ā·Ā·sĀ·=Ā·functionĀ·(a,Ā·b,Ā·c)Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·'number'Ā·==Ā·typeofĀ·bĀ·&&Ā·bĀ·>Ā·99Ā·&&Ā·f.abbreviateĀ·&&Ā·(bĀ·=Ā·u(b));āŽĀ·Ā·Ā·Ā·Ā·Ā·varĀ·dĀ·=Ā·(bĀ·+Ā·'').lengthĀ·-Ā·1,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·eĀ·=Ā·f.widthĀ·*Ā·gĀ·+Ā·6Ā·*Ā·gĀ·*Ā·d,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·iĀ·=Ā·f.heightĀ·*Ā·g,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·jĀ·=Ā·hĀ·-Ā·i,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·lĀ·=Ā·hĀ·-Ā·eĀ·-Ā·g,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·mĀ·=Ā·16Ā·*Ā·g,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·nĀ·=Ā·16Ā·*Ā·g,āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·oĀ·=Ā·2Ā·*Ā·g;āŽĀ·Ā·Ā·Ā·Ā·Ā·(a.fontĀ·=Ā·(k.webkitĀ·?Ā·'boldĀ·'Ā·:Ā·'')Ā·+Ā·f.font),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.fillStyleĀ·=Ā·f.background),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.strokeStyleĀ·=Ā·f.background),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.lineWidthĀ·=Ā·g),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.beginPath(),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.moveTo(lĀ·+Ā·o,Ā·j),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.quadraticCurveTo(l,Ā·j,Ā·l,Ā·jĀ·+Ā·o),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.lineTo(l,Ā·mĀ·-Ā·o),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.quadraticCurveTo(l,Ā·m,Ā·lĀ·+Ā·o,Ā·m),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.lineTo(nĀ·-Ā·o,Ā·m),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.quadraticCurveTo(n,Ā·m,Ā·n,Ā·mĀ·-Ā·o),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.lineTo(n,Ā·jĀ·+Ā·o),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.quadraticCurveTo(n,Ā·j,Ā·nĀ·-Ā·o,Ā·j),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.closePath(),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.fill(),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.beginPath(),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.strokeStyleĀ·=Ā·'rgba(0,0,0,0.3)'),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.moveTo(lĀ·+Ā·oĀ·/Ā·2,Ā·m),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.lineTo(nĀ·-Ā·oĀ·/Ā·2,Ā·m),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.stroke(),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.fillStyleĀ·=Ā·f.color),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.textAlignĀ·=Ā·'right'),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.textBaselineĀ·=Ā·'top'),āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.fillText(b,Ā·2Ā·===Ā·gĀ·?Ā·29Ā·:Ā·15,Ā·k.mozillaĀ·?Ā·7Ā·*Ā·gĀ·:Ā·6Ā·*Ā·g);āŽĀ·Ā·Ā·Ā·},āŽĀ·Ā·Ā·Ā·tĀ·=Ā·functionĀ·()Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·o().getContextĀ·&&Ā·p(o().toDataURL());āŽĀ·Ā·Ā·Ā·},āŽĀ·Ā·Ā·Ā·uĀ·=Ā·functionĀ·(a)Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·forĀ·(āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·varĀ·bĀ·=Ā·[āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·['G',Ā·1e9],āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·['M',Ā·1e6],āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·['k',Ā·1e3],āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·],āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·cĀ·=Ā·0;āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·cĀ·<Ā·b.length;āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·++cāŽĀ·Ā·Ā·Ā·Ā·Ā·)āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·ifĀ·(aĀ·>=Ā·b[c][1])Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·aĀ·=Ā·v(aĀ·/Ā·b[c][1])Ā·+Ā·b[c][0];āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·break;āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·}āŽĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·a;āŽĀ·Ā·Ā·Ā·},āŽĀ·Ā·Ā·Ā·vĀ·=Ā·functionĀ·(a,Ā·b)Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·newĀ·Number(a).toFixed(b);āŽĀ·Ā·Ā·Ā·};āŽĀ·Ā·(a.setOptionsĀ·=Ā·functionĀ·(a)Ā·{āŽĀ·Ā·Ā·Ā·(fĀ·=Ā·{}),Ā·a.colourĀ·&&Ā·(a.colorĀ·=Ā·a.colour);āŽĀ·Ā·Ā·Ā·forĀ·(varĀ·bĀ·inĀ·i)Ā·f[b]Ā·=Ā·a.hasOwnProperty(b)Ā·?Ā·a[b]Ā·:Ā·i[b];āŽĀ·Ā·Ā·Ā·returnĀ·this;āŽĀ·Ā·}),āŽĀ·Ā·Ā·Ā·(a.setImageĀ·=Ā·functionĀ·(a)Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·(bĀ·=Ā·a),Ā·t(),Ā·this;āŽĀ·Ā·Ā·Ā·}),āŽĀ·Ā·Ā·Ā·(a.setBubbleĀ·=Ā·functionĀ·(a,Ā·b)Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·(aĀ·=Ā·aĀ·||Ā·''),Ā·q(a,Ā·b),Ā·this;āŽĀ·Ā·Ā·Ā·}),āŽĀ·Ā·Ā·Ā·(a.resetĀ·=Ā·functionĀ·()Ā·{āŽĀ·Ā·Ā·Ā·Ā·Ā·(bĀ·=Ā·c),Ā·p(c);āŽĀ·Ā·Ā·Ā·}),āŽĀ·Ā·Ā·Ā·a.setOptions(i),āŽĀ·Ā·Ā·Ā·'function'Ā·==Ā·typeofĀ·defineĀ·&&Ā·define.amdāŽĀ·Ā·Ā·Ā·Ā·Ā·?Ā·define(a)āŽĀ·Ā·Ā·Ā·Ā·Ā·:Ā·'undefined'Ā·!=Ā·typeofĀ·moduleāŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·?Ā·(module.exportsĀ·=Ā·a)āŽĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·:Ā·(window.TinyconĀ·=Ā·a);āŽ})`  prettier/prettier
  7:16    error  Split 'var' declarations into multiple statements                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         one-var
  7:16    error  Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  no-var
  7:166   error  Unexpected string concatenation                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           prefer-template
  7:295   error  Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  no-var
  7:592   error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           vars-on-top
  7:592   error  Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  no-var
  7:777   error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           vars-on-top
  7:777   error  Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  no-var
  7:859   error  Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-unused-expressions
  7:859   error  Expected 'undefined' and instead saw 'void'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               no-void
  7:1006  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           vars-on-top
  7:1006  error  Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  no-var
  7:1019  error  Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-unused-expressions
  7:1066  error  Unexpected use of comma operator                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-sequences
  7:1113  error  Return statement should not contain assignment                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            no-return-assign
  7:1113  error  Return statement should not contain assignment                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            no-return-assign
  7:1113  error  Return statement should not contain assignment                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            no-return-assign
  7:1190  error  Unexpected use of comma operator                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-sequences
  7:1230  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           vars-on-top
  7:1230  error  Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  no-var
  7:1270  error  Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-unused-expressions
  7:1293  error  Unexpected use of comma operator                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-sequences
  7:1449  error  Expected literal to be on the right side of ===                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           yoda
  7:1480  error  'r' was used before it was defined                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        no-use-before-define
  7:1486  error  Split 'var' declarations into multiple statements                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         one-var
  7:1486  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           vars-on-top
  7:1486  error  Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  no-var
  7:1516  error  'b' is already defined                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    no-redeclare
  7:1545  error  Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-unused-expressions
  7:1578  error  Unexpected use of comma operator                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-sequences
  7:1605  error  Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-unused-expressions
  7:1628  error  Unexpected use of comma operator                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-sequences
  7:1684  error  Unexpected string concatenation                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           prefer-template
  7:1706  error  's' was used before it was defined                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        no-use-before-define
  7:1718  error  't' was used before it was defined                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        no-use-before-define
  7:1844  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           vars-on-top
  7:1844  error  Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  no-var
  7:1868  error  Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-unused-expressions
  7:1868  error  Expected literal to be on the right side of ===                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           yoda
  7:1913  error  Unexpected use of comma operator                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-sequences
  7:1916  error  Unexpected string concatenation                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           prefer-template
  7:1954  error  Unexpected string concatenation                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           prefer-template
  7:2024  error  Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-unused-expressions
  7:2024  error  Expected literal to be on the right side of ==                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            yoda
  7:2033  error  Expected '===' and instead saw '=='                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       eqeqeq
  7:2079  error  'u' was used before it was defined                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        no-use-before-define
  7:2086  error  Split 'var' declarations into multiple statements                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         one-var
  7:2086  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           vars-on-top
  7:2086  error  Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  no-var
  7:2095  error  Unexpected string concatenation                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           prefer-template
  7:2223  error  Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-unused-expressions
  7:2266  error  Unexpected use of comma operator                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-sequences
  7:2801  error  Expected literal to be on the right side of ===                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           yoda
  7:2868  error  Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-unused-expressions
  7:2932  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           vars-on-top
  7:2932  error  Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  no-var
  7:3027  error  'v' was used before it was defined                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        no-use-before-define
  7:3102  error  Do not use Number as a constructor                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        no-new-wrappers
  7:3130  error  Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-unused-expressions
  7:3160  error  Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-unused-expressions
  7:3166  error  Unexpected use of comma operator                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-sequences
  7:3202  error  for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-restricted-syntax
  7:3202  error  The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                guard-for-in
  7:3207  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           vars-on-top
  7:3207  error  Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  no-var
  7:3274  error  Unexpected use of comma operator                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-sequences
  7:3304  error  Return statement should not contain assignment                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            no-return-assign
  7:3316  error  Unexpected use of comma operator                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-sequences
  7:3363  error  Return statement should not contain assignment                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            no-return-assign
  7:3381  error  Unexpected use of comma operator                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-sequences
  7:3424  error  Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     no-unused-expressions
  7:3429  error  Unexpected use of comma operator                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-sequences
  7:3456  error  Do not nest ternary expressions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           no-nested-ternary
  7:3456  error  Expected literal to be on the right side of ==                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            yoda
  7:3467  error  Expected '===' and instead saw '=='                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       eqeqeq
  7:3487  error  'define' is not defined                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   no-undef
  7:3500  error  'define' is not defined                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   no-undef
  7:3512  error  Expected literal to be on the right side of !=                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            yoda
  7:3524  error  Expected '!==' and instead saw '!='                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       eqeqeq

āœ– 216 problems (216 errors, 0 warnings)
  141 errors and 0 warnings potentially fixable with the `--fix` option.

[32;1m$ printf "$DIVIDER\nNow running ESLINT using the --fix option. Any errors shown below are not fixable automatically.$DIVIDER\n"[0;m
 
*****************************************************************************************************************************
Now running ESLINT using the --fix option. Any errors shown below are not fixable automatically. 
*****************************************************************************************************************************
[32;1m$ $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/eslint --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$CI_PROJECT_DIR/$_WEB_ROOT/core --ext=.js,.yml $_ESLINT_EXTRA --fix . || EXIT_CODE_FIX=$?[0;m

/builds/project/environment_indicator/web/modules/custom/environment_indicator/js/color.js
  44:32  error  Use the rest parameters instead of 'arguments'  prefer-rest-params
  45:15  error  Use the rest parameters instead of 'arguments'  prefer-rest-params
  47:27  error  Use the rest parameters instead of 'arguments'  prefer-rest-params

/builds/project/environment_indicator/web/modules/custom/environment_indicator/js/environment_indicator.js
   4:7   error  Prefer addEventListener to $.bind  jquery/no-bind
  27:11  error  Prefer getComputedStyle to $.css   jquery/no-css
  31:11  error  Prefer getComputedStyle to $.css   jquery/no-css
  38:11  error  Prefer getComputedStyle to $.css   jquery/no-css
  42:11  error  Prefer getComputedStyle to $.css   jquery/no-css
  51:11  error  Prefer getComputedStyle to $.css   jquery/no-css
  78:11  error  'Tinycon' is not defined           no-undef
  81:11  error  'Tinycon' is not defined           no-undef

/builds/project/environment_indicator/web/modules/custom/environment_indicator/js/tinycon.min.js
    7:1   error  Expected an assignment or function call and instead saw an expression                                                                                                  no-unused-expressions
   54:7   error  Expected an assignment or function call and instead saw an expression                                                                                                  no-unused-expressions
   54:7   error  Expected 'undefined' and instead saw 'void'                                                                                                                            no-void
   62:7   error  Expected an assignment or function call and instead saw an expression                                                                                                  no-unused-expressions
   62:56  error  Unexpected use of comma operator                                                                                                                                       no-sequences
   67:5   error  Return statement should not contain assignment                                                                                                                         no-return-assign
   67:5   error  Return statement should not contain assignment                                                                                                                         no-return-assign
   67:5   error  Return statement should not contain assignment                                                                                                                         no-return-assign
   77:7   error  Expected an assignment or function call and instead saw an expression                                                                                                  no-unused-expressions
   77:32  error  Unexpected use of comma operator                                                                                                                                       no-sequences
   85:14  error  'r' was used before it was defined                                                                                                                                     no-use-before-define
   87:5   error  All 'var' declarations must be at the top of the function scope                                                                                                        vars-on-top
   87:5   error  Unexpected var, use let or const instead                                                                                                                               no-var
   87:9   error  'b' is already defined                                                                                                                                                 no-redeclare
   89:5   error  Expected an assignment or function call and instead saw an expression                                                                                                  no-unused-expressions
   89:40  error  Unexpected use of comma operator                                                                                                                                       no-sequences
   91:9   error  Expected an assignment or function call and instead saw an expression                                                                                                  no-unused-expressions
   91:32  error  Unexpected use of comma operator                                                                                                                                       no-sequences
   93:32  error  's' was used before it was defined                                                                                                                                     no-use-before-define
   94:11  error  't' was used before it was defined                                                                                                                                     no-use-before-define
   99:3   error  Unexpected var, use let or const instead                                                                                                                               no-var
  102:7   error  Expected an assignment or function call and instead saw an expression                                                                                                  no-unused-expressions
  102:52  error  Unexpected use of comma operator                                                                                                                                       no-sequences
  108:3   error  Unexpected var, use let or const instead                                                                                                                               no-var
  109:5   error  Expected an assignment or function call and instead saw an expression                                                                                                  no-unused-expressions
  109:61  error  'u' was used before it was defined                                                                                                                                     no-use-before-define
  118:5   error  Expected an assignment or function call and instead saw an expression                                                                                                  no-unused-expressions
  118:50  error  Unexpected use of comma operator                                                                                                                                       no-sequences
  143:3   error  Unexpected var, use let or const instead                                                                                                                               no-var
  144:5   error  Expected an assignment or function call and instead saw an expression                                                                                                  no-unused-expressions
  146:3   error  Unexpected var, use let or const instead                                                                                                                               no-var
  158:13  error  'v' was used before it was defined                                                                                                                                     no-use-before-define
  163:3   error  Unexpected var, use let or const instead                                                                                                                               no-var
  164:12  error  Do not use Number as a constructor                                                                                                                                     no-new-wrappers
  166:3   error  Expected an assignment or function call and instead saw an expression                                                                                                  no-unused-expressions
  167:5   error  Expected an assignment or function call and instead saw an expression                                                                                                  no-unused-expressions
  167:13  error  Unexpected use of comma operator                                                                                                                                       no-sequences
  168:5   error  for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array  no-restricted-syntax
  168:5   error  The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype                                                             guard-for-in
  170:5   error  Unexpected use of comma operator                                                                                                                                       no-sequences
  172:7   error  Return statement should not contain assignment                                                                                                                         no-return-assign
  172:21  error  Unexpected use of comma operator                                                                                                                                       no-sequences
  175:7   error  Return statement should not contain assignment                                                                                                                         no-return-assign
  175:27  error  Unexpected use of comma operator                                                                                                                                       no-sequences
  178:7   error  Expected an assignment or function call and instead saw an expression                                                                                                  no-unused-expressions
  178:14  error  Unexpected use of comma operator                                                                                                                                       no-sequences
  181:5   error  Do not nest ternary expressions                                                                                                                                        no-nested-ternary
  181:37  error  'define' is not defined                                                                                                                                                no-undef
  182:9   error  'define' is not defined                                                                                                                                                no-undef

āœ– 60 problems (60 errors, 0 warnings)

[32;1m$ CHANGED=$(git diff -G"." --name-only . $CI_PROJECT_DIR | grep -E '\.(yml|js)$') || true[0;m
[32;1m$ if [ "$CHANGED" != "" ]; then # collapsed multi-line command[0;m
 
*****************************************************************************************************************************
The following files have ESLINT errors and warnings, and some of them can be resolved using the --fix argument.
 
config/schema/environment_indicator.schema.yml
js/color.js
js/environment_indicator.js
js/tinycon.min.js
 
A patch file _eslint.patch containing the changes has been created as an artifact for download. 
*****************************************************************************************************************************
[32;1m$ test -f .eslintignore && echo "===  This is .eslintignore  ===" && cat .eslintignore || true[0;m
[32;1m$ test -f .prettierignore && echo "=== This is .prettierignore ===" && cat .prettierignore || true[0;m
=== This is .prettierignore ===
*.yml
[32;1m$ printf "Exiting with EXIT_CODE=$EXIT_CODE_FILE\n"[0;m
Exiting with EXIT_CODE=1
[32;1m$ exit $EXIT_CODE_FILE[0;m

section_end:1728727893:step_script
[0Ksection_start:1728727893:upload_artifacts_on_failure
[0K[0K[36;1mUploading artifacts for failed job[0;m[0;m
[32;1mUploading artifacts...[0;m
junit.xml: found 1 matching artifact files and directories[0;m 
_eslint.patch: found 1 matching artifact files and directories[0;m 
Uploading artifacts as "archive" to coordinator... 201 Created[0;m  id[0;m=3032505 responseStatus[0;m=201 Created token[0;m=glcbt-64
[32;1mUploading artifacts...[0;m
junit.xml: found 1 matching artifact files and directories[0;m 
Uploading artifacts as "junit" to coordinator... 201 Created[0;m  id[0;m=3032505 responseStatus[0;m=201 Created token[0;m=glcbt-64

section_end:1728727895:upload_artifacts_on_failure
[0Ksection_start:1728727895:cleanup_file_variables
[0K[0K[36;1mCleaning up project directory and file based variables[0;m[0;m

section_end:1728727895:cleanup_file_variables
[0K[31;1mERROR: Job failed: command terminated with exit code 1
[0;m

Proposed resolution

  1. Update the gitlab-ci.yml file to not allow the eslint job to fail prior to a merge request being merged.
    See: https://www.drupal.org/docs/develop/git/using-gitlab-to-contribute-to-dr... ā†’
    eslint:
      allow_failure: false
    
  2. Refactor and edit the code until the ESLint job passes.
  3. Merge so that all future updates to yml and js files are required to pass the linting step.

Remaining tasks

User interface changes

API changes

Data model changes

šŸ“Œ Task
Status

Active

Version

4.0

Component

Code

Created by

šŸ‡ŗšŸ‡øUnited States trackleft2 Tucson, AZ šŸ‡ŗšŸ‡ø

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @trackleft2
  • šŸ‡ŗšŸ‡øUnited States trackleft2 Tucson, AZ šŸ‡ŗšŸ‡ø
  • šŸ‡®šŸ‡³India arunsahijpal

    Working on it.

  • Pipeline finished with Success
    3 months ago
    Total: 135s
    #339391
  • Pipeline finished with Success
    3 months ago
    Total: 206s
    #339636
  • Pipeline finished with Success
    3 months ago
    Total: 138s
    #339770
  • šŸ‡®šŸ‡³India arunsahijpal

    Hi @trackleft2,
    I've resolved many eslint error , Please have a look.

  • šŸ‡ŗšŸ‡øUnited States trackleft2 Tucson, AZ šŸ‡ŗšŸ‡ø

    Hi @arunsahijpal, thank you for your effort in attempting to resolve this issue.

    I've added some comments on the merge request and changed the status back to needs work.

  • Pipeline finished with Success
    2 months ago
    Total: 199s
    #342970
  • šŸ‡®šŸ‡³India arunsahijpal

    @trackleft2 I've ignored the tinycon.min.js and environment_indicator.js files and made the required changes and eslint job is also passing successfully so moving it to needs review. Please have a look .

  • šŸ‡ŗšŸ‡øUnited States trackleft2 Tucson, AZ šŸ‡ŗšŸ‡ø

    I've added additional comments on the merge request, thanks.

  • šŸ‡ŗšŸ‡øUnited States trackleft2 Tucson, AZ šŸ‡ŗšŸ‡ø

    Also, if you could please update the gitlab-ci.yml file to enforce that merge requests pass the eslint job.

    eslint:
      allow_failure: false
    

    See https://www.drupal.org/docs/develop/git/using-gitlab-to-contribute-to-dr... ā†’

  • Pipeline finished with Failed
    2 months ago
    Total: 148s
    #344282
  • Pipeline finished with Failed
    2 months ago
    Total: 132s
    #344455
  • Pipeline finished with Failed
    2 months ago
    Total: 134s
    #344514
  • šŸ‡®šŸ‡³India arunsahijpal

    Hi @trackleft2,
    I've resolved all the errors only the following error is left and it is due to the missing package of tinycon. Please look at this.
    1:21 error Unable to resolve path to module 'tinycon' import/no-unresolved

  • Pipeline finished with Failed
    2 months ago
    Total: 131s
    #344864
  • Pipeline finished with Failed
    2 months ago
    Total: 142s
    #344907
  • Pipeline finished with Failed
    2 months ago
    Total: 137s
    #345092
  • Pipeline finished with Success
    2 months ago
    #345098
  • šŸ‡ŗšŸ‡øUnited States trackleft2 Tucson, AZ šŸ‡ŗšŸ‡ø

    Needed to update the eslint config to add the Global variable "TinyCon" See https://www.drupal.org/docs/develop/standards/javascript-coding-standard... ā†’

  • Pipeline finished with Success
    2 months ago
    Total: 136s
    #345104
  • šŸ‡ŗšŸ‡øUnited States trackleft2 Tucson, AZ šŸ‡ŗšŸ‡ø

    I've tested this locally using lando, here is my lando.yml file

    name: environment_indicator
    recipe: drupal10
    config:
      php: '8.3'
      via: apache:2.4
      webroot: web
      database: mariadb:10.6
      xdebug: false
    services:
      database:
        type: compose
        services:
          image: mariadb:10.6
          command: docker-entrypoint.sh mariadbd
          restart: always
          ports:
            - '3306'
          environment:
            MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'true'
            MARIADB_DATABASE: drupal10
            MYSQL_DATABASE: drupal10
            MARIADB_USER: drupal10
            MARIADB_PASSWORD: drupal10
      appserver:
        overrides:
          environment:
            SIMPLETEST_DB: 'mysql://drupal10:drupal10@database/drupal10'
            SIMPLETEST_BASE_URL: 'http://appserver'
          volumes:
            # Don't share our host working directory as /app. We want /app empty for composer.
            - /app
            # Instead share our host working directory as a standalone package.
            - .:/usr/local/environment_indicator
        build:
          # Create a new Drupal project and use the module as a non-packagist repository.
          - composer create-project --dev drupal/recommended-project:10.3.x /app
          - composer config extra.enable-patching true
          - composer config extra.composer-exit-on-patch-failure true
          - composer config allow-plugins.cweagans/composer-patches true
          - composer require cweagans/composer-patches
          - composer config minimum-stability dev
          - composer config allow-plugins.phpstan/extension-installer true
          - composer require --dev drupal/core-dev:^10.3 drush/drush phpspec/prophecy-phpunit:* phpstan/extension-installer mglaman/phpstan-drupal phpstan/phpstan-deprecation-rules drupal/config_inspector
          - composer require drupal/gin
          - composer require drupal/gin_toolbar
          - composer config repositories.localdev path /usr/local/environment_indicator && composer require drupal/environment_indicator:\*@dev
      node:
        type: node:20
        build:
          - yarn install
      chromedriver:
        type: compose
        services:
          image: seleniarm/standalone-chromium:4.1.4-20220429
          command: /opt/bin/entry_point.sh
    tooling:
      # Provide a command to install Drupal.
      install:
        service: appserver
        cmd:
          - /app/vendor/bin/drush --root=/app/web site:install --account-mail=noreply@example.com --account-name=admin --account-pass=admin --db-url=mysql://drupal10:drupal10@database:3306/drupal10 -y --verbose
          # Set gin as the admin theme.
          - /app/vendor/bin/drush theme:install gin
          - /app/vendor/bin/drush config:set -y system.theme admin gin
          # Enable the Environment Indicator module.
          - /app/vendor/bin/drush en -y environment_indicator config_inspector gin_toolbar
          # Set the environment indicator configuration.
          - /app/vendor/bin/drush config:set -y environment_indicator.indicator fg_color '#000000'
          - /app/vendor/bin/drush config:set -y environment_indicator.indicator bg_color '#dd3f8f'
          - /app/vendor/bin/drush config:set -y environment_indicator.indicator name 'Lando'
          #Create login link
          - /app/vendor/bin/drush uli -l https://environmentindicator.lndo.site
      # Provide Drush tooling to automatically know the Drupal root.
      drush:
        service: appserver
        cmd: /app/vendor/bin/drush --root=/app/web
      phpcs:
        service: appserver
        cmd: /app/vendor/bin/phpcs -s --colors --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/modules/contrib/environment_indicator
      # Provide PHPCBF tooling to fix coding standards.
      phpcbf:
        service: appserver
        cmd: /app/vendor/bin/phpcbf -s --colors --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/modules/contrib/environment_indicator
      # Provide phpstan tooling to check for code quality and deprecated code.
      phpstan:
        service: appserver
        cmd: /app/vendor/bin/phpstan analyse --configuration web/modules/contrib/environment_indicator/phpstan.neon web/modules/contrib/environment_indicator
      # Provide phpunit tooling to run unit tests.
      phpunit:
        service: appserver
        cmd: /app/vendor/bin/phpunit --configuration /app/web/core/phpunit.xml.dist --bootstrap /app/web/core/tests/bootstrap.php /app/web/modules/contrib/environment_indicator
      yarn:
        service: node
        cmd: yarn
      eslint:
        service: node
        cmd: yarn run eslint --color
    
    
  • Pipeline finished with Failed
    about 1 month ago
    Total: 137s
    #371922
  • Pipeline finished with Success
    about 1 month ago
    Total: 136s
    #371926
  • Status changed to RTBC about 1 month ago
  • šŸ‡ŗšŸ‡øUnited States trackleft2 Tucson, AZ šŸ‡ŗšŸ‡ø

    trackleft2 ā†’ changed the visibility of the branch 4.x to hidden.

Production build 0.71.5 2024