@useinsider/eslint-config 1.3.0-beta.21 → 1.3.0-beta.23
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/main.cjs +1 -1
- package/dist/main.js +10 -35
- package/package.json +19 -15
package/dist/main.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("ts-deepmerge");function n(...e){return c.merge.withOptions({mergeArrays:!1},...e)}function a(...e){return e.flat().reduce((t,s)=>n(t,s),{})}const i={async config(){return Promise.resolve().then(()=>require("./index-CAuGyIr4.cjs"))},async javascript(){return Promise.resolve().then(()=>require("./index-B5FZUBe8.cjs"))},async"javascript-node"(){return Promise.resolve().then(()=>require("./index-BRXTBIK6.cjs"))},async"javascript-dom"(){return Promise.resolve().then(()=>require("./index-CjloOm7h.cjs"))},async typescript(){return Promise.resolve().then(()=>require("./index-CCngt07f.cjs"))},async"typescript-node"(){return Promise.resolve().then(()=>require("./index-CZG4LLz1.cjs"))},async"typescript-dom"(){return Promise.resolve().then(()=>require("./index-ZUN0xFSs.cjs"))},async vue3(){return Promise.resolve().then(()=>require("./index-BPS1S4-r.cjs"))},async"vue3-typescript"(){return Promise.resolve().then(()=>require("./index-Brj-OnR2.cjs"))},async vue2(){return Promise.resolve().then(()=>require("./index-DLjVlGbl.cjs"))}};async function l(e){const t=e.preset.map(async r=>typeof i[r]=="function"&&(await i[r]()).default).filter(Boolean),s=await Promise.all(t),o=n(s.reduce((r,u)=>n(r,u),{}),e.config);return o||Promise.reject(new Error("No config found"))}exports.merge=n;exports.mergeAll=a;exports.useInsider=l;
|
package/dist/main.js
CHANGED
|
@@ -1,36 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const r = Object.getPrototypeOf(o);
|
|
5
|
-
return r === Object.prototype || r === null;
|
|
6
|
-
}
|
|
7
|
-
return Object.prototype.toString.call(o) === "[object Object]";
|
|
8
|
-
}
|
|
9
|
-
return !1;
|
|
10
|
-
}, n = (...o) => o.reduce((r, e) => {
|
|
11
|
-
if (Array.isArray(e))
|
|
12
|
-
throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");
|
|
13
|
-
return Object.keys(e).forEach((t) => {
|
|
14
|
-
["__proto__", "constructor", "prototype"].includes(t) || (Array.isArray(r[t]) && Array.isArray(e[t]) ? r[t] = n.options.mergeArrays ? n.options.uniqueArrayItems ? Array.from(new Set(r[t].concat(e[t]))) : [...r[t], ...e[t]] : e[t] : p(r[t]) && p(e[t]) ? r[t] = n(r[t], e[t]) : r[t] = e[t] === void 0 ? n.options.allowUndefinedOverrides ? e[t] : r[t] : e[t]);
|
|
15
|
-
}), r;
|
|
16
|
-
}, {}), s = {
|
|
17
|
-
allowUndefinedOverrides: !0,
|
|
18
|
-
mergeArrays: !0,
|
|
19
|
-
uniqueArrayItems: !0
|
|
20
|
-
};
|
|
21
|
-
n.options = s;
|
|
22
|
-
n.withOptions = (o, ...r) => {
|
|
23
|
-
n.options = Object.assign(Object.assign({}, s), o);
|
|
24
|
-
const e = n(...r);
|
|
25
|
-
return n.options = s, e;
|
|
26
|
-
};
|
|
27
|
-
function a(...o) {
|
|
28
|
-
return n.withOptions({ mergeArrays: !1 }, ...o);
|
|
1
|
+
import { merge as a } from "ts-deepmerge";
|
|
2
|
+
function o(...r) {
|
|
3
|
+
return a.withOptions({ mergeArrays: !1 }, ...r);
|
|
29
4
|
}
|
|
30
|
-
function u(...
|
|
31
|
-
return
|
|
5
|
+
function u(...r) {
|
|
6
|
+
return r.flat().reduce((t, n) => o(t, n), {});
|
|
32
7
|
}
|
|
33
|
-
const
|
|
8
|
+
const s = {
|
|
34
9
|
async config() {
|
|
35
10
|
return import("./index-CixUmpPQ.js");
|
|
36
11
|
},
|
|
@@ -62,12 +37,12 @@ const c = {
|
|
|
62
37
|
return import("./index-BVRhCxZ-.js");
|
|
63
38
|
}
|
|
64
39
|
};
|
|
65
|
-
async function m(
|
|
66
|
-
const
|
|
67
|
-
return
|
|
40
|
+
async function m(r) {
|
|
41
|
+
const t = r.preset.map(async (e) => typeof s[e] == "function" && (await s[e]()).default).filter(Boolean), n = await Promise.all(t), i = o(n.reduce((e, c) => o(e, c), {}), r.config);
|
|
42
|
+
return i || Promise.reject(new Error("No config found"));
|
|
68
43
|
}
|
|
69
44
|
export {
|
|
70
|
-
|
|
45
|
+
o as merge,
|
|
71
46
|
u as mergeAll,
|
|
72
47
|
m as useInsider
|
|
73
48
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.0-beta.
|
|
4
|
+
"version": "1.3.0-beta.23",
|
|
5
5
|
"description": "A collection of ESLint configurations provided by @useinsider, offering support for various environments including Vanilla JS, TypeScript, and framework-specific setups such as Vue 3.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"useinsider",
|
|
@@ -69,42 +69,42 @@
|
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@cspell/eslint-plugin": "8.16.0",
|
|
71
71
|
"@eslint/eslintrc": "3.2.0",
|
|
72
|
+
"@eslint/js": "8.57.1",
|
|
72
73
|
"@stylistic/eslint-plugin": "2.10.1",
|
|
73
74
|
"@stylistic/eslint-plugin-migrate": "2.10.1",
|
|
75
|
+
"@types/eslint": "8.56.12",
|
|
76
|
+
"@types/eslint__eslintrc": "2.1.2",
|
|
77
|
+
"@types/eslint__js": "8.42.3",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
79
|
+
"@typescript-eslint/parser": "7.18.0",
|
|
74
80
|
"eslint": "8.57.1",
|
|
75
81
|
"eslint-config-airbnb-base": "15.0.0",
|
|
82
|
+
"eslint-config-airbnb-typescript": "18.0.0",
|
|
83
|
+
"eslint-import-resolver-typescript": "3.6.3",
|
|
76
84
|
"eslint-plugin-import": "2.31.0",
|
|
77
85
|
"eslint-plugin-jsdoc": "50.5.0",
|
|
78
|
-
"
|
|
86
|
+
"globals": "15.14.0",
|
|
87
|
+
"ts-deepmerge": "7.0.1",
|
|
88
|
+
"typescript": "5.6.2",
|
|
89
|
+
"typescript-eslint": "8.14.0"
|
|
79
90
|
},
|
|
80
91
|
"devDependencies": {
|
|
81
|
-
"@eslint/js": "8.57.1",
|
|
82
92
|
"@rollup/plugin-typescript": "11.1.6",
|
|
83
93
|
"@semantic-release/changelog": "6.0.3",
|
|
84
94
|
"@semantic-release/git": "10.0.1",
|
|
85
|
-
"@types/eslint": "8.56.12",
|
|
86
|
-
"@types/eslint__eslintrc": "2.1.2",
|
|
87
|
-
"@types/eslint__js": "8.42.3",
|
|
88
95
|
"@types/fs-extra": "11.0.4",
|
|
89
96
|
"@types/node": "22.9.0",
|
|
90
|
-
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
91
|
-
"@typescript-eslint/parser": "7.18.0",
|
|
92
97
|
"@useinsider/release-config": "workspace:*",
|
|
93
98
|
"@vitest/coverage-v8": "2.1.5",
|
|
94
99
|
"@vue/eslint-config-typescript": "13.0.0",
|
|
95
|
-
"eslint-config-airbnb-typescript": "18.0.0",
|
|
96
|
-
"eslint-import-resolver-typescript": "3.6.3",
|
|
97
100
|
"eslint-plugin-vue": "9.31.0",
|
|
98
101
|
"eslint-plugin-vue-scoped-css": "2.8.1",
|
|
99
102
|
"fs-extra": "11.2.0",
|
|
100
|
-
"globals": "15.12.0",
|
|
101
103
|
"rollup-plugin-typescript-paths": "1.5.0",
|
|
102
104
|
"rollup-plugin-visualizer": "5.12.0",
|
|
103
105
|
"semantic-release": "24.0.0",
|
|
104
106
|
"semantic-release-monorepo": "8.0.2",
|
|
105
|
-
"
|
|
106
|
-
"typescript": "5.5.4",
|
|
107
|
-
"typescript-eslint": "8.14.0",
|
|
107
|
+
"tslib": "2.6.3",
|
|
108
108
|
"vite": "5.4.11",
|
|
109
109
|
"vite-tsconfig-paths": "5.1.2",
|
|
110
110
|
"vitest": "2.1.5",
|
|
@@ -112,6 +112,10 @@
|
|
|
112
112
|
"vue-eslint-parser": "9.4.3"
|
|
113
113
|
},
|
|
114
114
|
"optionalDependencies": {
|
|
115
|
-
"@rushstack/eslint-patch": ">=1.10.4"
|
|
115
|
+
"@rushstack/eslint-patch": ">=1.10.4",
|
|
116
|
+
"@vue/eslint-config-typescript": "13.0.0",
|
|
117
|
+
"eslint-plugin-vue": "9.31.0",
|
|
118
|
+
"eslint-plugin-vue-scoped-css": "2.8.1",
|
|
119
|
+
"vue-eslint-parser": "9.4.3"
|
|
116
120
|
}
|
|
117
121
|
}
|