improve unused-var

This commit is contained in:
sup39 2022-06-18 18:41:31 +09:00
parent ea09d22080
commit 9e2786af47
2 changed files with 7 additions and 3 deletions

View file

@ -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: "^_|^.$"
}]
},
};

View file

@ -1,6 +1,6 @@
{
"name": "@sup39/eslint-config-typescript",
"version": "0.1.0",
"version": "0.1.1",
"main": "index.js",
"license": "MIT",
"files": [