[v0.1.3] fix no-unused-vars: allow ^_
This commit is contained in:
parent
e95d53f25b
commit
8d445a2d62
3 changed files with 7 additions and 4 deletions
2
LICENSE
2
LICENSE
|
@ -1,4 +1,4 @@
|
|||
Copyright (c) 2021 sup39[サポミク]
|
||||
Copyright (c) 2021-2022 sup39[サポミク]
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
|
|
5
index.js
5
index.js
|
@ -78,7 +78,10 @@ module.exports = {
|
|||
'no-unsafe-finally': 'error',
|
||||
'no-unsafe-negation': 'error',
|
||||
'no-unsafe-optional-chaining': 'error',
|
||||
'no-unused-vars': 'warn',
|
||||
'no-unused-vars': ['warn', {
|
||||
varsIgnorePattern: '^_',
|
||||
argsIgnorePattern: '^_',
|
||||
}],
|
||||
'no-use-before-define': 'warn',
|
||||
'no-useless-backreference': 'error',
|
||||
'require-atomic-updates': 'warn',
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@sup39/eslint-config-basic",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"description": "eslint config for sup39",
|
||||
"repository": "https://github.com/sup39/eslint-config-sup39",
|
||||
"repository": "https://github.com/sup39/eslint-config-basic",
|
||||
"author": "sup39"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue