improve unused-var
This commit is contained in:
parent
ea09d22080
commit
9e2786af47
2 changed files with 7 additions and 3 deletions
8
index.js
8
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: "^_|^.$"
|
||||
}]
|
||||
},
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@sup39/eslint-config-typescript",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
|
|
Loading…
Reference in a new issue