From ef9279ea4d82bfede0b6124ea705df5d0e9b1833 Mon Sep 17 00:00:00 2001 From: Lukas Weiss Date: Tue, 2 Jul 2024 14:54:16 +0200 Subject: [PATCH 1/2] force import declaration sort --- ts.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ts.js b/ts.js index d4ee093..3220da6 100644 --- a/ts.js +++ b/ts.js @@ -81,6 +81,12 @@ module.exports = { warnOnUnassignedImports: true, }, ], + 'sort-imports': [ + 'error', + { + ignoreDeclarationSort: true + } + ], 'no-console': [ 'error', { From 206aeaa70a2a2d0c444ed7568cff1c0dad795c65 Mon Sep 17 00:00:00 2001 From: Lukas Weiss Date: Tue, 2 Jul 2024 14:58:43 +0200 Subject: [PATCH 2/2] add comment about the sort-imports declarations ignore --- ts.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ts.js b/ts.js index 3220da6..7e78cb5 100644 --- a/ts.js +++ b/ts.js @@ -84,6 +84,7 @@ module.exports = { 'sort-imports': [ 'error', { + // The declarations are sorted more granularly by the import/order plugin. ignoreDeclarationSort: true } ],