@@ -240,7 +240,13 @@ const simpleImportSortRules = {
240240 // Side effect imports.
241241 // Parent imports. Put `..` last.
242242 // Other relative imports. Put same-folder imports and `.` last.
243- [ String . raw `^\.\.(?!/?$)` , String . raw `^\.\./?$` , String . raw `^\./(?=.*/)(?!/?$)` , String . raw `^\.(?!/?$)` , String . raw `^\./?$` ] ,
243+ [
244+ String . raw `^\.\.(?!/?$)` ,
245+ String . raw `^\.\./?$` ,
246+ String . raw `^\./(?=.*/)(?!/?$)` ,
247+ String . raw `^\.(?!/?$)` ,
248+ String . raw `^\./?$` ,
249+ ] ,
244250 // Style imports.
245251 [ String . raw `^.+\.s?css$` ] ,
246252 ] ,
@@ -374,13 +380,14 @@ export default [
374380 } ,
375381 {
376382 name : "unicorn-rules" ,
377- ...eslintPluginUnicorn . configs [ "flat/ recommended" ] ,
383+ ...eslintPluginUnicorn . configs [ "recommended" ] ,
378384 files : [ "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}" ] ,
379385 rules : {
380386 ...Object . fromEntries (
381- Object . entries ( eslintPluginUnicorn . configs [ "flat/recommended" ] . rules ) . map (
382- ( [ rule , value ] ) => [ rule , value === "error" ? "warn" : value ] ,
383- ) ,
387+ Object . entries ( eslintPluginUnicorn . configs [ "recommended" ] . rules ) . map ( ( [ rule , value ] ) => [
388+ rule ,
389+ value === "error" ? "warn" : value ,
390+ ] ) ,
384391 ) ,
385392 "unicorn/prevent-abbreviations" : [ "off" ] ,
386393 "unicorn/filename-case" : [ "off" ] ,
0 commit comments