File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import globals from 'globals' ;
22import typescriptEslint from '@typescript-eslint/eslint-plugin' ;
33import tsParser from '@typescript-eslint/parser' ;
4- import eslintImport from 'eslint-plugin-import' ;
4+ import eslintImportX from 'eslint-plugin-import-x ' ;
55import path from 'node:path' ;
66import { fileURLToPath } from 'node:url' ;
77import js from '@eslint/js' ;
@@ -48,10 +48,10 @@ export default [
4848 } ,
4949 ...compat
5050 . extends (
51- 'prettier' ,
5251 'plugin:@typescript-eslint/recommended' ,
5352 'plugin:@typescript-eslint/stylistic' ,
54- 'plugin:@typescript-eslint/recommended-type-checked'
53+ 'plugin:@typescript-eslint/recommended-type-checked' ,
54+ 'prettier'
5555 )
5656 . map ( ( config ) => ( {
5757 ...config ,
@@ -61,7 +61,7 @@ export default [
6161 files : [ '**/*.ts' ] ,
6262
6363 plugins : {
64- import : eslintImport ,
64+ ' import-x' : eslintImportX ,
6565 '@typescript-eslint' : typescriptEslint
6666 } ,
6767
@@ -80,7 +80,7 @@ export default [
8080 'error' ,
8181 { ignoreCase : true , ignoreDeclarationSort : true }
8282 ] ,
83- 'import/order' : [
83+ 'import-x /order' : [
8484 'error' ,
8585 {
8686 groups : [
You can’t perform that action at this time.
0 commit comments