Skip to content

Commit

Permalink
Add varsIgnorePattern to @typescript-eslint/no-unused-vars rule
Browse files Browse the repository at this point in the history
  • Loading branch information
iansu committed Jan 9, 2020
1 parent fa0e944 commit 39f12b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.5.2 (January 9, 2020)

- Add `varsIgnorePattern` to `@typescript-eslint/no-unused-vars` rule

## 0.5.1 (November 27, 2019)

- Disable `unicorn/catch-error-name` rule
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/no-array-constructor': 'warn',
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_+' }]
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_+', varsIgnorePattern: '^_+' }]
// enable this once typescript-eslint 2.9.0 is released
// '@typescript-eslint/prefer-optional-chain': 'warn'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-neo",
"version": "0.5.1",
"version": "0.5.2",
"description": "Official Neo Financial ESLint configuration",
"main": "index.js",
"author": "Neo Financial Engineering <[email protected]>",
Expand Down

0 comments on commit 39f12b4

Please sign in to comment.