Skip to content

Commit d4df51f

Browse files
authored
importing @nomicfoundation before prettier (#1250)
1 parent 526c249 commit d4df51f

152 files changed

Lines changed: 2106 additions & 261 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

eslint.config.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import globals from 'globals';
22
import typescriptEslint from '@typescript-eslint/eslint-plugin';
33
import tsParser from '@typescript-eslint/parser';
4+
import eslintImport from 'eslint-plugin-import';
45
import path from 'node:path';
56
import { fileURLToPath } from 'node:url';
67
import js from '@eslint/js';
@@ -60,6 +61,7 @@ export default [
6061
files: ['**/*.ts'],
6162

6263
plugins: {
64+
import: eslintImport,
6365
'@typescript-eslint': typescriptEslint
6466
},
6567

@@ -74,6 +76,26 @@ export default [
7476
},
7577

7678
rules: {
79+
'sort-imports': [
80+
'error',
81+
{ ignoreCase: true, ignoreDeclarationSort: true }
82+
],
83+
'import/order': [
84+
'error',
85+
{
86+
groups: [
87+
'builtin',
88+
'external',
89+
'parent',
90+
'sibling',
91+
'index',
92+
'object',
93+
'type'
94+
],
95+
sortTypesGroup: true
96+
}
97+
],
98+
'@typescript-eslint/consistent-type-imports': 'error',
7799
'@typescript-eslint/explicit-function-return-type': 'error'
78100
}
79101
},

0 commit comments

Comments
 (0)