From c35e8ab93770aa3a898268980ca219ff72880b23 Mon Sep 17 00:00:00 2001 From: julienmalard Date: Mon, 15 Jul 2024 16:18:56 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20eslint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 eslint.config.js diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..4099486 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,30 @@ +import eslint from "@eslint/js"; +import tseslint from "typescript-eslint"; + +export default [ + { + ignores: ["**/dist/**"], + }, + eslint.configs.recommended, + ...tseslint.configs.recommended, + { + files: ["**/*.js", "**/*.ts"], + languageOptions: { + parserOptions: { + ecmaVersion: 12, + sourceType: "module", + }, + }, + rules: { + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-unused-vars": [ + "warn", + { + argsIgnorePattern: "^_", + varsIgnorePattern: "^_", + caughtErrorsIgnorePattern: "^_", + }, + ], + }, + }, +];