From ba1a84062e29cebda2fc26825bdec06edca1f714 Mon Sep 17 00:00:00 2001 From: Sinesio Couceiro Date: Tue, 17 Oct 2023 15:28:05 +0200 Subject: [PATCH] Fixing rule for the property selector --- packages/eslint-config-typescript-react/index.js | 7 +++---- packages/eslint-config-typescript/index.js | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/eslint-config-typescript-react/index.js b/packages/eslint-config-typescript-react/index.js index 3028875..5a215b5 100644 --- a/packages/eslint-config-typescript-react/index.js +++ b/packages/eslint-config-typescript-react/index.js @@ -27,12 +27,11 @@ module.exports = { }, { selector: 'property', - format: ['strictCamelCase'], - leadingUnderscore: 'allow', + format: [], filter: { regex: '^--', - match: false - } + match: true, + }, }, ], }, diff --git a/packages/eslint-config-typescript/index.js b/packages/eslint-config-typescript/index.js index 4d5dc7f..daa334c 100644 --- a/packages/eslint-config-typescript/index.js +++ b/packages/eslint-config-typescript/index.js @@ -53,12 +53,11 @@ module.exports = { }, { selector: 'property', - format: ['strictCamelCase'], - leadingUnderscore: 'allow', + format: [], filter: { regex: '^--', - match: false - } + match: true, + }, }, ], '@typescript-eslint/no-confusing-void-expression': 'error',