diff --git a/index.js b/index.js index d9cb558..bd59e06 100644 --- a/index.js +++ b/index.js @@ -36,8 +36,12 @@ module.exports = { // '@typescript-eslint/no-use-before-define': ['error'], 'no-unused-vars': 'off', '@typescript-eslint/no-unused-vars': ['warn', { - 'varsIgnorePattern': '^_', - 'argsIgnorePattern': '^_' + args: 'after-used', + varsIgnorePattern: '^_', + argsIgnorePattern: '^_', + ignoreRestSiblings: true, + // allow _* and 1-letter var (e.g. `k`) + destructuredArrayIgnorePattern: "^_|^.$" }] }, }; diff --git a/package.json b/package.json index 6fc5a16..1efa9cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sup39/eslint-config-typescript", - "version": "0.1.0", + "version": "0.1.1", "main": "index.js", "license": "MIT", "files": [