From 6008e3877d59284cb8b97b5c111fe12d25912492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gautier=20Ben=20A=C3=AFm?= <48261497+GauBen@users.noreply.github.com> Date: Thu, 24 Mar 2022 01:00:00 +0100 Subject: [PATCH] Make @typescript-eslint/naming-convention ignore non alphanumeric keys Closes #53 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4f21568..658e9cc 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ const getNamingConventionRule = ({isTsx}) => ({ trailingUnderscore: 'allow', // Ignore `{'Retry-After': retryAfter}` type properties. filter: { - regex: '[- ]', + regex: '\\W', match: false } },