Skip to content

Commit

Permalink
feat(package.json): bump version to 1.3.12 for new release
Browse files Browse the repository at this point in the history
refactor(configs): disable several eslint rules for JavaScript and TypeScript to reduce friction during development, marked with TODOs for future relevance checks
  • Loading branch information
Bluzzi committed Dec 26, 2024
1 parent 6a3d64d commit 8024cfa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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.11",
"version": "1.3.12",
"license": "MIT",
"author": "Bluzzi",
"type": "module",
Expand Down
3 changes: 2 additions & 1 deletion src/configs/javascript/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
},
};
};
3 changes: 2 additions & 1 deletion src/configs/typescript/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
};
};

0 comments on commit 8024cfa

Please sign in to comment.