ESLint and Stylelint errors whenever I run pareview.sh

Created on 22 May 2024, 11 months ago

Problem/Motivation

ESLint errors whenever I run the script.

Steps to reproduce

$ ./pareview.sh https://git.drupalcode.org/project/basic_slider 2.0.x
Review of the 2.0.x branch (commit b1edad5):
<ul>
<li>Your README.md does not follow best practices (headings need to be uppercase). See https://www.drupal.org/node/2181737 .
<ul>
<li>The INTRODUCTION section is missing.</li>
<li>The REQUIREMENTS section is missing.</li>
<li>The INSTALLATION section is missing.</li>
<li>The CONFIGURATION section is missing.</li>
</ul></li>
<li>The basic_slider.module does not implement hook_help(). See https://www.drupal.org/docs/develop/documenting-your-project/module-documentation-guidelines#hook_help .</li>
<li><a href="https://www.drupal.org/project/coder">Coder Sniffer</a> has found some issues with your code (please check the <a href="https://www.drupal.org/node/318">Drupal coding standards</a>).
&#10;&#10;FILE: /home/USERNAME/projects/pareviewsh/pareview_temp/README.md&#10;----------------------------------------------------------------------&#10;FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE&#10;----------------------------------------------------------------------&#10; 3 | WARNING | Line exceeds 80 characters; contains 116 characters&#10;----------------------------------------------------------------------&#10;&#10;Time: 50ms; Memory: 8MB&#10;</li>

Oops! Something went wrong! :(

ESLint: 8.57.0

/home/USERNAME/projects/pareviewsh/node_modules/eslint-plugin-prettier/eslint-plugin-prettier.js:64
    (context.sourceCode ?? context.getSourceCode()).getLocFromIndex(index),
                         ^

SyntaxError: Unexpected token '?'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at ConfigArrayFactory._loadPlugin (/home/USERNAME/projects/pareviewsh/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3433:42)
    at ConfigArrayFactory._loadExtendedPluginConfig (/home/USERNAME/projects/pareviewsh/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3233:29)
    at ConfigArrayFactory._loadExtends (/home/USERNAME/projects/pareviewsh/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3154:29)
<li><a href="http://eslint.org/">ESLint</a> has found some issues with your code (please check the <a href="https://www.drupal.org/node/172169">JavaScript coding standards</a>).
&#10;&#10;</li>
<li><a href="https://stylelint.io/">Stylelint</a> has found some issues with your code (please check the <a href="https://www.drupal.org/docs/develop/standards/css">CSS coding standards</a>).
&#10;/home/USERNAME/projects/pareviewsh/node_modules/cosmiconfig/dist/index.js:78&#10;    if (metaConfig.config?.loaders) {&#10;                          ^&#10;&#10;SyntaxError: Unexpected token &#039;.&#039;&#10;    at wrapSafe (internal/modules/cjs/loader.js:915:16)&#10;    at Module._compile (internal/modules/cjs/loader.js:963:27)&#10;    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)&#10;    at Module.load (internal/modules/cjs/loader.js:863:32)&#10;    at Function.Module._load (internal/modules/cjs/loader.js:708:14)&#10;    at Module.require (internal/modules/cjs/loader.js:887:19)&#10;    at require (internal/modules/cjs/helpers.js:74:18)&#10;    at Object.&lt;anonymous&gt; (/home/USERNAME/projects/pareviewsh/node_modules/stylelint/lib/createStylelint.js:3:45)&#10;    at Module._compile (internal/modules/cjs/loader.js:999:30)&#10;    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)&#10;</li>
<li>No automated test cases were found, did you consider writing <a href="https://www.drupal.org/simpletest">Simpletests</a> or <a href="https://www.drupal.org/phpunit">PHPUnit tests</a>? This is not a requirement but encouraged for professional software development.</li>
</ul>
<i>This automated report was generated with <a href="https://www.drupal.org/project/pareviewsh">PAReview.sh</a>, your friendly project application review script.</i>

Info:

PAReview.sh version: 1.0.x-dev (6d5676eb73f4390b4e348e947c757355bc96fb9f)
npm@8.5.1

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

1.0

Component

Default

Created by

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

Comments & Activities

Production build 0.71.5 2024