@@ -240,7 +240,13 @@ const simpleImportSortRules = {
240
240
// Side effect imports.
241
241
// Parent imports. Put `..` last.
242
242
// 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
+ ] ,
244
250
// Style imports.
245
251
[ String . raw `^.+\.s?css$` ] ,
246
252
] ,
@@ -374,13 +380,14 @@ export default [
374
380
} ,
375
381
{
376
382
name : "unicorn-rules" ,
377
- ...eslintPluginUnicorn . configs [ "flat/ recommended" ] ,
383
+ ...eslintPluginUnicorn . configs [ "recommended" ] ,
378
384
files : [ "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}" ] ,
379
385
rules : {
380
386
...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
+ ] ) ,
384
391
) ,
385
392
"unicorn/prevent-abbreviations" : [ "off" ] ,
386
393
"unicorn/filename-case" : [ "off" ] ,
0 commit comments