@@ -4,7 +4,6 @@ import pluginDeMorgan from "eslint-plugin-de-morgan";
44import pluginJsdoc from "eslint-plugin-jsdoc" ;
55import pluginPerfectionist from "eslint-plugin-perfectionist" ;
66import pluginRegexp from "eslint-plugin-regexp" ;
7- import pluginSimpleImportSort from "eslint-plugin-simple-import-sort" ;
87import pluginUnicorn from "eslint-plugin-unicorn" ;
98import tseslint from "typescript-eslint" ;
109const GLOB_JS = [ "*.{js,jsx,cjs,mjs}" , "**/*.{js,jsx,cjs,mjs}" ] ;
@@ -101,26 +100,38 @@ export const typescript = tseslint.config({
101100 files : GLOB_TS ,
102101 plugins : {
103102 [ "@stylistic" ] : stylistic ,
104- [ "simple-import-sort" ] : pluginSimpleImportSort ,
105103 [ "unicorn" ] : pluginUnicorn ,
106104 } ,
107105 rules : {
108106 "@stylistic/arrow-parens" : [ "warn" , "always" ] ,
109107 "@stylistic/no-multi-spaces" : [ "warn" ] ,
110108 "@stylistic/operator-linebreak" : [ "warn" , "before" ] ,
111109 "@stylistic/quote-props" : [ "error" , "as-needed" ] ,
112- "simple-import-sort/exports" : "warn" ,
113- "simple-import-sort/imports" : "warn" ,
114- "perfectionist/sort-exports" : "off" ,
115- "perfectionist/sort-imports" : "off" ,
110+ "perfectionist/sort-exports" : [ "warn" , { type : "natural" , order : "asc" } ] ,
111+ "perfectionist/sort-imports" : [ "warn" , {
112+ type : "natural" ,
113+ groups : [
114+ "type" ,
115+ [ "parent-type" , "sibling-type" , "index-type" , "internal-type" ] ,
116+ "builtin" ,
117+ "external" ,
118+ "internal" ,
119+ [ "parent" , "sibling" , "index" ] ,
120+ "side-effect" ,
121+ "object" ,
122+ "unknown" ,
123+ ] ,
124+ newlinesBetween : "ignore" ,
125+ order : "asc" ,
126+ } ] ,
116127 "perfectionist/sort-interfaces" : [
117128 "warn" ,
118129 { ...p11tOptions , ...p11tGroups } ,
119130 ] ,
120131 "perfectionist/sort-intersection-types" : "off" ,
121132 "perfectionist/sort-modules" : "off" ,
122- "perfectionist/sort-named-exports" : "off" ,
123- "perfectionist/sort-named-imports" : "off" ,
133+ "perfectionist/sort-named-exports" : [ "warn" , { type : "natural" , order : "asc" } ] ,
134+ "perfectionist/sort-named-imports" : [ "warn" , { type : "natural" , order : "asc" } ] ,
124135 "perfectionist/sort-object-types" : [
125136 "warn" ,
126137 { ...p11tOptions , ...p11tGroups } ,
0 commit comments