From 31c5875b46a914314b97a82d815487cdf1d0c94b Mon Sep 17 00:00:00 2001 From: Erik Godding Boye Date: Fri, 10 Jan 2025 22:58:42 +0000 Subject: [PATCH] chore: cleanup ESLint config file --- eslint.config.mjs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 0ed5235f0f..a90bb12ef7 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -19,11 +19,8 @@ export default tseslint.config([ importPlugin.flatConfigs.typescript, ], rules: { - "import/default": 0, - "import/no-named-as-default-member": 0, "import/named": 2, - "import/order": [ - 2, + "import/order": [2, { alphabetize: { order: "asc", @@ -31,19 +28,18 @@ export default tseslint.config([ }, } ], - "@typescript-eslint/explicit-module-boundary-types": 0, "@typescript-eslint/no-explicit-any": 0, "@typescript-eslint/ban-ts-comment": 0, "import/no-named-as-default": 0, - "@typescript-eslint/switch-exhaustiveness-check": ["error", + "@typescript-eslint/switch-exhaustiveness-check": [2, { "considerDefaultExhaustiveForUnions": true }], "import/no-unresolved": 0, }, languageOptions: { - ecmaVersion: 5, - sourceType: "script", + ecmaVersion: 2018, + sourceType: "commonjs", parserOptions: { project: "./tsconfig.json", },