@jsse/eslint-config 0.2.17 → 0.2.19
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/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +27 -33
- package/dist/index.d.cts +537 -245
- package/dist/index.d.ts +537 -245
- package/dist/index.js +27 -33
- package/package.json +20 -19
package/dist/cli.cjs
CHANGED
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/globals@15.
|
|
33
|
+
// node_modules/.pnpm/globals@15.10.0/node_modules/globals/globals.json
|
|
34
34
|
var require_globals = __commonJS({
|
|
35
|
-
"node_modules/.pnpm/globals@15.
|
|
35
|
+
"node_modules/.pnpm/globals@15.10.0/node_modules/globals/globals.json"(exports2, module2) {
|
|
36
36
|
module2.exports = {
|
|
37
37
|
amd: {
|
|
38
38
|
define: false,
|
|
@@ -105,6 +105,7 @@ var require_globals = __commonJS({
|
|
|
105
105
|
BackgroundFetchManager: false,
|
|
106
106
|
BackgroundFetchRecord: false,
|
|
107
107
|
BackgroundFetchRegistration: false,
|
|
108
|
+
BarcodeDetector: false,
|
|
108
109
|
BarProp: false,
|
|
109
110
|
BaseAudioContext: false,
|
|
110
111
|
BatteryManager: false,
|
|
@@ -708,6 +709,8 @@ var require_globals = __commonJS({
|
|
|
708
709
|
onresize: true,
|
|
709
710
|
onscroll: true,
|
|
710
711
|
onscrollend: true,
|
|
712
|
+
onscrollsnapchange: true,
|
|
713
|
+
onscrollsnapchanging: true,
|
|
711
714
|
onsearch: true,
|
|
712
715
|
onsecuritypolicyviolation: true,
|
|
713
716
|
onseeked: true,
|
|
@@ -899,6 +902,7 @@ var require_globals = __commonJS({
|
|
|
899
902
|
showDirectoryPicker: false,
|
|
900
903
|
showOpenFilePicker: false,
|
|
901
904
|
showSaveFilePicker: false,
|
|
905
|
+
SnapEvent: false,
|
|
902
906
|
SourceBuffer: false,
|
|
903
907
|
SourceBufferList: false,
|
|
904
908
|
speechSynthesis: false,
|
|
@@ -2666,6 +2670,7 @@ var require_globals = __commonJS({
|
|
|
2666
2670
|
BackgroundFetchManager: false,
|
|
2667
2671
|
BackgroundFetchRecord: false,
|
|
2668
2672
|
BackgroundFetchRegistration: false,
|
|
2673
|
+
BarcodeDetector: false,
|
|
2669
2674
|
Blob: false,
|
|
2670
2675
|
BroadcastChannel: false,
|
|
2671
2676
|
btoa: false,
|
|
@@ -2969,9 +2974,9 @@ var require_globals = __commonJS({
|
|
|
2969
2974
|
}
|
|
2970
2975
|
});
|
|
2971
2976
|
|
|
2972
|
-
// node_modules/.pnpm/globals@15.
|
|
2977
|
+
// node_modules/.pnpm/globals@15.10.0/node_modules/globals/index.js
|
|
2973
2978
|
var require_globals2 = __commonJS({
|
|
2974
|
-
"node_modules/.pnpm/globals@15.
|
|
2979
|
+
"node_modules/.pnpm/globals@15.10.0/node_modules/globals/index.js"(exports2, module2) {
|
|
2975
2980
|
"use strict";
|
|
2976
2981
|
module2.exports = require_globals();
|
|
2977
2982
|
}
|
|
@@ -10726,32 +10731,7 @@ function typescriptRulesTypeOblivious() {
|
|
|
10726
10731
|
"no-console": [
|
|
10727
10732
|
"warn",
|
|
10728
10733
|
{
|
|
10729
|
-
allow: [
|
|
10730
|
-
"log",
|
|
10731
|
-
"warn",
|
|
10732
|
-
"dir",
|
|
10733
|
-
"time",
|
|
10734
|
-
"timeEnd",
|
|
10735
|
-
"timeLog",
|
|
10736
|
-
"trace",
|
|
10737
|
-
"assert",
|
|
10738
|
-
"clear",
|
|
10739
|
-
"count",
|
|
10740
|
-
"countReset",
|
|
10741
|
-
"group",
|
|
10742
|
-
"groupEnd",
|
|
10743
|
-
"table",
|
|
10744
|
-
"debug",
|
|
10745
|
-
"info",
|
|
10746
|
-
"dirxml",
|
|
10747
|
-
"error",
|
|
10748
|
-
"groupCollapsed",
|
|
10749
|
-
"Console",
|
|
10750
|
-
"profile",
|
|
10751
|
-
"profileEnd",
|
|
10752
|
-
"timeStamp",
|
|
10753
|
-
"context"
|
|
10754
|
-
]
|
|
10734
|
+
allow: ["warn", "error"]
|
|
10755
10735
|
}
|
|
10756
10736
|
],
|
|
10757
10737
|
"object-curly-spacing": "off",
|
|
@@ -11613,6 +11593,7 @@ var react = async (options) => {
|
|
|
11613
11593
|
rules: {
|
|
11614
11594
|
...reactRecomendedRules(),
|
|
11615
11595
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
11596
|
+
// @ts-expect-error index access
|
|
11616
11597
|
...pluginReact.configs["jsx-runtime"].rules,
|
|
11617
11598
|
...reactRules()
|
|
11618
11599
|
},
|
|
@@ -11635,6 +11616,14 @@ var react = async (options) => {
|
|
|
11635
11616
|
version: "detect"
|
|
11636
11617
|
}
|
|
11637
11618
|
}
|
|
11619
|
+
},
|
|
11620
|
+
{
|
|
11621
|
+
files: [GLOB_JSX, GLOB_TSX],
|
|
11622
|
+
name: "jsse/react/disables",
|
|
11623
|
+
rules: {
|
|
11624
|
+
"unicorn/no-null": "off"
|
|
11625
|
+
// null is bueno in react
|
|
11626
|
+
}
|
|
11638
11627
|
}
|
|
11639
11628
|
];
|
|
11640
11629
|
if (reactRefresh) {
|
|
@@ -12191,6 +12180,7 @@ var unicorn = async () => {
|
|
|
12191
12180
|
...unicornRecommended(),
|
|
12192
12181
|
...unicornOff(),
|
|
12193
12182
|
"unicorn/better-regex": "error",
|
|
12183
|
+
"unicorn/consistent-empty-array-spread": "error",
|
|
12194
12184
|
"unicorn/custom-error-definition": "error",
|
|
12195
12185
|
// Pass error message when throwing errors
|
|
12196
12186
|
"unicorn/error-message": "error",
|
|
@@ -12649,9 +12639,13 @@ async function jsse(options = {}, ...userConfigs) {
|
|
|
12649
12639
|
}
|
|
12650
12640
|
}
|
|
12651
12641
|
for (const config of combinedConfigs) {
|
|
12652
|
-
for (const
|
|
12653
|
-
if (
|
|
12654
|
-
|
|
12642
|
+
for (const cfgRules of [config.rules, config.plugins]) {
|
|
12643
|
+
if (cfgRules) {
|
|
12644
|
+
for (const rule of off) {
|
|
12645
|
+
if (cfgRules[rule] !== void 0 && cfgRules[rule] !== "off" && cfgRules[rule] !== 0) {
|
|
12646
|
+
cfgRules[rule] = "off";
|
|
12647
|
+
}
|
|
12648
|
+
}
|
|
12655
12649
|
}
|
|
12656
12650
|
}
|
|
12657
12651
|
}
|