Skip to content

Commit

Permalink
chore(package.json): bump version to 1.3.11 for new lint rule adjustm…
Browse files Browse the repository at this point in the history
…ents

refactor(configs): disable several eslint rules for JavaScript and TypeScript to reassess their relevance
  • Loading branch information
Bluzzi committed Dec 26, 2024
1 parent 2ec138a commit 6a3d64d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/configs/javascript/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 4 additions & 2 deletions src/configs/typescript/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
},
};
};

0 comments on commit 6a3d64d

Please sign in to comment.