From 044a2958cc1a7dab8c1886eada9b89b199a80c0e Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Mon, 18 Nov 2024 20:40:29 +0800 Subject: [PATCH] fix missing lint (#5519) that caused a bundle error https://github.com/transloadit/uppy/actions/runs/11855591962/job/33040156550?pr=5443 --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 77e5fbe8fd..98c06b7d1f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -443,7 +443,7 @@ module.exports = { rules: { 'no-extra-semi': 'off', 'no-restricted-syntax': ['error', { - selector: 'ImportDeclaration[importKind="type"][source.value=/^@uppy\\x2F[a-z-0-9]+\\x2F/]:not([source.value=/^@uppy\\x2Futils\\x2F/]):not([source.value=/\\.js$/])', + selector: 'ImportDeclaration[source.value=/^@uppy\\x2F[a-z-0-9]+\\x2F/]:not([source.value=/^@uppy\\x2Futils\\x2F/]):not([source.value=/\\.(js|css)$/])', message: 'Use ".js" file extension for import type declarations from a different package', }, { selector: 'ImportDeclaration[importKind="type"][source.value=/^\\.\\.?\\x2F.+\\.js$/]',