@saasmakers/eslint 0.2.11 → 1.0.1

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 (35) hide show
  1. package/dist/chunks/formatters.cjs +2 -2
  2. package/dist/chunks/formatters.mjs +2 -2
  3. package/dist/chunks/import.cjs +2 -2
  4. package/dist/chunks/import.mjs +2 -2
  5. package/dist/chunks/index4.cjs +4 -4
  6. package/dist/chunks/index4.mjs +4 -4
  7. package/dist/chunks/jsdoc.cjs +4 -4
  8. package/dist/chunks/jsdoc.mjs +4 -4
  9. package/dist/chunks/stylistic.cjs +4 -4
  10. package/dist/chunks/stylistic.mjs +4 -4
  11. package/dist/chunks/typescript.cjs +194 -194
  12. package/dist/chunks/typescript.mjs +5 -5
  13. package/dist/chunks/unicorn.cjs +1 -1
  14. package/dist/chunks/unicorn.mjs +1 -1
  15. package/dist/chunks/vue.cjs +7 -7
  16. package/dist/chunks/vue.mjs +5 -5
  17. package/dist/eslint.config.cjs +2 -2
  18. package/dist/eslint.config.d.cts +27 -19
  19. package/dist/eslint.config.d.mts +27 -19
  20. package/dist/eslint.config.d.ts +27 -19
  21. package/dist/eslint.config.mjs +2 -2
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.d.cts +2 -6
  24. package/dist/index.d.mts +2 -6
  25. package/dist/index.d.ts +2 -6
  26. package/dist/index.mjs +1 -1
  27. package/dist/shared/{eslint.CMfxPSSy.cjs → eslint.7dipMixF.cjs} +2 -2
  28. package/dist/shared/{eslint.BFtsK_yJ.mjs → eslint.B4kWSx8Y.mjs} +7236 -7435
  29. package/dist/shared/{eslint.DV_fpPxQ.mjs → eslint.B6FFUbNC.mjs} +39 -30
  30. package/dist/shared/{eslint.CDkoKQAL.cjs → eslint.BHA6t2Iw.cjs} +7246 -7438
  31. package/dist/shared/{eslint.Bf7aat-e.mjs → eslint.BXzpdiiq.mjs} +2 -2
  32. package/dist/shared/{eslint.B3ywQ3NK.mjs → eslint.C6EaTeQZ.mjs} +328 -121
  33. package/dist/shared/{eslint.CyJA7jO6.cjs → eslint.DP_6nQqR.cjs} +39 -30
  34. package/dist/shared/{eslint.Dhg0jKDi.cjs → eslint.Dxl4X46J.cjs} +327 -127
  35. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import require$$0 from 'tty';
2
2
  import require$$1 from 'util';
3
+ import { g as getAugmentedNamespace } from './eslint.C6EaTeQZ.mjs';
3
4
 
4
5
  var src = {exports: {}};
5
6
 
@@ -478,11 +479,11 @@ function requireCommon () {
478
479
 
479
480
  /* eslint-env browser */
480
481
 
481
- var hasRequiredBrowser$1;
482
+ var hasRequiredBrowser;
482
483
 
483
- function requireBrowser$1 () {
484
- if (hasRequiredBrowser$1) return browser$1.exports;
485
- hasRequiredBrowser$1 = 1;
484
+ function requireBrowser () {
485
+ if (hasRequiredBrowser) return browser$1.exports;
486
+ hasRequiredBrowser = 1;
486
487
  (function (module, exports$1) {
487
488
  /**
488
489
  * This is the web browser implementation of `debug()`.
@@ -761,37 +762,45 @@ function requireBrowser$1 () {
761
762
  var node = {exports: {}};
762
763
 
763
764
  /* eslint-env browser */
765
+ /* eslint-disable n/no-unsupported-features/node-builtins */
764
766
 
765
- var browser;
766
- var hasRequiredBrowser;
767
-
768
- function requireBrowser () {
769
- if (hasRequiredBrowser) return browser;
770
- hasRequiredBrowser = 1;
771
-
772
- function getChromeVersion() {
773
- const matches = /(Chrome|Chromium)\/(?<chromeVersion>\d+)\./.exec(navigator.userAgent);
767
+ const level = (() => {
768
+ if (!('navigator' in globalThis)) {
769
+ return 0;
770
+ }
774
771
 
775
- if (!matches) {
776
- return;
772
+ if (globalThis.navigator.userAgentData) {
773
+ const brand = navigator.userAgentData.brands.find(({brand}) => brand === 'Chromium');
774
+ if (brand?.version > 93) {
775
+ return 3;
777
776
  }
777
+ }
778
778
 
779
- return Number.parseInt(matches.groups.chromeVersion, 10);
779
+ if (/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)) {
780
+ return 1;
780
781
  }
781
782
 
782
- const colorSupport = getChromeVersion() >= 69 ? {
783
- level: 1,
784
- hasBasic: true,
785
- has256: false,
786
- has16m: false
787
- } : false;
783
+ return 0;
784
+ })();
788
785
 
789
- browser = {
790
- stdout: colorSupport,
791
- stderr: colorSupport
792
- };
793
- return browser;
794
- }
786
+ const colorSupport = level !== 0 && {
787
+ level,
788
+ hasBasic: true,
789
+ has256: level >= 2,
790
+ has16m: level >= 3,
791
+ };
792
+
793
+ const supportsColor = {
794
+ stdout: colorSupport,
795
+ stderr: colorSupport,
796
+ };
797
+
798
+ const browser = {
799
+ __proto__: null,
800
+ default: supportsColor
801
+ };
802
+
803
+ const require$$2 = /*@__PURE__*/getAugmentedNamespace(browser);
795
804
 
796
805
  /**
797
806
  * Module dependencies.
@@ -830,7 +839,7 @@ function requireNode () {
830
839
  try {
831
840
  // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
832
841
  // eslint-disable-next-line import/no-extraneous-dependencies
833
- const supportsColor = requireBrowser();
842
+ const supportsColor = require$$2;
834
843
 
835
844
  if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
836
845
  exports$1.colors = [
@@ -1077,7 +1086,7 @@ function requireSrc () {
1077
1086
  if (hasRequiredSrc) return src.exports;
1078
1087
  hasRequiredSrc = 1;
1079
1088
  if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
1080
- src.exports = requireBrowser$1();
1089
+ src.exports = requireBrowser();
1081
1090
  } else {
1082
1091
  src.exports = requireNode();
1083
1092
  }