@sabzidev/eslint-rules 1.2.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +20 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ var e = {
17
17
  },
18
18
  license: "MIT",
19
19
  author: "Abolfazl Sabzmohammadi <SabziDev@gmail.com> (https://Sabzi.Dev)",
20
- version: "1.2.0",
20
+ version: "1.6.0",
21
21
  type: "module",
22
22
  main: "./dist/index.js",
23
23
  exports: "./dist/index.js",
@@ -434,13 +434,28 @@ var e = {
434
434
  if (e.length === 0) return e;
435
435
  let t = l.flatMap((t) => e.filter((e) => a(e) === t)), o = e.filter((e) => {
436
436
  let t = a(e);
437
- return !n.has(t) && !r(t) && !["className", "style"].includes(t);
437
+ return !n.has(t) && !r(t) && ![
438
+ "className",
439
+ "style",
440
+ "activeClassName",
441
+ "activeStyle"
442
+ ].includes(t);
438
443
  }), s = e.filter((e) => r(a(e))).sort((e, t) => {
439
444
  let n = i(a(e)), r = i(a(t));
440
445
  return n === 999 && r === 999 ? 0 : n - r;
441
- }), c = e.filter((e) => ["className", "style"].includes(a(e))).sort((e, t) => {
442
- let n = a(e), r = a(t);
443
- return n === "className" && r === "style" ? -1 : +(n === "style" && r === "className");
446
+ }), c = e.filter((e) => [
447
+ "className",
448
+ "style",
449
+ "activeClassName",
450
+ "activeStyle"
451
+ ].includes(a(e))).sort((e, t) => {
452
+ let n = [
453
+ "className",
454
+ "style",
455
+ "activeClassName",
456
+ "activeStyle"
457
+ ];
458
+ return n.indexOf(a(e)) - n.indexOf(a(t));
444
459
  });
445
460
  return [
446
461
  ...t,
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "license": "MIT",
19
19
  "author": "Abolfazl Sabzmohammadi <SabziDev@gmail.com> (https://Sabzi.Dev)",
20
- "version": "1.2.0",
20
+ "version": "1.6.0",
21
21
  "type": "module",
22
22
  "main": "./dist/index.js",
23
23
  "exports": "./dist/index.js",