@solvro/config 2.0.3 → 2.0.5
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/{adonis-MGLA5SOL.js → adonis-GN4AQKAU.js} +4 -8
- package/dist/{adonis-MGLA5SOL.js.map → adonis-GN4AQKAU.js.map} +1 -1
- package/dist/{chunk-VSUL3MI5.js → chunk-LNSDT6IT.js} +2 -6
- package/dist/{chunk-VSUL3MI5.js.map → chunk-LNSDT6IT.js.map} +1 -1
- package/dist/{chunk-AQ5RXFKK.js → chunk-SUGOLX7X.js} +2 -6
- package/dist/{chunk-AQ5RXFKK.js.map → chunk-SUGOLX7X.js.map} +1 -1
- package/dist/{chunk-HM3MY7J3.js → chunk-VMUJRX4H.js} +1 -6
- package/dist/{chunk-HM3MY7J3.js.map → chunk-VMUJRX4H.js.map} +1 -1
- package/dist/{chunk-VD4FWSAD.js → chunk-VXVVMPZI.js} +2 -7
- package/dist/{chunk-VD4FWSAD.js.map → chunk-VXVVMPZI.js.map} +1 -1
- package/dist/cli/index.cjs +997 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.cts +2 -0
- package/dist/cli/index.js +33 -39
- package/dist/cli/index.js.map +1 -1
- package/dist/commitlint/index.cjs +63 -0
- package/dist/commitlint/index.cjs.map +1 -0
- package/dist/commitlint/index.d.cts +5 -0
- package/dist/commitlint/index.js +0 -5
- package/dist/commitlint/index.js.map +1 -1
- package/dist/eslint/index.cjs +1230 -0
- package/dist/eslint/index.cjs.map +1 -0
- package/dist/eslint/index.d.cts +6 -0
- package/dist/eslint/index.js +11 -153
- package/dist/eslint/index.js.map +1 -1
- package/dist/{nestjs-33SQ4ZD2.js → nestjs-SVXAEFXN.js} +5 -9
- package/dist/{nestjs-33SQ4ZD2.js.map → nestjs-SVXAEFXN.js.map} +1 -1
- package/dist/{node-RC2VAG45.js → node-LOZFNKBL.js} +5 -9
- package/dist/{node-RC2VAG45.js.map → node-LOZFNKBL.js.map} +1 -1
- package/dist/prettier/index.cjs +58 -0
- package/dist/prettier/index.cjs.map +1 -0
- package/dist/prettier/index.d.cts +18 -0
- package/dist/prettier/index.js +0 -5
- package/dist/prettier/index.js.map +1 -1
- package/dist/react-CM27K2YV.js +167 -0
- package/dist/react-CM27K2YV.js.map +1 -0
- package/package.json +7 -5
- package/dist/chunk-J5OUMHDO.js +0 -44
- package/dist/chunk-J5OUMHDO.js.map +0 -1
- package/dist/react-PWJWWBLW.js +0 -2205
- package/dist/react-PWJWWBLW.js.map +0 -1
@@ -1,20 +1,16 @@
|
|
1
1
|
import {
|
2
2
|
node
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-SUGOLX7X.js";
|
4
4
|
import {
|
5
5
|
typescriptStrict,
|
6
6
|
unicorn
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-VXVVMPZI.js";
|
8
8
|
import {
|
9
9
|
imports
|
10
|
-
} from "./chunk-
|
11
|
-
import "./chunk-
|
12
|
-
import {
|
13
|
-
init_esm_shims
|
14
|
-
} from "./chunk-J5OUMHDO.js";
|
10
|
+
} from "./chunk-LNSDT6IT.js";
|
11
|
+
import "./chunk-VMUJRX4H.js";
|
15
12
|
|
16
13
|
// src/eslint/presets/nestjs.ts
|
17
|
-
init_esm_shims();
|
18
14
|
import eslintNestJs from "@darraghor/eslint-plugin-nestjs-typed";
|
19
15
|
import { isPackageListed } from "local-pkg";
|
20
16
|
var nestjsPreset = async () => {
|
@@ -73,4 +69,4 @@ var nestjsPreset = async () => {
|
|
73
69
|
export {
|
74
70
|
nestjsPreset
|
75
71
|
};
|
76
|
-
//# sourceMappingURL=nestjs-
|
72
|
+
//# sourceMappingURL=nestjs-SVXAEFXN.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/eslint/presets/nestjs.ts"],"sourcesContent":["import eslintNestJs from \"@darraghor/eslint-plugin-nestjs-typed\";\nimport { isPackageListed } from \"local-pkg\";\nimport type { ConfigArray, ConfigWithExtends } from \"typescript-eslint\";\n\nimport { imports } from \"../configs/imports\";\nimport { node } from \"../configs/node\";\nimport { typescriptStrict } from \"../configs/typescript-strict\";\nimport { unicorn } from \"../configs/unicorn\";\n\nexport const nestjsPreset = async (): Promise<ConfigWithExtends[]> => {\n const hasSwagger = await isPackageListed(\"@nestjs/swagger\");\n\n const nestjsConfig = hasSwagger\n ? ([\n ...eslintNestJs.configs.flatRecommended,\n {\n rules: {\n \"@darraghor/nestjs-typed/api-property-matches-property-optionality\":\n \"warn\",\n \"@darraghor/nestjs-typed/controllers-should-supply-api-tags\":\n \"warn\",\n \"@darraghor/nestjs-typed/api-method-should-specify-api-response\":\n \"warn\",\n \"@darraghor/nestjs-typed/api-method-should-specify-api-operation\":\n \"warn\",\n \"@darraghor/nestjs-typed/api-enum-property-best-practices\": \"warn\",\n \"@darraghor/nestjs-typed/api-property-returning-array-should-set-array\":\n \"warn\",\n },\n },\n ] satisfies ConfigArray)\n : eslintNestJs.configs.flatNoSwagger;\n\n return [\n ...node(),\n ...unicorn(),\n ...typescriptStrict(),\n ...imports({ forbidDefaultExport: true }),\n ...nestjsConfig,\n {\n rules: {\n \"no-implicit-coercion\": [\n \"error\",\n {\n allow: [\"+\"],\n },\n ],\n \"unicorn/prefer-top-level-await\": \"off\",\n // flaky as hell\n \"@darraghor/nestjs-typed/injectable-should-be-provided\": \"off\",\n },\n },\n {\n rules: {\n \"@typescript-eslint/no-extraneous-class\": [\n \"error\",\n {\n allowEmpty: true,\n },\n ],\n },\n files: [\"**/*.module.ts\"],\n },\n {\n rules: {\n \"@typescript-eslint/no-floating-promises\": \"off\",\n },\n files: [\"./src/main.ts\"],\n },\n ];\n};\n"],"mappings":"
|
1
|
+
{"version":3,"sources":["../src/eslint/presets/nestjs.ts"],"sourcesContent":["import eslintNestJs from \"@darraghor/eslint-plugin-nestjs-typed\";\nimport { isPackageListed } from \"local-pkg\";\nimport type { ConfigArray, ConfigWithExtends } from \"typescript-eslint\";\n\nimport { imports } from \"../configs/imports\";\nimport { node } from \"../configs/node\";\nimport { typescriptStrict } from \"../configs/typescript-strict\";\nimport { unicorn } from \"../configs/unicorn\";\n\nexport const nestjsPreset = async (): Promise<ConfigWithExtends[]> => {\n const hasSwagger = await isPackageListed(\"@nestjs/swagger\");\n\n const nestjsConfig = hasSwagger\n ? ([\n ...eslintNestJs.configs.flatRecommended,\n {\n rules: {\n \"@darraghor/nestjs-typed/api-property-matches-property-optionality\":\n \"warn\",\n \"@darraghor/nestjs-typed/controllers-should-supply-api-tags\":\n \"warn\",\n \"@darraghor/nestjs-typed/api-method-should-specify-api-response\":\n \"warn\",\n \"@darraghor/nestjs-typed/api-method-should-specify-api-operation\":\n \"warn\",\n \"@darraghor/nestjs-typed/api-enum-property-best-practices\": \"warn\",\n \"@darraghor/nestjs-typed/api-property-returning-array-should-set-array\":\n \"warn\",\n },\n },\n ] satisfies ConfigArray)\n : eslintNestJs.configs.flatNoSwagger;\n\n return [\n ...node(),\n ...unicorn(),\n ...typescriptStrict(),\n ...imports({ forbidDefaultExport: true }),\n ...nestjsConfig,\n {\n rules: {\n \"no-implicit-coercion\": [\n \"error\",\n {\n allow: [\"+\"],\n },\n ],\n \"unicorn/prefer-top-level-await\": \"off\",\n // flaky as hell\n \"@darraghor/nestjs-typed/injectable-should-be-provided\": \"off\",\n },\n },\n {\n rules: {\n \"@typescript-eslint/no-extraneous-class\": [\n \"error\",\n {\n allowEmpty: true,\n },\n ],\n },\n files: [\"**/*.module.ts\"],\n },\n {\n rules: {\n \"@typescript-eslint/no-floating-promises\": \"off\",\n },\n files: [\"./src/main.ts\"],\n },\n ];\n};\n"],"mappings":";;;;;;;;;;;;;AAAA,OAAO,kBAAkB;AACzB,SAAS,uBAAuB;AAQzB,IAAM,eAAe,YAA0C;AACpE,QAAM,aAAa,MAAM,gBAAgB,iBAAiB;AAE1D,QAAM,eAAe,aAChB;AAAA,IACC,GAAG,aAAa,QAAQ;AAAA,IACxB;AAAA,MACE,OAAO;AAAA,QACL,qEACE;AAAA,QACF,8DACE;AAAA,QACF,kEACE;AAAA,QACF,mEACE;AAAA,QACF,4DAA4D;AAAA,QAC5D,yEACE;AAAA,MACJ;AAAA,IACF;AAAA,EACF,IACA,aAAa,QAAQ;AAEzB,SAAO;AAAA,IACL,GAAG,KAAK;AAAA,IACR,GAAG,QAAQ;AAAA,IACX,GAAG,iBAAiB;AAAA,IACpB,GAAG,QAAQ,EAAE,qBAAqB,KAAK,CAAC;AAAA,IACxC,GAAG;AAAA,IACH;AAAA,MACE,OAAO;AAAA,QACL,wBAAwB;AAAA,UACtB;AAAA,UACA;AAAA,YACE,OAAO,CAAC,GAAG;AAAA,UACb;AAAA,QACF;AAAA,QACA,kCAAkC;AAAA;AAAA,QAElC,yDAAyD;AAAA,MAC3D;AAAA,IACF;AAAA,IACA;AAAA,MACE,OAAO;AAAA,QACL,0CAA0C;AAAA,UACxC;AAAA,UACA;AAAA,YACE,YAAY;AAAA,UACd;AAAA,QACF;AAAA,MACF;AAAA,MACA,OAAO,CAAC,gBAAgB;AAAA,IAC1B;AAAA,IACA;AAAA,MACE,OAAO;AAAA,QACL,2CAA2C;AAAA,MAC7C;AAAA,MACA,OAAO,CAAC,eAAe;AAAA,IACzB;AAAA,EACF;AACF;","names":[]}
|
@@ -1,20 +1,16 @@
|
|
1
1
|
import {
|
2
2
|
node
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-SUGOLX7X.js";
|
4
4
|
import {
|
5
5
|
typescriptStrict,
|
6
6
|
unicorn
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-VXVVMPZI.js";
|
8
8
|
import {
|
9
9
|
imports
|
10
|
-
} from "./chunk-
|
11
|
-
import "./chunk-
|
12
|
-
import {
|
13
|
-
init_esm_shims
|
14
|
-
} from "./chunk-J5OUMHDO.js";
|
10
|
+
} from "./chunk-LNSDT6IT.js";
|
11
|
+
import "./chunk-VMUJRX4H.js";
|
15
12
|
|
16
13
|
// src/eslint/presets/node.ts
|
17
|
-
init_esm_shims();
|
18
14
|
var nodePreset = () => [
|
19
15
|
...node(),
|
20
16
|
...unicorn(),
|
@@ -24,4 +20,4 @@ var nodePreset = () => [
|
|
24
20
|
export {
|
25
21
|
nodePreset
|
26
22
|
};
|
27
|
-
//# sourceMappingURL=node-
|
23
|
+
//# sourceMappingURL=node-LOZFNKBL.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/eslint/presets/node.ts"],"sourcesContent":["import type { ConfigWithExtends } from \"typescript-eslint\";\n\nimport { imports } from \"../configs/imports\";\nimport { node } from \"../configs/node\";\nimport { typescriptStrict } from \"../configs/typescript-strict\";\nimport { unicorn } from \"../configs/unicorn\";\n\nexport const nodePreset = (): ConfigWithExtends[] => [\n ...node(),\n ...unicorn(),\n ...typescriptStrict(),\n ...imports({ forbidDefaultExport: true }),\n];\n"],"mappings":"
|
1
|
+
{"version":3,"sources":["../src/eslint/presets/node.ts"],"sourcesContent":["import type { ConfigWithExtends } from \"typescript-eslint\";\n\nimport { imports } from \"../configs/imports\";\nimport { node } from \"../configs/node\";\nimport { typescriptStrict } from \"../configs/typescript-strict\";\nimport { unicorn } from \"../configs/unicorn\";\n\nexport const nodePreset = (): ConfigWithExtends[] => [\n ...node(),\n ...unicorn(),\n ...typescriptStrict(),\n ...imports({ forbidDefaultExport: true }),\n];\n"],"mappings":";;;;;;;;;;;;;AAOO,IAAM,aAAa,MAA2B;AAAA,EACnD,GAAG,KAAK;AAAA,EACR,GAAG,QAAQ;AAAA,EACX,GAAG,iBAAiB;AAAA,EACpB,GAAG,QAAQ,EAAE,qBAAqB,KAAK,CAAC;AAC1C;","names":[]}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __export = (target, all) => {
|
7
|
+
for (var name in all)
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
+
};
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
+
for (let key of __getOwnPropNames(from))
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
+
}
|
16
|
+
return to;
|
17
|
+
};
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
+
|
20
|
+
// src/prettier/index.ts
|
21
|
+
var prettier_exports = {};
|
22
|
+
__export(prettier_exports, {
|
23
|
+
default: () => prettier_default
|
24
|
+
});
|
25
|
+
module.exports = __toCommonJS(prettier_exports);
|
26
|
+
var overridableDefaults = {
|
27
|
+
arrowParens: "always",
|
28
|
+
endOfLine: "lf",
|
29
|
+
printWidth: 80,
|
30
|
+
quoteProps: "as-needed",
|
31
|
+
semi: true,
|
32
|
+
tabWidth: 2,
|
33
|
+
trailingComma: "all",
|
34
|
+
useTabs: false
|
35
|
+
};
|
36
|
+
var prettier_default = {
|
37
|
+
...overridableDefaults,
|
38
|
+
importOrder: [
|
39
|
+
"^@assets/(.*)$",
|
40
|
+
"<THIRD_PARTY_MODULES>",
|
41
|
+
"^@japa/(.*)$",
|
42
|
+
"^@adonisjs/(.*)$",
|
43
|
+
"^@nestjs/(.*)$",
|
44
|
+
"^@/(.*)$",
|
45
|
+
"^#(.*)$",
|
46
|
+
"^[./]"
|
47
|
+
],
|
48
|
+
importOrderSeparation: true,
|
49
|
+
importOrderSortSpecifiers: true,
|
50
|
+
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
51
|
+
plugins: [
|
52
|
+
"prettier-plugin-packagejson",
|
53
|
+
"@trivago/prettier-plugin-sort-imports",
|
54
|
+
"prettier-plugin-tailwindcss"
|
55
|
+
],
|
56
|
+
singleQuote: false
|
57
|
+
};
|
58
|
+
//# sourceMappingURL=index.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/prettier/index.ts"],"sourcesContent":["import type { Options } from \"prettier\";\n\n/**\n * Some of Prettier's defaults can be overridden by an EditorConfig file. We\n * define those here to ensure that doesn't happen.\n *\n * See: https://github.com/prettier/prettier/blob/main/docs/configuration.md#editorconfig\n */\n\nconst overridableDefaults = {\n arrowParens: \"always\",\n endOfLine: \"lf\",\n printWidth: 80,\n quoteProps: \"as-needed\",\n semi: true,\n tabWidth: 2,\n trailingComma: \"all\",\n useTabs: false,\n} as const;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n ...overridableDefaults,\n importOrder: [\n \"^@assets/(.*)$\",\n \"<THIRD_PARTY_MODULES>\",\n \"^@japa/(.*)$\",\n \"^@adonisjs/(.*)$\",\n \"^@nestjs/(.*)$\",\n \"^@/(.*)$\",\n \"^#(.*)$\",\n \"^[./]\",\n ],\n importOrderSeparation: true,\n importOrderSortSpecifiers: true,\n importOrderParserPlugins: [\"typescript\", \"jsx\", \"decorators-legacy\"],\n plugins: [\n \"prettier-plugin-packagejson\",\n \"@trivago/prettier-plugin-sort-imports\",\n \"prettier-plugin-tailwindcss\",\n ],\n singleQuote: false,\n} as const satisfies Options;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,IAAM,sBAAsB;AAAA,EAC1B,aAAa;AAAA,EACb,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,UAAU;AAAA,EACV,eAAe;AAAA,EACf,SAAS;AACX;AAGA,IAAO,mBAAQ;AAAA,EACb,GAAG;AAAA,EACH,aAAa;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,uBAAuB;AAAA,EACvB,2BAA2B;AAAA,EAC3B,0BAA0B,CAAC,cAAc,OAAO,mBAAmB;AAAA,EACnE,SAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,aAAa;AACf;","names":[]}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
readonly importOrder: readonly ["^@assets/(.*)$", "<THIRD_PARTY_MODULES>", "^@japa/(.*)$", "^@adonisjs/(.*)$", "^@nestjs/(.*)$", "^@/(.*)$", "^#(.*)$", "^[./]"];
|
3
|
+
readonly importOrderSeparation: true;
|
4
|
+
readonly importOrderSortSpecifiers: true;
|
5
|
+
readonly importOrderParserPlugins: readonly ["typescript", "jsx", "decorators-legacy"];
|
6
|
+
readonly plugins: ["prettier-plugin-packagejson", "@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"];
|
7
|
+
readonly singleQuote: false;
|
8
|
+
readonly arrowParens: "always";
|
9
|
+
readonly endOfLine: "lf";
|
10
|
+
readonly printWidth: 80;
|
11
|
+
readonly quoteProps: "as-needed";
|
12
|
+
readonly semi: true;
|
13
|
+
readonly tabWidth: 2;
|
14
|
+
readonly trailingComma: "all";
|
15
|
+
readonly useTabs: false;
|
16
|
+
};
|
17
|
+
|
18
|
+
export { _default as default };
|
package/dist/prettier/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/prettier/index.ts"],"sourcesContent":["import type { Options } from \"prettier\";\n\n/**\n * Some of Prettier's defaults can be overridden by an EditorConfig file. We\n * define those here to ensure that doesn't happen.\n *\n * See: https://github.com/prettier/prettier/blob/main/docs/configuration.md#editorconfig\n */\n\nconst overridableDefaults = {\n arrowParens: \"always\",\n endOfLine: \"lf\",\n printWidth: 80,\n quoteProps: \"as-needed\",\n semi: true,\n tabWidth: 2,\n trailingComma: \"all\",\n useTabs: false,\n} as const;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n ...overridableDefaults,\n importOrder: [\n \"^@assets/(.*)$\",\n \"<THIRD_PARTY_MODULES>\",\n \"^@japa/(.*)$\",\n \"^@adonisjs/(.*)$\",\n \"^@nestjs/(.*)$\",\n \"^@/(.*)$\",\n \"^#(.*)$\",\n \"^[./]\",\n ],\n importOrderSeparation: true,\n importOrderSortSpecifiers: true,\n importOrderParserPlugins: [\"typescript\", \"jsx\", \"decorators-legacy\"],\n plugins: [\n \"prettier-plugin-packagejson\",\n \"@trivago/prettier-plugin-sort-imports\",\n \"prettier-plugin-tailwindcss\",\n ],\n singleQuote: false,\n} as const satisfies Options;\n"],"mappings":"
|
1
|
+
{"version":3,"sources":["../../src/prettier/index.ts"],"sourcesContent":["import type { Options } from \"prettier\";\n\n/**\n * Some of Prettier's defaults can be overridden by an EditorConfig file. We\n * define those here to ensure that doesn't happen.\n *\n * See: https://github.com/prettier/prettier/blob/main/docs/configuration.md#editorconfig\n */\n\nconst overridableDefaults = {\n arrowParens: \"always\",\n endOfLine: \"lf\",\n printWidth: 80,\n quoteProps: \"as-needed\",\n semi: true,\n tabWidth: 2,\n trailingComma: \"all\",\n useTabs: false,\n} as const;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n ...overridableDefaults,\n importOrder: [\n \"^@assets/(.*)$\",\n \"<THIRD_PARTY_MODULES>\",\n \"^@japa/(.*)$\",\n \"^@adonisjs/(.*)$\",\n \"^@nestjs/(.*)$\",\n \"^@/(.*)$\",\n \"^#(.*)$\",\n \"^[./]\",\n ],\n importOrderSeparation: true,\n importOrderSortSpecifiers: true,\n importOrderParserPlugins: [\"typescript\", \"jsx\", \"decorators-legacy\"],\n plugins: [\n \"prettier-plugin-packagejson\",\n \"@trivago/prettier-plugin-sort-imports\",\n \"prettier-plugin-tailwindcss\",\n ],\n singleQuote: false,\n} as const satisfies Options;\n"],"mappings":";AASA,IAAM,sBAAsB;AAAA,EAC1B,aAAa;AAAA,EACb,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,UAAU;AAAA,EACV,eAAe;AAAA,EACf,SAAS;AACX;AAGA,IAAO,mBAAQ;AAAA,EACb,GAAG;AAAA,EACH,aAAa;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,uBAAuB;AAAA,EACvB,2BAA2B;AAAA,EAC3B,0BAA0B,CAAC,cAAc,OAAO,mBAAmB;AAAA,EACnE,SAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,aAAa;AACf;","names":[]}
|
@@ -0,0 +1,167 @@
|
|
1
|
+
import {
|
2
|
+
typescriptStrict,
|
3
|
+
unicorn
|
4
|
+
} from "./chunk-VXVVMPZI.js";
|
5
|
+
import {
|
6
|
+
imports
|
7
|
+
} from "./chunk-LNSDT6IT.js";
|
8
|
+
import "./chunk-VMUJRX4H.js";
|
9
|
+
|
10
|
+
// src/eslint/configs/a11y.ts
|
11
|
+
import jsxA11y from "eslint-plugin-jsx-a11y";
|
12
|
+
import globals from "globals";
|
13
|
+
function a11y() {
|
14
|
+
return [
|
15
|
+
{
|
16
|
+
files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
|
17
|
+
...jsxA11y.flatConfigs.recommended,
|
18
|
+
languageOptions: {
|
19
|
+
...jsxA11y.flatConfigs.recommended.languageOptions,
|
20
|
+
globals: {
|
21
|
+
...globals.serviceworker,
|
22
|
+
...globals.browser
|
23
|
+
}
|
24
|
+
},
|
25
|
+
settings: {
|
26
|
+
"jsx-a11y": {
|
27
|
+
components: {
|
28
|
+
Input: "input",
|
29
|
+
Button: "button",
|
30
|
+
Link: "a",
|
31
|
+
Label: "label",
|
32
|
+
Select: "select",
|
33
|
+
Textarea: "textarea"
|
34
|
+
},
|
35
|
+
attributes: {
|
36
|
+
for: ["htmlFor", "for"]
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
];
|
42
|
+
}
|
43
|
+
|
44
|
+
// src/eslint/configs/react.ts
|
45
|
+
import pluginQuery from "@tanstack/eslint-plugin-query";
|
46
|
+
import pluginReact from "eslint-plugin-react";
|
47
|
+
import pluginReactHooks from "eslint-plugin-react-hooks";
|
48
|
+
import pluginReactRefresh from "eslint-plugin-react-refresh";
|
49
|
+
import reactYouMightNotNeedAnEffect from "eslint-plugin-react-you-might-not-need-an-effect";
|
50
|
+
import { isPackageListedSync } from "local-pkg";
|
51
|
+
var nextJsPackages = ["next"];
|
52
|
+
var vitePackages = ["vite"];
|
53
|
+
async function react() {
|
54
|
+
const isUsingNext = nextJsPackages.some(
|
55
|
+
(index) => isPackageListedSync(index)
|
56
|
+
);
|
57
|
+
const isUsingVite = vitePackages.some((index) => isPackageListedSync(index));
|
58
|
+
const nextjsConfig = [];
|
59
|
+
if (isUsingNext) {
|
60
|
+
const nextPlugin = await import("@next/eslint-plugin-next").then(
|
61
|
+
(d) => d.default
|
62
|
+
);
|
63
|
+
nextjsConfig.push(
|
64
|
+
{
|
65
|
+
name: "solvro/next/setup",
|
66
|
+
plugins: {
|
67
|
+
"@next/next": nextPlugin
|
68
|
+
},
|
69
|
+
rules: nextPlugin.configs.recommended.rules
|
70
|
+
},
|
71
|
+
{
|
72
|
+
files: [
|
73
|
+
"**/app/**/{page,loading,layout,template,error,not-found,unauthorized,forbidden,default,robots,sitemap}.{js,jsx,ts,tsx}",
|
74
|
+
"**/pages/**/*.{js,jsx,ts,tsx}"
|
75
|
+
],
|
76
|
+
name: "solvro/next/pages",
|
77
|
+
rules: {
|
78
|
+
"import/no-default-export": "off"
|
79
|
+
}
|
80
|
+
}
|
81
|
+
);
|
82
|
+
}
|
83
|
+
const viteConfig = [];
|
84
|
+
if (isUsingVite) {
|
85
|
+
viteConfig.push(pluginReactRefresh.configs.vite);
|
86
|
+
}
|
87
|
+
return [
|
88
|
+
{
|
89
|
+
name: "solvro/react/setup",
|
90
|
+
plugins: {
|
91
|
+
react: pluginReact,
|
92
|
+
"react-hooks": pluginReactHooks
|
93
|
+
}
|
94
|
+
},
|
95
|
+
...nextjsConfig,
|
96
|
+
...viteConfig,
|
97
|
+
{
|
98
|
+
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
|
99
|
+
languageOptions: {
|
100
|
+
parserOptions: {
|
101
|
+
ecmaFeatures: {
|
102
|
+
jsx: true
|
103
|
+
}
|
104
|
+
},
|
105
|
+
sourceType: "module"
|
106
|
+
},
|
107
|
+
settings: {
|
108
|
+
react: {
|
109
|
+
version: "detect"
|
110
|
+
}
|
111
|
+
},
|
112
|
+
name: "solvro/react/rules",
|
113
|
+
rules: {
|
114
|
+
...pluginReact.configs.flat.recommended.rules,
|
115
|
+
...pluginReact.configs.flat["jsx-runtime"].rules,
|
116
|
+
"react/no-danger": "warn",
|
117
|
+
"react/jsx-no-leaked-render": "warn",
|
118
|
+
// recommended rules react-hooks
|
119
|
+
"react-hooks/exhaustive-deps": "warn",
|
120
|
+
"react-hooks/rules-of-hooks": "error",
|
121
|
+
"react/jsx-no-useless-fragment": "error",
|
122
|
+
"react/function-component-definition": [
|
123
|
+
"error",
|
124
|
+
{
|
125
|
+
unnamedComponents: "arrow-function",
|
126
|
+
namedComponents: "function-declaration"
|
127
|
+
}
|
128
|
+
],
|
129
|
+
"react/hook-use-state": [
|
130
|
+
"error",
|
131
|
+
{
|
132
|
+
allowDestructuredState: true
|
133
|
+
}
|
134
|
+
],
|
135
|
+
"react/no-array-index-key": "warn"
|
136
|
+
}
|
137
|
+
},
|
138
|
+
...pluginQuery.configs["flat/recommended"],
|
139
|
+
reactYouMightNotNeedAnEffect.configs.recommended,
|
140
|
+
{
|
141
|
+
name: "solvro/react/disables",
|
142
|
+
files: ["**/components/ui/*.{jsx,tsx}"],
|
143
|
+
rules: {
|
144
|
+
"react/prop-types": "off",
|
145
|
+
"no-shadow": "off",
|
146
|
+
"@typescript-eslint/no-shadow": "off",
|
147
|
+
"@typescript-eslint/restrict-template-expressions": "off",
|
148
|
+
"unicorn/no-document-cookie": "off",
|
149
|
+
"@typescript-eslint/no-redeclare": "off",
|
150
|
+
"@typescript-eslint/no-deprecated": "off"
|
151
|
+
}
|
152
|
+
}
|
153
|
+
];
|
154
|
+
}
|
155
|
+
|
156
|
+
// src/eslint/presets/react.ts
|
157
|
+
var reactPreset = async () => [
|
158
|
+
...a11y(),
|
159
|
+
...unicorn(),
|
160
|
+
...typescriptStrict(),
|
161
|
+
...imports({ forbidDefaultExport: true }),
|
162
|
+
...await react()
|
163
|
+
];
|
164
|
+
export {
|
165
|
+
reactPreset
|
166
|
+
};
|
167
|
+
//# sourceMappingURL=react-CM27K2YV.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/eslint/configs/a11y.ts","../src/eslint/configs/react.ts","../src/eslint/presets/react.ts"],"sourcesContent":["import jsxA11y from \"eslint-plugin-jsx-a11y\";\nimport globals from \"globals\";\nimport type { ConfigWithExtends } from \"typescript-eslint\";\n\nexport function a11y(): ConfigWithExtends[] {\n return [\n {\n files: [\"**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}\"],\n ...jsxA11y.flatConfigs.recommended,\n languageOptions: {\n ...jsxA11y.flatConfigs.recommended.languageOptions,\n globals: {\n ...globals.serviceworker,\n ...globals.browser,\n },\n },\n settings: {\n \"jsx-a11y\": {\n components: {\n Input: \"input\",\n Button: \"button\",\n Link: \"a\",\n Label: \"label\",\n Select: \"select\",\n Textarea: \"textarea\",\n },\n attributes: {\n for: [\"htmlFor\", \"for\"],\n },\n },\n },\n },\n ];\n}\n","import pluginQuery from \"@tanstack/eslint-plugin-query\";\nimport pluginReact from \"eslint-plugin-react\";\nimport pluginReactHooks from \"eslint-plugin-react-hooks\";\nimport pluginReactRefresh from \"eslint-plugin-react-refresh\";\nimport reactYouMightNotNeedAnEffect from \"eslint-plugin-react-you-might-not-need-an-effect\";\nimport { isPackageListedSync } from \"local-pkg\";\nimport type { ConfigWithExtends } from \"typescript-eslint\";\n\nconst nextJsPackages = [\"next\"];\nconst vitePackages = [\"vite\"];\n\nexport async function react(): Promise<ConfigWithExtends[]> {\n const isUsingNext = nextJsPackages.some((index) =>\n isPackageListedSync(index),\n );\n const isUsingVite = vitePackages.some((index) => isPackageListedSync(index));\n\n const nextjsConfig: ConfigWithExtends[] = [];\n\n if (isUsingNext) {\n const nextPlugin = await import(\"@next/eslint-plugin-next\").then(\n (d) => d.default,\n );\n\n nextjsConfig.push(\n {\n name: \"solvro/next/setup\",\n plugins: {\n \"@next/next\": nextPlugin,\n },\n\n rules: nextPlugin.configs.recommended.rules,\n },\n {\n files: [\n \"**/app/**/{page,loading,layout,template,error,not-found,unauthorized,forbidden,default,robots,sitemap}.{js,jsx,ts,tsx}\",\n \"**/pages/**/*.{js,jsx,ts,tsx}\",\n ],\n name: \"solvro/next/pages\",\n rules: {\n \"import/no-default-export\": \"off\",\n },\n },\n );\n }\n\n const viteConfig: ConfigWithExtends[] = [];\n\n if (isUsingVite) {\n viteConfig.push(pluginReactRefresh.configs.vite);\n }\n\n return [\n {\n name: \"solvro/react/setup\",\n plugins: {\n react: pluginReact,\n\n \"react-hooks\": pluginReactHooks,\n },\n },\n ...nextjsConfig,\n ...viteConfig,\n {\n files: [\"**/*.{js,jsx,mjs,cjs,ts,tsx}\"],\n languageOptions: {\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n sourceType: \"module\",\n },\n settings: {\n react: {\n version: \"detect\",\n },\n },\n name: \"solvro/react/rules\",\n rules: {\n ...pluginReact.configs.flat.recommended.rules,\n ...pluginReact.configs.flat[\"jsx-runtime\"].rules,\n \"react/no-danger\": \"warn\",\n \"react/jsx-no-leaked-render\": \"warn\",\n // recommended rules react-hooks\n \"react-hooks/exhaustive-deps\": \"warn\",\n \"react-hooks/rules-of-hooks\": \"error\",\n \"react/jsx-no-useless-fragment\": \"error\",\n \"react/function-component-definition\": [\n \"error\",\n {\n unnamedComponents: \"arrow-function\",\n namedComponents: \"function-declaration\",\n },\n ],\n \"react/hook-use-state\": [\n \"error\",\n {\n allowDestructuredState: true,\n },\n ],\n \"react/no-array-index-key\": \"warn\",\n },\n },\n ...pluginQuery.configs[\"flat/recommended\"],\n reactYouMightNotNeedAnEffect.configs.recommended,\n {\n name: \"solvro/react/disables\",\n files: [\"**/components/ui/*.{jsx,tsx}\"],\n rules: {\n \"react/prop-types\": \"off\",\n \"no-shadow\": \"off\",\n \"@typescript-eslint/no-shadow\": \"off\",\n \"@typescript-eslint/restrict-template-expressions\": \"off\",\n \"unicorn/no-document-cookie\": \"off\",\n \"@typescript-eslint/no-redeclare\": \"off\",\n \"@typescript-eslint/no-deprecated\": \"off\",\n },\n },\n ];\n}\n","import type { ConfigWithExtends } from \"typescript-eslint\";\n\nimport { a11y } from \"../configs/a11y\";\nimport { imports } from \"../configs/imports\";\nimport { react } from \"../configs/react\";\nimport { typescriptStrict } from \"../configs/typescript-strict\";\nimport { unicorn } from \"../configs/unicorn\";\n\nexport const reactPreset = async (): Promise<ConfigWithExtends[]> => [\n ...a11y(),\n ...unicorn(),\n ...typescriptStrict(),\n ...imports({ forbidDefaultExport: true }),\n ...(await react()),\n];\n"],"mappings":";;;;;;;;;;AAAA,OAAO,aAAa;AACpB,OAAO,aAAa;AAGb,SAAS,OAA4B;AAC1C,SAAO;AAAA,IACL;AAAA,MACE,OAAO,CAAC,wCAAwC;AAAA,MAChD,GAAG,QAAQ,YAAY;AAAA,MACvB,iBAAiB;AAAA,QACf,GAAG,QAAQ,YAAY,YAAY;AAAA,QACnC,SAAS;AAAA,UACP,GAAG,QAAQ;AAAA,UACX,GAAG,QAAQ;AAAA,QACb;AAAA,MACF;AAAA,MACA,UAAU;AAAA,QACR,YAAY;AAAA,UACV,YAAY;AAAA,YACV,OAAO;AAAA,YACP,QAAQ;AAAA,YACR,MAAM;AAAA,YACN,OAAO;AAAA,YACP,QAAQ;AAAA,YACR,UAAU;AAAA,UACZ;AAAA,UACA,YAAY;AAAA,YACV,KAAK,CAAC,WAAW,KAAK;AAAA,UACxB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;ACjCA,OAAO,iBAAiB;AACxB,OAAO,iBAAiB;AACxB,OAAO,sBAAsB;AAC7B,OAAO,wBAAwB;AAC/B,OAAO,kCAAkC;AACzC,SAAS,2BAA2B;AAGpC,IAAM,iBAAiB,CAAC,MAAM;AAC9B,IAAM,eAAe,CAAC,MAAM;AAE5B,eAAsB,QAAsC;AAC1D,QAAM,cAAc,eAAe;AAAA,IAAK,CAAC,UACvC,oBAAoB,KAAK;AAAA,EAC3B;AACA,QAAM,cAAc,aAAa,KAAK,CAAC,UAAU,oBAAoB,KAAK,CAAC;AAE3E,QAAM,eAAoC,CAAC;AAE3C,MAAI,aAAa;AACf,UAAM,aAAa,MAAM,OAAO,0BAA0B,EAAE;AAAA,MAC1D,CAAC,MAAM,EAAE;AAAA,IACX;AAEA,iBAAa;AAAA,MACX;AAAA,QACE,MAAM;AAAA,QACN,SAAS;AAAA,UACP,cAAc;AAAA,QAChB;AAAA,QAEA,OAAO,WAAW,QAAQ,YAAY;AAAA,MACxC;AAAA,MACA;AAAA,QACE,OAAO;AAAA,UACL;AAAA,UACA;AAAA,QACF;AAAA,QACA,MAAM;AAAA,QACN,OAAO;AAAA,UACL,4BAA4B;AAAA,QAC9B;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,QAAM,aAAkC,CAAC;AAEzC,MAAI,aAAa;AACf,eAAW,KAAK,mBAAmB,QAAQ,IAAI;AAAA,EACjD;AAEA,SAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,QACP,OAAO;AAAA,QAEP,eAAe;AAAA,MACjB;AAAA,IACF;AAAA,IACA,GAAG;AAAA,IACH,GAAG;AAAA,IACH;AAAA,MACE,OAAO,CAAC,8BAA8B;AAAA,MACtC,iBAAiB;AAAA,QACf,eAAe;AAAA,UACb,cAAc;AAAA,YACZ,KAAK;AAAA,UACP;AAAA,QACF;AAAA,QACA,YAAY;AAAA,MACd;AAAA,MACA,UAAU;AAAA,QACR,OAAO;AAAA,UACL,SAAS;AAAA,QACX;AAAA,MACF;AAAA,MACA,MAAM;AAAA,MACN,OAAO;AAAA,QACL,GAAG,YAAY,QAAQ,KAAK,YAAY;AAAA,QACxC,GAAG,YAAY,QAAQ,KAAK,aAAa,EAAE;AAAA,QAC3C,mBAAmB;AAAA,QACnB,8BAA8B;AAAA;AAAA,QAE9B,+BAA+B;AAAA,QAC/B,8BAA8B;AAAA,QAC9B,iCAAiC;AAAA,QACjC,uCAAuC;AAAA,UACrC;AAAA,UACA;AAAA,YACE,mBAAmB;AAAA,YACnB,iBAAiB;AAAA,UACnB;AAAA,QACF;AAAA,QACA,wBAAwB;AAAA,UACtB;AAAA,UACA;AAAA,YACE,wBAAwB;AAAA,UAC1B;AAAA,QACF;AAAA,QACA,4BAA4B;AAAA,MAC9B;AAAA,IACF;AAAA,IACA,GAAG,YAAY,QAAQ,kBAAkB;AAAA,IACzC,6BAA6B,QAAQ;AAAA,IACrC;AAAA,MACE,MAAM;AAAA,MACN,OAAO,CAAC,8BAA8B;AAAA,MACtC,OAAO;AAAA,QACL,oBAAoB;AAAA,QACpB,aAAa;AAAA,QACb,gCAAgC;AAAA,QAChC,oDAAoD;AAAA,QACpD,8BAA8B;AAAA,QAC9B,mCAAmC;AAAA,QACnC,oCAAoC;AAAA,MACtC;AAAA,IACF;AAAA,EACF;AACF;;;AChHO,IAAM,cAAc,YAA0C;AAAA,EACnE,GAAG,KAAK;AAAA,EACR,GAAG,QAAQ;AAAA,EACX,GAAG,iBAAiB;AAAA,EACpB,GAAG,QAAQ,EAAE,qBAAqB,KAAK,CAAC;AAAA,EACxC,GAAI,MAAM,MAAM;AAClB;","names":[]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@solvro/config",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.5",
|
4
4
|
"description": "Solvro's engineering style guide",
|
5
5
|
"keywords": [
|
6
6
|
"eslint",
|
@@ -69,6 +69,7 @@
|
|
69
69
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
70
70
|
"@typescript-eslint/eslint-plugin": "^8.35.1",
|
71
71
|
"commander": "^14.0.0",
|
72
|
+
"eslint-config-flat-gitignore": "^2.1.0",
|
72
73
|
"eslint-config-prettier": "^10.1.5",
|
73
74
|
"eslint-plugin-antfu": "^3.1.1",
|
74
75
|
"eslint-plugin-import": "^2.32.0",
|
@@ -78,6 +79,7 @@
|
|
78
79
|
"eslint-plugin-react": "^7.37.5",
|
79
80
|
"eslint-plugin-react-hooks": "^5.2.0",
|
80
81
|
"eslint-plugin-react-refresh": "^0.4.16",
|
82
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.4.1",
|
81
83
|
"eslint-plugin-unicorn": "^59.0.1",
|
82
84
|
"eslint-plugin-unused-imports": "^4.1.4",
|
83
85
|
"execa": "^9.6.0",
|
@@ -85,6 +87,7 @@
|
|
85
87
|
"globals": "^16.3.0",
|
86
88
|
"is-interactive": "^2.0.0",
|
87
89
|
"local-pkg": "^1.1.1",
|
90
|
+
"package-manager-detector": "^1.3.0",
|
88
91
|
"picocolors": "^1.1.1",
|
89
92
|
"prettier-plugin-packagejson": "^2.5.18",
|
90
93
|
"prettier-plugin-tailwindcss": "^0.6.13",
|
@@ -101,12 +104,10 @@
|
|
101
104
|
"@vitest/coverage-v8": "^3.2.4",
|
102
105
|
"@vitest/ui": "^3.2.4",
|
103
106
|
"eslint": "^9.30.1",
|
104
|
-
"eslint-config-flat-gitignore": "^2.1.0",
|
105
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "^0.4.1",
|
106
107
|
"husky": "^9.1.7",
|
107
|
-
"jiti": "^2.4.2",
|
108
108
|
"knip": "^5.61.3",
|
109
109
|
"lint-staged": "^16.1.2",
|
110
|
+
"pkg-pr-new": "^0.0.58",
|
110
111
|
"prettier": "^3.6.2",
|
111
112
|
"semantic-release": "^24.2.6",
|
112
113
|
"tsup": "^8.5.0",
|
@@ -115,7 +116,8 @@
|
|
115
116
|
"vitest": "^3.2.4"
|
116
117
|
},
|
117
118
|
"peerDependencies": {
|
118
|
-
"@next/eslint-plugin-next": ">=12.3.0 <16.0.0-0"
|
119
|
+
"@next/eslint-plugin-next": ">=12.3.0 <16.0.0-0",
|
120
|
+
"eslint": ">=9.0.0 <10.0.0"
|
119
121
|
},
|
120
122
|
"packageManager": "npm@11.4.2",
|
121
123
|
"engines": {
|
package/dist/chunk-J5OUMHDO.js
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
var __create = Object.create;
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __esm = (fn, res) => function __init() {
|
8
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
9
|
-
};
|
10
|
-
var __commonJS = (cb, mod) => function __require() {
|
11
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
12
|
-
};
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
15
|
-
for (let key of __getOwnPropNames(from))
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
18
|
-
}
|
19
|
-
return to;
|
20
|
-
};
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
27
|
-
mod
|
28
|
-
));
|
29
|
-
|
30
|
-
// node_modules/tsup/assets/esm_shims.js
|
31
|
-
import path from "path";
|
32
|
-
import { fileURLToPath } from "url";
|
33
|
-
var init_esm_shims = __esm({
|
34
|
-
"node_modules/tsup/assets/esm_shims.js"() {
|
35
|
-
"use strict";
|
36
|
-
}
|
37
|
-
});
|
38
|
-
|
39
|
-
export {
|
40
|
-
__commonJS,
|
41
|
-
__toESM,
|
42
|
-
init_esm_shims
|
43
|
-
};
|
44
|
-
//# sourceMappingURL=chunk-J5OUMHDO.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../node_modules/tsup/assets/esm_shims.js"],"sourcesContent":["// Shim globals in esm bundle\nimport path from 'node:path'\nimport { fileURLToPath } from 'node:url'\n\nconst getFilename = () => fileURLToPath(import.meta.url)\nconst getDirname = () => path.dirname(getFilename())\n\nexport const __dirname = /* @__PURE__ */ getDirname()\nexport const __filename = /* @__PURE__ */ getFilename()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,UAAU;AACjB,SAAS,qBAAqB;AAF9B;AAAA;AAAA;AAAA;AAAA;","names":[]}
|