From 617c8e8e9f65c4d6039e25eb6ebc70ae079eb6a6 Mon Sep 17 00:00:00 2001 From: Geert Selderslaghs Date: Thu, 28 Nov 2024 05:39:00 +0100 Subject: [PATCH] (enhancement) removed pretier config for now --- eslint.config.mjs | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 255b2438a6..380ec41180 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,6 +1,4 @@ import typescriptEslint from 'typescript-eslint'; -import prettierPlugin from 'eslint-plugin-prettier'; -import eslintConfigPrettier from 'eslint-config-prettier'; export default [ { @@ -9,27 +7,17 @@ export default [ }, ...typescriptEslint.configs.recommended, { - plugins: { - prettier: prettierPlugin - }, rules: { - ...prettierPlugin.configs.recommended.rules, - ...eslintConfigPrettier.rules, - - // TODO: to improve because the basic rules cause - // thousands of errors, for this reason, they have been marked as WARN - 'prettier/prettier': 'warn', - - 'prefer-const': 'warn', + 'prefer-const': 'error', 'prefer-rest-params': 'warn', 'no-var': 'warn', - '@typescript-eslint/no-explicit-any': 'warn', - '@typescript-eslint/no-unused-vars': 'warn', - '@typescript-eslint/no-unused-expressions': 'warn', + '@typescript-eslint/no-explicit-any': 'error', + '@typescript-eslint/no-unused-vars': 'error', + '@typescript-eslint/no-unused-expressions': 'error', '@typescript-eslint/no-this-alias': 'warn', - '@typescript-eslint/no-empty-object-type': 'warn', - '@typescript-eslint/no-require-imports': 'warn', - '@typescript-eslint/no-unsafe-function-type': 'warn' + '@typescript-eslint/no-empty-object-type': 'error', + '@typescript-eslint/no-require-imports': 'error', + '@typescript-eslint/no-unsafe-function-type': 'error' } } ];