Skip to content

Commit

Permalink
Merge pull request #541 from fishbrain/update-base-rules
Browse files Browse the repository at this point in the history
Add rule to ignore unused var with underscore
  • Loading branch information
lhansford authored Sep 2, 2024
2 parents 1d3c4c1 + 1c17be3 commit 4489377
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@fishbrain/eslint-config-monorepo",
"private": true,
"description": "ESLint configs for Fishbrain projects",
"version": "6.0.2",
"version": "6.0.3",
"workspaces": [
"packages/*"
],
Expand Down
6 changes: 5 additions & 1 deletion packages/base/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ export default tseslint.config(
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_' },
{
ignoreRestSiblings: true,
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-useless-constructor': 'error',
'@typescript-eslint/promise-function-async': 'error',
Expand Down
2 changes: 1 addition & 1 deletion packages/base/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fishbrain/eslint-config-base",
"packageManager": "yarn@4.4.1",
"version": "6.0.2",
"version": "6.0.3",
"type": "module",
"exports": "./index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fishbrain/eslint-config-react",
"packageManager": "yarn@4.4.1",
"version": "6.0.2",
"version": "6.0.3",
"type": "module",
"exports": "./index.js",
"scripts": {
Expand Down

0 comments on commit 4489377

Please sign in to comment.