From 58993ff40af7efcd56bec1541ef8f7eb189a3854 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Wed, 27 Nov 2024 15:24:56 +0300 Subject: [PATCH] ESLint: allow import .css for next --- packages/eslint-config/next.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/eslint-config/next.js b/packages/eslint-config/next.js index 19de22e..b6eca6a 100644 --- a/packages/eslint-config/next.js +++ b/packages/eslint-config/next.js @@ -10,6 +10,15 @@ export const nextJsConfig = [ ...baseConfig, ...awesome['react-typescript'], { + rules: { + 'import/extensions': [ + 'error', + 'ignorePackages', + { + css: 'always', + }, + ], + }, ignores: ['**/.next/**'], }, ];