1- import typescriptEslint from '@typescript-eslint/eslint-plugin' ;
2- import prettier from 'eslint-plugin-prettier' ;
3- import globals from 'globals' ;
4- import tsParser from '@typescript-eslint/parser' ;
51import path from 'node:path' ;
62import { fileURLToPath } from 'node:url' ;
7- import js from '@eslint/js' ;
8- import { FlatCompat } from '@eslint/eslintrc' ;
3+
94import { includeIgnoreFile } from '@eslint/compat' ;
5+ import { FlatCompat } from '@eslint/eslintrc' ;
6+ import js from '@eslint/js' ;
7+ import typescriptEslint from '@typescript-eslint/eslint-plugin' ;
8+ import tsParser from '@typescript-eslint/parser' ;
9+ import prettier from 'eslint-plugin-prettier' ;
10+ import simpleImportSort from 'eslint-plugin-simple-import-sort' ;
11+ import globals from 'globals' ;
1012
1113const __filename = fileURLToPath ( import . meta. url ) ;
1214const __dirname = path . dirname ( __filename ) ;
@@ -31,6 +33,7 @@ export default [
3133
3234 plugins : {
3335 '@typescript-eslint' : typescriptEslint ,
36+ 'simple-import-sort' : simpleImportSort ,
3437 prettier,
3538 } ,
3639
@@ -44,11 +47,13 @@ export default [
4447 } ,
4548
4649 rules : {
47- '@typescript-eslint/no-var-requires' : 'off' ,
4850 '@typescript-eslint/no-explicit-any' : 'off' ,
51+ '@typescript-eslint/no-var-requires' : 'off' ,
4952 'no-console' : 'error' ,
5053 'no-debugger' : 'error' ,
5154 'prettier/prettier' : 'error' ,
55+ 'simple-import-sort/exports' : 'error' ,
56+ 'simple-import-sort/imports' : 'error' ,
5257 } ,
5358 } ,
5459
0 commit comments