[v0.1.3] fix no-unused-vars: allow ^_

This commit is contained in:
sup39 2022-02-22 10:56:50 +09:00
parent e95d53f25b
commit 8d445a2d62
3 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -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',

View file

@ -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"
}