Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Adjusted Javascript rule set according the Typescript rule set
- tsconfigRootDir defaults to the tsconfig.json directory searched recusively starting from process.cwd()
- Adjusted "unicorn/no-useless-undefined" to allow undefined arrow functions
- Adjusted "@typescript-eslint/no-unused-vars" to allow unused variables starting with "\_" (TypeScript style: https://typescript-eslint.io/rules/no-unused-vars/#faqs)

## [2.1.0] - 2025-04-10

Expand Down
13 changes: 12 additions & 1 deletion src/configs/providers/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,18 @@ const typescriptRules = config(

// https://github.com/typescript-eslint/typescript-eslint/issues/2621
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "all",
argsIgnorePattern: "^_",
caughtErrors: "all",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
varsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
},
},
);
Expand Down
4 changes: 4 additions & 0 deletions src/configs/providers/unicorn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const unicornRules = config(
"unicorn/prefer-query-selector": "off",
"unicorn/switch-case-braces": "off",
"unicorn/no-null": "off",
"unicorn/no-useless-undefined": [
"error",
{ checkArrowFunctionBody: false },
],
},
},
{
Expand Down
Loading