diff --git a/package.json b/package.json index 154f84c..88de81c 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.11", + "version": "1.3.12", "license": "MIT", "author": "Bluzzi", "type": "module", diff --git a/src/configs/javascript/config.ts b/src/configs/javascript/config.ts index 9203d74..ef1d088 100644 --- a/src/configs/javascript/config.ts +++ b/src/configs/javascript/config.ts @@ -42,7 +42,7 @@ export const javascript = (): TypedFlatConfigItem => { "max-classes-per-file": "error", "max-depth": "error", "max-nested-callbacks": ["error", { max: 3 }], - "new-cap": "error", + "new-cap": "off", // TODO: Check if this rule is relevant (this can be anoying with React) "no-array-constructor": "error", "no-caller": "error", "no-else-return": "error", @@ -86,6 +86,7 @@ export const javascript = (): TypedFlatConfigItem => { "prefer-template": "error", "require-unicode-regexp": "error", "yoda": "error", + "no-duplicate-imports": "off", // TODO: Check if this rule is relevant }, }; }; diff --git a/src/configs/typescript/config.ts b/src/configs/typescript/config.ts index 7513289..8297a39 100644 --- a/src/configs/typescript/config.ts +++ b/src/configs/typescript/config.ts @@ -51,10 +51,11 @@ 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", // TODO: Check if this rule is relevant + "@typescript-eslint/strict-boolean-expressions": "off", // 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 + "@typescript-eslint/prefer-nullish-coalescing": "off", // TODO: Check if this rule is relevant }, }; };