Skip to content

Commit

Permalink
Support ESLint 8.x (#302)
Browse files Browse the repository at this point in the history
Update packages to support eslint 8 and fix unsupported code error that results in 'Module specifier must be a string literal' parse error.
Update @typescript-eslint/experimental-utils, to be in line with eslint 8.x types.
Update typescript to 4.4.4, after updating of @typescript-eslint/experimental-utils, because it kept failing due to errors in 'node_modules/@typescript-eslint/types/dist/ast-spec.d.ts' and node_modules/typescript/lib/typescript.d.ts.
Remove typings/eslint.d.ts in favor of @types/eslint.
Remove all categories, since that's removed in eslint 8.
Fix spacing after/before imports, to fix failing eslint rule.
Replace 'message' with 'messageId', since 'message' has been removed.

Co-authored-by: Gijs Boer <g.boer@forion.nl>
Co-authored-by: vilchik-elena <elena.vilchik@sonarsource.com>
  • Loading branch information
3 people committed Nov 30, 2021
1 parent 0331fd0 commit d5ec6e1
Show file tree
Hide file tree
Showing 77 changed files with 15,559 additions and 2,802 deletions.
1 change: 0 additions & 1 deletion .cirrus.yml
Expand Up @@ -23,7 +23,6 @@ build_task:
<<: *ONLY_SONARSOURCE_QA
gke_container:
matrix:
- dockerfile: .cirrus/nodejs-10.Dockerfile
- dockerfile: .cirrus/nodejs-12.Dockerfile
- dockerfile: .cirrus/nodejs-14.Dockerfile
- dockerfile: .cirrus/nodejs-15.Dockerfile
Expand Down
21 changes: 0 additions & 21 deletions .cirrus/nodejs-10.Dockerfile

This file was deleted.

1 change: 1 addition & 0 deletions .cirrus/nodejs-12.Dockerfile
Expand Up @@ -17,3 +17,4 @@ RUN curl "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-
USER sonarsource

ENV PATH "/opt/sonar-scanner/bin:${PATH}"
ENV SONARCLOUD_ANALYSIS true
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -81,8 +81,8 @@ Code Smells, or maintainability issues, are raised for places of code which migh

## Prerequisites

* Node.js (>=10.x).
* ESLint 5.x, 6.x or 7.x (peer dependency for the plugin).
* Node.js (>=12.x).
* ESLint 5.x, 6.x, 7.x or 8.x (peer dependency for the plugin).

## Usage

Expand Down

0 comments on commit d5ec6e1

Please sign in to comment.