Add 'no-unused-vars' rule for vars starting with _
This commit is contained in:
parent
c8b520b752
commit
bfd0c2b02d
1 changed files with 8 additions and 0 deletions
|
|
@ -90,6 +90,14 @@ export default [{
|
||||||
allowSamePrecedence: true,
|
allowSamePrecedence: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
'no-unused-vars': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
argsIgnorePattern: '^_',
|
||||||
|
varsIgnorePattern: '^_',
|
||||||
|
caughtErrorsIgnorePattern: '^_',
|
||||||
|
},
|
||||||
|
],
|
||||||
'import/extensions': [
|
'import/extensions': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue