From 8d775540f12bc551e2a8852e2ee9645c838e8165 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Mon, 21 Oct 2024 09:39:55 +0200 Subject: [PATCH] Fix eslint regression --- dependencies.md | 4 ++-- flake.nix | 7 ++++++- tested/languages/haskell/linter.py | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dependencies.md b/dependencies.md index 317c37a2..0cb87004 100644 --- a/dependencies.md +++ b/dependencies.md @@ -84,13 +84,13 @@ $ cabal v1-install aeson | Name | Versions | Installation | |-------------------------|----------|--------------| -| `eslint` | 8.57 | npm package | +| `eslint` | 9.10 | npm package | | `abstract-syntax-tree` | 2.22 | npm package | Install npm packages as follows: ```shell -$ npm install eslint@8.57 abstract-syntax-tree@2.22 +$ npm install eslint@9.10 abstract-syntax-tree@2.22 ``` ## Kotlin diff --git a/flake.nix b/flake.nix index edcf2b4c..6038b3a8 100644 --- a/flake.nix +++ b/flake.nix @@ -99,7 +99,7 @@ (pkgs.haskell.packages.ghc96.ghcWithPackages (p: [ p.aeson ])) pkgs.hlint ]; - node-deps = [ nodejs_base pkgs.nodePackages.eslint ast ]; + node-deps = [ nodejs_base pkgs.eslint ast ]; bash-deps = [ pkgs.shellcheck ]; c-deps = [ pkgs.cppcheck pkgs.gcc13 ]; java-deps = [ pkgs.openjdk21 pkgs.checkstyle ]; @@ -180,6 +180,11 @@ name = "NODE_PATH"; prefix = "${ast}/lib/node_modules"; } + + { + name = "ESLINT_USE_FLAT_CONFIG"; + eval = "false"; + } { name = "NXF_VER"; eval = "${builtins.head (pkgs.lib.splitString "-" pkgs.nextflow.version)}"; diff --git a/tested/languages/haskell/linter.py b/tested/languages/haskell/linter.py index cb69342d..b19cbdf9 100644 --- a/tested/languages/haskell/linter.py +++ b/tested/languages/haskell/linter.py @@ -20,7 +20,7 @@ def run_hlint( config: DodonaConfig, remaining: float ) -> tuple[list[Message], list[AnnotateCode]]: """ - Calls eslint to annotate submitted source code and adds resulting score and + Calls hlint to annotate submitted source code and adds resulting score and annotations to tab. """ submission = config.source