From 2b7889cde0c45466b12753bbc20f915726d26605 Mon Sep 17 00:00:00 2001 From: Sinesio Couceiro Date: Tue, 17 Oct 2023 15:46:04 +0200 Subject: [PATCH] Use objectLiteralProperty instead of group selector --- packages/eslint-config-typescript-react/index.js | 2 +- packages/eslint-config-typescript/index.js | 2 +- packages/test-eslint-config-typescript/index.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/eslint-config-typescript-react/index.js b/packages/eslint-config-typescript-react/index.js index 5a215b5..d32ead4 100644 --- a/packages/eslint-config-typescript-react/index.js +++ b/packages/eslint-config-typescript-react/index.js @@ -26,7 +26,7 @@ module.exports = { trailingUnderscore: 'forbid', }, { - selector: 'property', + selector: 'objectLiteralProperty', format: [], filter: { regex: '^--', diff --git a/packages/eslint-config-typescript/index.js b/packages/eslint-config-typescript/index.js index daa334c..96ef23b 100644 --- a/packages/eslint-config-typescript/index.js +++ b/packages/eslint-config-typescript/index.js @@ -52,7 +52,7 @@ module.exports = { trailingUnderscore: 'forbid', }, { - selector: 'property', + selector: 'objectLiteralProperty', format: [], filter: { regex: '^--', diff --git a/packages/test-eslint-config-typescript/index.ts b/packages/test-eslint-config-typescript/index.ts index 4b87b2d..b40b64f 100644 --- a/packages/test-eslint-config-typescript/index.ts +++ b/packages/test-eslint-config-typescript/index.ts @@ -59,7 +59,7 @@ function functionWithParameter(value: MyInterface): string { function twoDashProperty(): boolean { const myObject = { '--my-property': true, - } + }; return myObject['--my-property']; -} \ No newline at end of file +}