From 49aec53060a08903bb57d4a3559dc38caea971cc Mon Sep 17 00:00:00 2001 From: Stephen Li Date: Wed, 3 Apr 2024 04:27:45 -0400 Subject: [PATCH] Sync eslintrc --- .eslintrc.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 71f6db3..6084e31 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -129,8 +129,9 @@ module.exports = { }, { selector: 'parameter', - format: ['strictCamelCase'], - leadingUnderscore: 'allow', + format: ['strictCamelCase', 'UPPER_CASE'], + leadingUnderscore: 'allowSingleOrDouble', + trailingUnderscore: 'allowDouble', }, { selector: 'memberLike', @@ -148,7 +149,12 @@ module.exports = { match: false, }, format: ['strictCamelCase', 'UPPER_CASE'], + leadingUnderscore: 'allowDouble', + trailingUnderscore: 'allowDouble', }, ], + '@typescript-eslint/no-unused-vars': ['error', { + argsIgnorePattern: '^_', + }], }, }