From 95144f22d097cad05f3aa3e890340f228c02c360 Mon Sep 17 00:00:00 2001
From: ismay <ismay@dhis2.org>
Date: Wed, 15 May 2024 15:21:48 +0200
Subject: [PATCH] refactor: use recommended approach for applying custom syntax

---
 config/stylelint.config.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/config/stylelint.config.js b/config/stylelint.config.js
index 02381e81..614cc0c2 100644
--- a/config/stylelint.config.js
+++ b/config/stylelint.config.js
@@ -1,5 +1,7 @@
 module.exports = {
-    customSyntax: 'postcss-styled-jsx',
+    overrides: [
+        { files: '**/*.{js,jsx,ts,tsx}', customSyntax: 'postcss-styled-jsx' },
+    ],
     plugins: ['stylelint-use-logical'],
     rules: {
         'csstools/use-logical': [