Skip to content

Commit

Permalink
Fix/add more no-unused-vars rules (#28)
Browse files Browse the repository at this point in the history
* fix: add more no-unused vars rules

* chore: version bump
  • Loading branch information
jkoenig134 authored Oct 10, 2024
1 parent 19493b9 commit d1f8f28
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@ module.exports = {
reportUnusedDisableDirectives: true,
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "all",
argsIgnorePattern: "^_",
caughtErrors: "all",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
varsIgnorePattern: "^_",
ignoreRestSiblings: true
}
],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": [
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@js-soft/eslint-config-ts",
"version": "1.6.11",
"version": "1.6.12",
"description": "j&s-soft typescript linting rules",
"repository": {
"type": "git",
Expand Down

0 comments on commit d1f8f28

Please sign in to comment.