From 8d445a2d62e6f7ef8223de506207ad0aa5c7b53f Mon Sep 17 00:00:00 2001 From: sup39 Date: Tue, 22 Feb 2022 10:56:50 +0900 Subject: [PATCH] [v0.1.3] fix no-unused-vars: allow ^_ --- LICENSE | 2 +- index.js | 5 ++++- package.json | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/LICENSE b/LICENSE index 3000b11..2ca4dcb 100644 --- a/LICENSE +++ b/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 diff --git a/index.js b/index.js index d8b8442..c9baf85 100644 --- a/index.js +++ b/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', diff --git a/package.json b/package.json index f3cf516..f6c2873 100644 --- a/package.json +++ b/package.json @@ -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" }