From 4e7bcd258a30ad1be4cb0c983ba536f3e40b89e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Duhen?= <45125768+HoloTheDrunk@users.noreply.github.com> Date: Fri, 25 Oct 2024 13:28:40 +0200 Subject: [PATCH] feat(eslint): remove preference for default export (#2447) Default exports mess with tree shaking and are a source of naming inconsistencies. --- .eslintrc.cjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 095d1ee9c0..0006ab9edd 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -60,6 +60,7 @@ module.exports = { devDependencies: ['test/**', 'tests/**', 'examples/**'], }], */ 'import/no-extraneous-dependencies': 'off', + 'import/prefer-default-export': 'off', // TODO reactivate all the following rules @@ -95,9 +96,9 @@ module.exports = { 'error', 'ignorePackages', { - 'js': 'never', - 'ts': 'never', - 'tsx': 'never', + js: 'never', + ts: 'never', + tsx: 'never', }, ], camelcase: 'off',