diff --git a/package.json b/package.json index 79566f5..154f84c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bluzzi/eslint-config", "description": "ESLint configuration preset for linting and formatting all your files", - "version": "1.3.10", + "version": "1.3.11", "license": "MIT", "author": "Bluzzi", "type": "module", diff --git a/src/configs/javascript/config.ts b/src/configs/javascript/config.ts index 9f1cf68..9203d74 100644 --- a/src/configs/javascript/config.ts +++ b/src/configs/javascript/config.ts @@ -62,13 +62,13 @@ export const javascript = (): TypedFlatConfigItem => { "no-multi-str": "error", "no-new-func": "error", "no-new-wrappers": "error", - "no-param-reassign": "error", + "no-param-reassign": "off", // TODO: Check if this rule is relevant "no-plusplus": "error", "no-return-assign": "error", "no-script-url": "error", "no-sequences": "error", "no-undef-init": "error", - "no-undefined": "error", + "no-undefined": "off", // TODO: Check if this rule is relevant "no-unneeded-ternary": "error", "no-unused-expressions": "error", "no-useless-call": "error", diff --git a/src/configs/typescript/config.ts b/src/configs/typescript/config.ts index 9ab1117..7513289 100644 --- a/src/configs/typescript/config.ts +++ b/src/configs/typescript/config.ts @@ -41,7 +41,7 @@ export const typescript = ({ tsconfigPath }: ParamsTS = {}): TypedFlatConfigItem "no-use-before-define": "off", "@typescript-eslint/no-use-before-define": ["error", { classes: false, functions: false, variables: true }], "@typescript-eslint/explicit-member-accessibility": "error", - "@typescript-eslint/explicit-module-boundary-types": "error", + "@typescript-eslint/explicit-module-boundary-types": "off", // TODO: Check if this rule is relevant "@typescript-eslint/no-invalid-void-type": "off", // TODO: for undefined generics types (temporary?) "@typescript-eslint/prefer-enum-initializers": "error", "@typescript-eslint/prefer-find": "error", @@ -51,8 +51,10 @@ export const typescript = ({ tsconfigPath }: ParamsTS = {}): TypedFlatConfigItem "@typescript-eslint/require-array-sort-compare": "error", "no-return-await": "off", "@typescript-eslint/return-await": "error", - "@typescript-eslint/strict-boolean-expressions": "error", + // "@typescript-eslint/strict-boolean-expressions": "error", // TODO: Check if this rule is relevant "@typescript-eslint/no-misused-promises": ["error", { checksVoidReturn: { attributes: false } }], // https://github.com/orgs/react-hook-form/discussions/8622 + "@typescript-eslint/no-non-null-assertion": "off", // TODO: Check if this rule is relevant + "@typescript-eslint/no-confusing-void-expression": "off", // TODO: Check if this rule is relevant }, }; };