@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.
- package/dist/chunks/formatters.cjs +2 -2
- package/dist/chunks/formatters.mjs +2 -2
- package/dist/chunks/import.cjs +2 -2
- package/dist/chunks/import.mjs +2 -2
- package/dist/chunks/index4.cjs +4 -4
- package/dist/chunks/index4.mjs +4 -4
- package/dist/chunks/jsdoc.cjs +4 -4
- package/dist/chunks/jsdoc.mjs +4 -4
- package/dist/chunks/stylistic.cjs +4 -4
- package/dist/chunks/stylistic.mjs +4 -4
- package/dist/chunks/typescript.cjs +194 -194
- package/dist/chunks/typescript.mjs +5 -5
- package/dist/chunks/unicorn.cjs +1 -1
- package/dist/chunks/unicorn.mjs +1 -1
- package/dist/chunks/vue.cjs +7 -7
- package/dist/chunks/vue.mjs +5 -5
- package/dist/eslint.config.cjs +2 -2
- package/dist/eslint.config.d.cts +27 -19
- package/dist/eslint.config.d.mts +27 -19
- package/dist/eslint.config.d.ts +27 -19
- package/dist/eslint.config.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -6
- package/dist/index.d.mts +2 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.mjs +1 -1
- package/dist/shared/{eslint.CMfxPSSy.cjs → eslint.7dipMixF.cjs} +2 -2
- package/dist/shared/{eslint.BFtsK_yJ.mjs → eslint.B4kWSx8Y.mjs} +7236 -7435
- package/dist/shared/{eslint.DV_fpPxQ.mjs → eslint.B6FFUbNC.mjs} +39 -30
- package/dist/shared/{eslint.CDkoKQAL.cjs → eslint.BHA6t2Iw.cjs} +7246 -7438
- package/dist/shared/{eslint.Bf7aat-e.mjs → eslint.BXzpdiiq.mjs} +2 -2
- package/dist/shared/{eslint.B3ywQ3NK.mjs → eslint.C6EaTeQZ.mjs} +328 -121
- package/dist/shared/{eslint.CyJA7jO6.cjs → eslint.DP_6nQqR.cjs} +39 -30
- package/dist/shared/{eslint.Dhg0jKDi.cjs → eslint.Dxl4X46J.cjs} +327 -127
- 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
|
|
482
|
+
var hasRequiredBrowser;
|
|
482
483
|
|
|
483
|
-
function requireBrowser
|
|
484
|
-
if (hasRequiredBrowser
|
|
485
|
-
hasRequiredBrowser
|
|
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
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
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
|
-
|
|
776
|
-
|
|
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
|
-
|
|
779
|
+
if (/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)) {
|
|
780
|
+
return 1;
|
|
780
781
|
}
|
|
781
782
|
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
hasBasic: true,
|
|
785
|
-
has256: false,
|
|
786
|
-
has16m: false
|
|
787
|
-
} : false;
|
|
783
|
+
return 0;
|
|
784
|
+
})();
|
|
788
785
|
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
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 =
|
|
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
|
|
1089
|
+
src.exports = requireBrowser();
|
|
1081
1090
|
} else {
|
|
1082
1091
|
src.exports = requireNode();
|
|
1083
1092
|
}
|