From fbb3fdc5d5d236aa2ddfddebe13899a6b22f9947 Mon Sep 17 00:00:00 2001 From: Ilya Oleshko Date: Mon, 18 Nov 2024 11:18:03 +0300 Subject: [PATCH] Fixed eslint config --- eslint.config.mjs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index cb3ee83..e04f351 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,7 +1,13 @@ -import eslint from "@eslint/js"; +import pluginJs from "@eslint/js"; import tseslint from "typescript-eslint"; -export default tseslint.config( - eslint.configs.recommended, - ...tseslint.configs.recommended -); +export default [ + {files: ["**/*.{js,mjs,cjs,ts}"]}, + pluginJs.configs.recommended, + ...tseslint.configs.recommended, + { + rules: { + "@typescript-eslint/no-unused-expressions": "off" + } + } +];