You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'import/no-unresolved': 'off',// TODO check why the svelte aliases (eg. $app/xy) don't work with the import plugin
34
-
'import/order': [
33
+
'import-x/no-unresolved': 'off',// TODO check why the svelte aliases (eg. $app/xy) don't work with the import plugin
34
+
// Disable import-x/no-duplicate because of issues with imports from svelte/xy (eg. svelte/animate). TODO Reenable once https://github.com/import-js/eslint-plugin-import/issues/1479 is fixed.
35
+
'import-x/no-duplicates': 'off',
36
+
'no-duplicate-imports': 'error',
37
+
'import-x/order': [
35
38
'error',
36
39
{
37
40
alphabetize: {
@@ -42,37 +45,37 @@ export default ts.config(
42
45
groups: [
43
46
'builtin',
44
47
'external',
48
+
'type',
45
49
'internal',
46
50
'parent',
47
51
'sibling',
48
52
'index',
49
53
'object',
50
-
'type',
51
54
],
52
55
'newlines-between': 'never',
53
56
},
54
57
],
55
-
// Enable checking of the inline order of imports (everything in { ... }) but disables the order of the import statements, since this is done with the 'import/order' rule
58
+
// Enable checking of the inline order of imports (everything in { ... }) but disables the order of the import statements, since this is done with the 'import-x/order' rule
0 commit comments