mirror of
https://github.com/garraflavatra/yeslint.git
synced 2025-04-18 05:41:03 +00:00
Allow unused underscore-prefixed variables
This commit is contained in:
parent
473a541083
commit
32393d68b1
@ -115,7 +115,19 @@ const generic = {
|
|||||||
],
|
],
|
||||||
'no-unused-vars': [
|
'no-unused-vars': [
|
||||||
'warn',
|
'warn',
|
||||||
{ varsIgnorePattern: '\\_' },
|
{
|
||||||
|
argsIgnorePattern: '^_',
|
||||||
|
varsIgnorePattern: '^_',
|
||||||
|
caughtErrorsIgnorePattern: '^_',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'@typescript-eslint/no-unused-vars': [
|
||||||
|
'warn',
|
||||||
|
{
|
||||||
|
argsIgnorePattern: '^_',
|
||||||
|
varsIgnorePattern: '^_',
|
||||||
|
caughtErrorsIgnorePattern: '^_',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
'no-alert': 'error',
|
'no-alert': 'error',
|
||||||
'no-caller': 'error',
|
'no-caller': 'error',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user