@solvro/config 2.0.3 → 2.0.4

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 (29) hide show
  1. package/dist/{adonis-MGLA5SOL.js → adonis-GN4AQKAU.js} +4 -8
  2. package/dist/{adonis-MGLA5SOL.js.map → adonis-GN4AQKAU.js.map} +1 -1
  3. package/dist/{chunk-VSUL3MI5.js → chunk-LNSDT6IT.js} +2 -6
  4. package/dist/{chunk-VSUL3MI5.js.map → chunk-LNSDT6IT.js.map} +1 -1
  5. package/dist/{chunk-AQ5RXFKK.js → chunk-SUGOLX7X.js} +2 -6
  6. package/dist/{chunk-AQ5RXFKK.js.map → chunk-SUGOLX7X.js.map} +1 -1
  7. package/dist/{chunk-HM3MY7J3.js → chunk-VMUJRX4H.js} +1 -6
  8. package/dist/{chunk-HM3MY7J3.js.map → chunk-VMUJRX4H.js.map} +1 -1
  9. package/dist/{chunk-VD4FWSAD.js → chunk-VXVVMPZI.js} +2 -7
  10. package/dist/{chunk-VD4FWSAD.js.map → chunk-VXVVMPZI.js.map} +1 -1
  11. package/dist/cli/index.js +31 -38
  12. package/dist/cli/index.js.map +1 -1
  13. package/dist/commitlint/index.js +0 -5
  14. package/dist/commitlint/index.js.map +1 -1
  15. package/dist/eslint/index.js +11 -153
  16. package/dist/eslint/index.js.map +1 -1
  17. package/dist/{nestjs-33SQ4ZD2.js → nestjs-SVXAEFXN.js} +5 -9
  18. package/dist/{nestjs-33SQ4ZD2.js.map → nestjs-SVXAEFXN.js.map} +1 -1
  19. package/dist/{node-RC2VAG45.js → node-LOZFNKBL.js} +5 -9
  20. package/dist/{node-RC2VAG45.js.map → node-LOZFNKBL.js.map} +1 -1
  21. package/dist/prettier/index.js +0 -5
  22. package/dist/prettier/index.js.map +1 -1
  23. package/dist/react-CM27K2YV.js +167 -0
  24. package/dist/react-CM27K2YV.js.map +1 -0
  25. package/package.json +6 -5
  26. package/dist/chunk-J5OUMHDO.js +0 -44
  27. package/dist/chunk-J5OUMHDO.js.map +0 -1
  28. package/dist/react-PWJWWBLW.js +0 -2205
  29. package/dist/react-PWJWWBLW.js.map +0 -1
@@ -1,16 +1,12 @@
1
1
  import {
2
2
  node
3
- } from "./chunk-AQ5RXFKK.js";
3
+ } from "./chunk-SUGOLX7X.js";
4
4
  import {
5
5
  imports
6
- } from "./chunk-VSUL3MI5.js";
7
- import "./chunk-HM3MY7J3.js";
8
- import {
9
- init_esm_shims
10
- } from "./chunk-J5OUMHDO.js";
6
+ } from "./chunk-LNSDT6IT.js";
7
+ import "./chunk-VMUJRX4H.js";
11
8
 
12
9
  // src/eslint/presets/adonis.ts
13
- init_esm_shims();
14
10
  import { configApp } from "@adonisjs/eslint-config";
15
11
  var adonisPreset = () => {
16
12
  const builtinAdonisConfig = configApp();
@@ -53,4 +49,4 @@ var adonisPreset = () => {
53
49
  export {
54
50
  adonisPreset
55
51
  };
56
- //# sourceMappingURL=adonis-MGLA5SOL.js.map
52
+ //# sourceMappingURL=adonis-GN4AQKAU.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/eslint/presets/adonis.ts"],"sourcesContent":["import type { ConfigWithExtends } from \"typescript-eslint\";\n\nimport { configApp } from \"@adonisjs/eslint-config\";\n\nimport { imports } from \"../configs/imports\";\nimport { node } from \"../configs/node\";\n\nexport const adonisPreset = (): ConfigWithExtends[] => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call\n const builtinAdonisConfig: ConfigWithExtends[] = configApp();\n\n return [\n ...builtinAdonisConfig,\n ...node(),\n ...imports(),\n {\n rules: {\n \"@typescript-eslint/naming-convention\": [\n \"error\",\n {\n selector: [\"enum\", \"enumMember\", \"class\", \"interface\", \"typeLike\"],\n format: [\"PascalCase\"],\n leadingUnderscore: \"allow\",\n trailingUnderscore: \"allow\",\n },\n {\n selector: [\n \"classProperty\",\n \"classMethod\",\n \"method\",\n \"variableLike\",\n ],\n format: [\"camelCase\"],\n leadingUnderscore: \"allow\",\n trailingUnderscore: \"allow\",\n },\n {\n selector: \"variable\",\n format: [\"camelCase\", \"UPPER_CASE\", \"PascalCase\"],\n leadingUnderscore: \"allow\",\n trailingUnderscore: \"allow\",\n },\n ],\n },\n },\n ];\n};\n"],"mappings":";;;;;;;;;;;;AAAA;AAEA,SAAS,iBAAiB;AAKnB,IAAM,eAAe,MAA2B;AAErD,QAAM,sBAA2C,UAAU;AAE3D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG,KAAK;AAAA,IACR,GAAG,QAAQ;AAAA,IACX;AAAA,MACE,OAAO;AAAA,QACL,wCAAwC;AAAA,UACtC;AAAA,UACA;AAAA,YACE,UAAU,CAAC,QAAQ,cAAc,SAAS,aAAa,UAAU;AAAA,YACjE,QAAQ,CAAC,YAAY;AAAA,YACrB,mBAAmB;AAAA,YACnB,oBAAoB;AAAA,UACtB;AAAA,UACA;AAAA,YACE,UAAU;AAAA,cACR;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,YACF;AAAA,YACA,QAAQ,CAAC,WAAW;AAAA,YACpB,mBAAmB;AAAA,YACnB,oBAAoB;AAAA,UACtB;AAAA,UACA;AAAA,YACE,UAAU;AAAA,YACV,QAAQ,CAAC,aAAa,cAAc,YAAY;AAAA,YAChD,mBAAmB;AAAA,YACnB,oBAAoB;AAAA,UACtB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/eslint/presets/adonis.ts"],"sourcesContent":["import type { ConfigWithExtends } from \"typescript-eslint\";\n\nimport { configApp } from \"@adonisjs/eslint-config\";\n\nimport { imports } from \"../configs/imports\";\nimport { node } from \"../configs/node\";\n\nexport const adonisPreset = (): ConfigWithExtends[] => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call\n const builtinAdonisConfig: ConfigWithExtends[] = configApp();\n\n return [\n ...builtinAdonisConfig,\n ...node(),\n ...imports(),\n {\n rules: {\n \"@typescript-eslint/naming-convention\": [\n \"error\",\n {\n selector: [\"enum\", \"enumMember\", \"class\", \"interface\", \"typeLike\"],\n format: [\"PascalCase\"],\n leadingUnderscore: \"allow\",\n trailingUnderscore: \"allow\",\n },\n {\n selector: [\n \"classProperty\",\n \"classMethod\",\n \"method\",\n \"variableLike\",\n ],\n format: [\"camelCase\"],\n leadingUnderscore: \"allow\",\n trailingUnderscore: \"allow\",\n },\n {\n selector: \"variable\",\n format: [\"camelCase\", \"UPPER_CASE\", \"PascalCase\"],\n leadingUnderscore: \"allow\",\n trailingUnderscore: \"allow\",\n },\n ],\n },\n },\n ];\n};\n"],"mappings":";;;;;;;;;AAEA,SAAS,iBAAiB;AAKnB,IAAM,eAAe,MAA2B;AAErD,QAAM,sBAA2C,UAAU;AAE3D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG,KAAK;AAAA,IACR,GAAG,QAAQ;AAAA,IACX;AAAA,MACE,OAAO;AAAA,QACL,wCAAwC;AAAA,UACtC;AAAA,UACA;AAAA,YACE,UAAU,CAAC,QAAQ,cAAc,SAAS,aAAa,UAAU;AAAA,YACjE,QAAQ,CAAC,YAAY;AAAA,YACrB,mBAAmB;AAAA,YACnB,oBAAoB;AAAA,UACtB;AAAA,UACA;AAAA,YACE,UAAU;AAAA,cACR;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,YACF;AAAA,YACA,QAAQ,CAAC,WAAW;AAAA,YACpB,mBAAmB;AAAA,YACnB,oBAAoB;AAAA,UACtB;AAAA,UACA;AAAA,YACE,UAAU;AAAA,YACV,QAAQ,CAAC,aAAa,cAAc,YAAY;AAAA,YAChD,mBAAmB;AAAA,YACnB,oBAAoB;AAAA,UACtB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
@@ -1,13 +1,9 @@
1
1
  import {
2
2
  default2,
3
3
  default3
4
- } from "./chunk-HM3MY7J3.js";
5
- import {
6
- init_esm_shims
7
- } from "./chunk-J5OUMHDO.js";
4
+ } from "./chunk-VMUJRX4H.js";
8
5
 
9
6
  // src/eslint/configs/imports.ts
10
- init_esm_shims();
11
7
  var forbiddenUiLibraries = [
12
8
  "@headlessui/react",
13
9
  "@mui/material",
@@ -84,4 +80,4 @@ function imports({
84
80
  export {
85
81
  imports
86
82
  };
87
- //# sourceMappingURL=chunk-VSUL3MI5.js.map
83
+ //# sourceMappingURL=chunk-LNSDT6IT.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/eslint/configs/imports.ts"],"sourcesContent":["import type { Config, ConfigWithExtends } from \"typescript-eslint\";\n\nimport { pluginAntfu, pluginImport } from \"../plugins\";\n\nconst forbiddenUiLibraries = [\n \"@headlessui/react\",\n \"@mui/material\",\n \"@chakra-ui/react\",\n \"@chakra-ui/core\",\n \"@nextui-org/react\",\n \"react-bootstrap\",\n \"antd\",\n];\n\nexport function imports({\n forbidDefaultExport = true,\n} = {}): ConfigWithExtends[] {\n const config: Config = [\n pluginImport.flatConfigs.typescript,\n {\n name: \"solvro/imports/rules\",\n plugins: {\n antfu: pluginAntfu,\n },\n\n rules: {\n \"antfu/import-dedupe\": \"error\",\n \"antfu/no-import-dist\": \"error\",\n \"antfu/no-import-node-modules-by-path\": \"error\",\n\n ...(pluginImport.flatConfigs.recommended\n .rules as ConfigWithExtends[\"rules\"]),\n \"import/no-dynamic-require\": \"warn\",\n \"import/no-unresolved\": \"off\",\n \"import/consistent-type-specifier-style\": \"warn\",\n \"@typescript-eslint/no-restricted-imports\": [\n \"error\",\n {\n paths: [\n {\n name: \"axios\",\n message: \"Please use fetch instead\",\n },\n ...forbiddenUiLibraries.map((library) => ({\n name: library,\n message: `Please use ui.shadcn.com components instead.`,\n })),\n ],\n },\n ],\n },\n },\n ] satisfies Config;\n\n if (forbidDefaultExport) {\n config.push(\n {\n rules: { \"import/no-default-export\": \"error\" },\n },\n {\n files: [\n \"tsup.config.*\",\n \"eslint.config.*\",\n \".commitlintrc.*\",\n \"knip.*\",\n \"next.config.*\",\n \"commitlint.config.*\",\n \"vite.config.*\",\n \".releaserc.*\",\n \"vitest.config.*\",\n \"postcss.config.*\",\n \"playwright.config.*\",\n ],\n rules: {\n \"import/no-default-export\": \"off\",\n },\n },\n );\n }\n\n return config;\n}\n"],"mappings":";;;;;;;;;AAAA;AAIA,IAAM,uBAAuB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,SAAS,QAAQ;AAAA,EACtB,sBAAsB;AACxB,IAAI,CAAC,GAAwB;AAC3B,QAAM,SAAiB;AAAA,IACrBA,SAAa,YAAY;AAAA,IACzB;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,QACP,OAAOA;AAAA,MACT;AAAA,MAEA,OAAO;AAAA,QACL,uBAAuB;AAAA,QACvB,wBAAwB;AAAA,QACxB,wCAAwC;AAAA,QAExC,GAAIA,SAAa,YAAY,YAC1B;AAAA,QACH,6BAA6B;AAAA,QAC7B,wBAAwB;AAAA,QACxB,0CAA0C;AAAA,QAC1C,4CAA4C;AAAA,UAC1C;AAAA,UACA;AAAA,YACE,OAAO;AAAA,cACL;AAAA,gBACE,MAAM;AAAA,gBACN,SAAS;AAAA,cACX;AAAA,cACA,GAAG,qBAAqB,IAAI,CAAC,aAAa;AAAA,gBACxC,MAAM;AAAA,gBACN,SAAS;AAAA,cACX,EAAE;AAAA,YACJ;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,MAAI,qBAAqB;AACvB,WAAO;AAAA,MACL;AAAA,QACE,OAAO,EAAE,4BAA4B,QAAQ;AAAA,MAC/C;AAAA,MACA;AAAA,QACE,OAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,OAAO;AAAA,UACL,4BAA4B;AAAA,QAC9B;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AACT;","names":["default"]}
1
+ {"version":3,"sources":["../src/eslint/configs/imports.ts"],"sourcesContent":["import type { Config, ConfigWithExtends } from \"typescript-eslint\";\n\nimport { pluginAntfu, pluginImport } from \"../plugins\";\n\nconst forbiddenUiLibraries = [\n \"@headlessui/react\",\n \"@mui/material\",\n \"@chakra-ui/react\",\n \"@chakra-ui/core\",\n \"@nextui-org/react\",\n \"react-bootstrap\",\n \"antd\",\n];\n\nexport function imports({\n forbidDefaultExport = true,\n} = {}): ConfigWithExtends[] {\n const config: Config = [\n pluginImport.flatConfigs.typescript,\n {\n name: \"solvro/imports/rules\",\n plugins: {\n antfu: pluginAntfu,\n },\n\n rules: {\n \"antfu/import-dedupe\": \"error\",\n \"antfu/no-import-dist\": \"error\",\n \"antfu/no-import-node-modules-by-path\": \"error\",\n\n ...(pluginImport.flatConfigs.recommended\n .rules as ConfigWithExtends[\"rules\"]),\n \"import/no-dynamic-require\": \"warn\",\n \"import/no-unresolved\": \"off\",\n \"import/consistent-type-specifier-style\": \"warn\",\n \"@typescript-eslint/no-restricted-imports\": [\n \"error\",\n {\n paths: [\n {\n name: \"axios\",\n message: \"Please use fetch instead\",\n },\n ...forbiddenUiLibraries.map((library) => ({\n name: library,\n message: `Please use ui.shadcn.com components instead.`,\n })),\n ],\n },\n ],\n },\n },\n ] satisfies Config;\n\n if (forbidDefaultExport) {\n config.push(\n {\n rules: { \"import/no-default-export\": \"error\" },\n },\n {\n files: [\n \"tsup.config.*\",\n \"eslint.config.*\",\n \".commitlintrc.*\",\n \"knip.*\",\n \"next.config.*\",\n \"commitlint.config.*\",\n \"vite.config.*\",\n \".releaserc.*\",\n \"vitest.config.*\",\n \"postcss.config.*\",\n \"playwright.config.*\",\n ],\n rules: {\n \"import/no-default-export\": \"off\",\n },\n },\n );\n }\n\n return config;\n}\n"],"mappings":";;;;;;AAIA,IAAM,uBAAuB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,SAAS,QAAQ;AAAA,EACtB,sBAAsB;AACxB,IAAI,CAAC,GAAwB;AAC3B,QAAM,SAAiB;AAAA,IACrBA,SAAa,YAAY;AAAA,IACzB;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,QACP,OAAOA;AAAA,MACT;AAAA,MAEA,OAAO;AAAA,QACL,uBAAuB;AAAA,QACvB,wBAAwB;AAAA,QACxB,wCAAwC;AAAA,QAExC,GAAIA,SAAa,YAAY,YAC1B;AAAA,QACH,6BAA6B;AAAA,QAC7B,wBAAwB;AAAA,QACxB,0CAA0C;AAAA,QAC1C,4CAA4C;AAAA,UAC1C;AAAA,UACA;AAAA,YACE,OAAO;AAAA,cACL;AAAA,gBACE,MAAM;AAAA,gBACN,SAAS;AAAA,cACX;AAAA,cACA,GAAG,qBAAqB,IAAI,CAAC,aAAa;AAAA,gBACxC,MAAM;AAAA,gBACN,SAAS;AAAA,cACX,EAAE;AAAA,YACJ;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,MAAI,qBAAqB;AACvB,WAAO;AAAA,MACL;AAAA,QACE,OAAO,EAAE,4BAA4B,QAAQ;AAAA,MAC/C;AAAA,MACA;AAAA,QACE,OAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,OAAO;AAAA,UACL,4BAA4B;AAAA,QAC9B;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AACT;","names":["default"]}
@@ -1,12 +1,8 @@
1
1
  import {
2
2
  default4 as default2
3
- } from "./chunk-HM3MY7J3.js";
4
- import {
5
- init_esm_shims
6
- } from "./chunk-J5OUMHDO.js";
3
+ } from "./chunk-VMUJRX4H.js";
7
4
 
8
5
  // src/eslint/configs/node.ts
9
- init_esm_shims();
10
6
  function node() {
11
7
  return [
12
8
  {
@@ -31,4 +27,4 @@ function node() {
31
27
  export {
32
28
  node
33
29
  };
34
- //# sourceMappingURL=chunk-AQ5RXFKK.js.map
30
+ //# sourceMappingURL=chunk-SUGOLX7X.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/eslint/configs/node.ts"],"sourcesContent":["import type { ConfigWithExtends } from \"typescript-eslint\";\n\nimport { pluginNode } from \"../plugins\";\n\nexport function node(): ConfigWithExtends[] {\n return [\n {\n name: \"solvro/node/rules\",\n plugins: {\n node: pluginNode,\n },\n rules: {\n \"node/handle-callback-err\": [\"error\", \"^(err|error)$\"],\n \"node/no-deprecated-api\": \"error\",\n \"node/no-exports-assign\": \"error\",\n \"node/no-new-require\": \"error\",\n \"node/no-path-concat\": \"error\",\n \"node/prefer-global/buffer\": [\"error\"],\n \"node/prefer-global/process\": [\"error\"],\n \"node/process-exit-as-throw\": \"error\",\n },\n },\n ];\n}\n"],"mappings":";;;;;;;;AAAA;AAIO,SAAS,OAA4B;AAC1C,SAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,QACP,MAAMA;AAAA,MACR;AAAA,MACA,OAAO;AAAA,QACL,4BAA4B,CAAC,SAAS,eAAe;AAAA,QACrD,0BAA0B;AAAA,QAC1B,0BAA0B;AAAA,QAC1B,uBAAuB;AAAA,QACvB,uBAAuB;AAAA,QACvB,6BAA6B,CAAC,OAAO;AAAA,QACrC,8BAA8B,CAAC,OAAO;AAAA,QACtC,8BAA8B;AAAA,MAChC;AAAA,IACF;AAAA,EACF;AACF;","names":["default"]}
1
+ {"version":3,"sources":["../src/eslint/configs/node.ts"],"sourcesContent":["import type { ConfigWithExtends } from \"typescript-eslint\";\n\nimport { pluginNode } from \"../plugins\";\n\nexport function node(): ConfigWithExtends[] {\n return [\n {\n name: \"solvro/node/rules\",\n plugins: {\n node: pluginNode,\n },\n rules: {\n \"node/handle-callback-err\": [\"error\", \"^(err|error)$\"],\n \"node/no-deprecated-api\": \"error\",\n \"node/no-exports-assign\": \"error\",\n \"node/no-new-require\": \"error\",\n \"node/no-path-concat\": \"error\",\n \"node/prefer-global/buffer\": [\"error\"],\n \"node/prefer-global/process\": [\"error\"],\n \"node/process-exit-as-throw\": \"error\",\n },\n },\n ];\n}\n"],"mappings":";;;;;AAIO,SAAS,OAA4B;AAC1C,SAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,QACP,MAAMA;AAAA,MACR;AAAA,MACA,OAAO;AAAA,QACL,4BAA4B,CAAC,SAAS,eAAe;AAAA,QACrD,0BAA0B;AAAA,QAC1B,0BAA0B;AAAA,QAC1B,uBAAuB;AAAA,QACvB,uBAAuB;AAAA,QACvB,6BAA6B,CAAC,OAAO;AAAA,QACrC,8BAA8B,CAAC,OAAO;AAAA,QACtC,8BAA8B;AAAA,MAChC;AAAA,IACF;AAAA,EACF;AACF;","names":["default"]}
@@ -1,9 +1,4 @@
1
- import {
2
- init_esm_shims
3
- } from "./chunk-J5OUMHDO.js";
4
-
5
1
  // src/eslint/plugins.ts
6
- init_esm_shims();
7
2
  import { default as default2 } from "@eslint-community/eslint-plugin-eslint-comments";
8
3
  import { default as default3 } from "eslint-plugin-antfu";
9
4
  import { default as default4 } from "eslint-plugin-import";
@@ -19,4 +14,4 @@ export {
19
14
  default6 as default5,
20
15
  default7 as default6
21
16
  };
22
- //# sourceMappingURL=chunk-HM3MY7J3.js.map
17
+ //# sourceMappingURL=chunk-VMUJRX4H.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/eslint/plugins.ts"],"sourcesContent":["//@ts-expect-error not working\nexport { default as pluginComments } from \"@eslint-community/eslint-plugin-eslint-comments\";\nexport { default as pluginAntfu } from \"eslint-plugin-antfu\";\nexport { default as pluginImport } from \"eslint-plugin-import\";\nexport { default as pluginNode } from \"eslint-plugin-n\";\nexport { default as pluginUnicorn } from \"eslint-plugin-unicorn\";\nexport { default as pluginUnusedImports } from \"eslint-plugin-unused-imports\";\n"],"mappings":";;;;;AAAA;AACA,SAAoB,WAAXA,gBAAiC;AAC1C,SAAoB,WAAXA,gBAA8B;AACvC,SAAoB,WAAXA,gBAA+B;AACxC,SAAoB,WAAXA,gBAA6B;AACtC,SAAoB,WAAXA,gBAAgC;AACzC,SAAoB,WAAXA,gBAAsC;","names":["default"]}
1
+ {"version":3,"sources":["../src/eslint/plugins.ts"],"sourcesContent":["//@ts-expect-error not working\nexport { default as pluginComments } from \"@eslint-community/eslint-plugin-eslint-comments\";\nexport { default as pluginAntfu } from \"eslint-plugin-antfu\";\nexport { default as pluginImport } from \"eslint-plugin-import\";\nexport { default as pluginNode } from \"eslint-plugin-n\";\nexport { default as pluginUnicorn } from \"eslint-plugin-unicorn\";\nexport { default as pluginUnusedImports } from \"eslint-plugin-unused-imports\";\n"],"mappings":";AACA,SAAoB,WAAXA,gBAAiC;AAC1C,SAAoB,WAAXA,gBAA8B;AACvC,SAAoB,WAAXA,gBAA+B;AACxC,SAAoB,WAAXA,gBAA6B;AACtC,SAAoB,WAAXA,gBAAgC;AACzC,SAAoB,WAAXA,gBAAsC;","names":["default"]}
@@ -1,13 +1,9 @@
1
1
  import {
2
2
  default2,
3
3
  default5 as default3
4
- } from "./chunk-HM3MY7J3.js";
5
- import {
6
- init_esm_shims
7
- } from "./chunk-J5OUMHDO.js";
4
+ } from "./chunk-VMUJRX4H.js";
8
5
 
9
6
  // src/eslint/configs/typescript-strict.ts
10
- init_esm_shims();
11
7
  import tseslint from "typescript-eslint";
12
8
  function typescriptStrict() {
13
9
  return [
@@ -147,7 +143,6 @@ function typescriptStrict() {
147
143
  }
148
144
 
149
145
  // src/eslint/configs/unicorn.ts
150
- init_esm_shims();
151
146
  function unicorn() {
152
147
  return [
153
148
  {
@@ -187,4 +182,4 @@ export {
187
182
  typescriptStrict,
188
183
  unicorn
189
184
  };
190
- //# sourceMappingURL=chunk-VD4FWSAD.js.map
185
+ //# sourceMappingURL=chunk-VXVVMPZI.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/eslint/configs/typescript-strict.ts","../src/eslint/configs/unicorn.ts"],"sourcesContent":["import tseslint from \"typescript-eslint\";\nimport type { ConfigWithExtends } from \"typescript-eslint\";\n\nimport { pluginAntfu } from \"../plugins\";\n\nexport function typescriptStrict(): ConfigWithExtends[] {\n return [\n ...tseslint.configs.strictTypeChecked,\n ...tseslint.configs.stylisticTypeChecked,\n {\n name: \"solvro/typescript-strict/setup\",\n plugins: {\n antfu: pluginAntfu,\n },\n },\n {\n files: [\"**/*.{ts,tsx}\"],\n name: \"solvro/typescript-strict/rules\",\n rules: {\n \"@typescript-eslint/ban-ts-comment\": [\n \"error\",\n { \"ts-expect-error\": \"allow-with-description\" },\n ],\n \"@typescript-eslint/consistent-type-definitions\": [\n \"error\",\n \"interface\",\n ],\n \"@typescript-eslint/consistent-type-imports\": [\n \"error\",\n {\n disallowTypeAnnotations: false,\n prefer: \"type-imports\",\n },\n ],\n \"@typescript-eslint/method-signature-style\": [\"error\", \"property\"], // https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful\n \"@typescript-eslint/no-dupe-class-members\": \"error\",\n \"@typescript-eslint/no-empty-object-type\": [\n \"error\",\n { allowInterfaces: \"always\" },\n ],\n \"@typescript-eslint/no-import-type-side-effects\": \"error\",\n \"@typescript-eslint/no-redeclare\": [\"error\", { builtinGlobals: false }],\n \"@typescript-eslint/no-require-imports\": \"error\",\n \"@typescript-eslint/no-unused-expressions\": [\n \"error\",\n {\n allowShortCircuit: true,\n allowTaggedTemplates: true,\n allowTernary: true,\n },\n ],\n \"@typescript-eslint/no-use-before-define\": [\n \"error\",\n { classes: false, functions: false, variables: true },\n ],\n \"@typescript-eslint/no-wrapper-object-types\": \"error\",\n // prevent unnecessary use of void operator\n \"@typescript-eslint/no-meaningless-void-operator\": \"error\",\n // \"using non-null assertions cancels the benefits of the strict\n // null-checking mode.\"\n // warn when one of the types in union / intersection overrides others\n \"@typescript-eslint/no-redundant-type-constituents\": \"warn\",\n // prevent variables shadowing\n \"no-shadow\": \"error\",\n \"@typescript-eslint/no-shadow\": \"error\",\n // prevent assignment of this, signals a wrong usage of it\n \"@typescript-eslint/no-this-alias\": \"error\",\n // prevent throwing non-error\n \"no-throw-literal\": \"off\",\n\n // prevent unnecessary explicitly adding a default type argument\n \"@typescript-eslint/no-unnecessary-type-arguments\": \"error\",\n // prevent unnecessary assertions that won't change the outcome\n \"@typescript-eslint/no-unnecessary-type-assertion\": \"error\",\n // prevent extending default types\n \"@typescript-eslint/no-unnecessary-type-constraint\": \"error\",\n // force typing out function arguments\n \"@typescript-eslint/no-unsafe-argument\": \"error\",\n // prevent usage of any via reassigning\n \"@typescript-eslint/no-unsafe-assignment\": \"error\",\n // prevent usage of any via calling it\n \"@typescript-eslint/no-unsafe-call\": \"error\",\n // prevent usage of any via using it's members\n \"@typescript-eslint/no-unsafe-member-access\": \"error\",\n // prevent reverting any from functions\n \"@typescript-eslint/no-unsafe-return\": \"error\",\n // prevent unused expressions\n \"no-unused-expressions\": \"off\",\n // var<'string'> = 'string' -> var = 'string' as const\n \"@typescript-eslint/prefer-as-const\": \"error\",\n // force initializing enums\n \"@typescript-eslint/prefer-enum-initializers\": \"error\",\n // prefer for x of obj to for let i = 0...\n \"@typescript-eslint/prefer-for-of\": \"error\",\n // prefer includes() to indexOf()\n \"@typescript-eslint/prefer-includes\": \"error\",\n // use literals for enum initialization\n \"@typescript-eslint/prefer-literal-enum-member\": \"error\",\n // prefer safe cascade of a value when dealing with undefined or null\n \"@typescript-eslint/prefer-nullish-coalescing\": \"error\",\n // prefer optional chaining (a?.b)\n \"@typescript-eslint/prefer-optional-chain\": \"error\",\n // prefer using type parameter for Array.reduce\n \"@typescript-eslint/prefer-reduce-type-parameter\": \"error\",\n // prefer RegExp#exec when no /g flag in regex\n \"@typescript-eslint/prefer-regexp-exec\": \"error\",\n // enforce `this` as a type when stating type for a method\n \"@typescript-eslint/prefer-return-this-type\": \"error\",\n // enforce startsWith to indexOf === 0\n \"@typescript-eslint/prefer-string-starts-ends-with\": \"error\",\n // prevents default behavior of .sort() - which is confusing\n \"@typescript-eslint/require-array-sort-compare\": \"error\",\n // no async functions without awaits in body\n \"require-await\": \"off\",\n \"@typescript-eslint/require-await\": \"error\",\n // prevent number + string\n \"@typescript-eslint/restrict-plus-operands\": \"error\",\n // only allow string in templates\n \"@typescript-eslint/restrict-template-expressions\": \"error\",\n // prevent returning await\n \"no-return-await\": \"off\",\n \"@typescript-eslint/return-await\": \"error\",\n // only booleans in ifs and whiles\n \"@typescript-eslint/strict-boolean-expressions\": \"error\",\n // check if all paths are followed in code\n \"@typescript-eslint/switch-exhaustiveness-check\": \"error\",\n \"dot-notation\": \"off\",\n \"no-implied-eval\": \"off\",\n \"@typescript-eslint/await-thenable\": \"error\",\n \"@typescript-eslint/dot-notation\": [\"error\", { allowKeywords: true }],\n \"@typescript-eslint/no-floating-promises\": \"error\",\n \"@typescript-eslint/no-for-in-array\": \"error\",\n \"@typescript-eslint/no-implied-eval\": \"error\",\n \"@typescript-eslint/no-misused-promises\": \"error\",\n \"@typescript-eslint/promise-function-async\": \"error\",\n \"@typescript-eslint/unbound-method\": \"error\",\n \"no-restricted-imports\": \"off\",\n },\n },\n ];\n}\n","import type { ConfigWithExtends } from \"typescript-eslint\";\n\nimport { pluginUnicorn } from \"../plugins\";\n\nexport function unicorn(): ConfigWithExtends[] {\n return [\n {\n name: \"solvro/unicorn/rules\",\n plugins: {\n unicorn: pluginUnicorn,\n },\n rules: {\n ...pluginUnicorn.configs.recommended.rules,\n \"unicorn/no-array-reduce\": \"off\",\n \"unicorn/no-null\": \"off\",\n \"unicorn/no-useless-switch-case\": \"off\",\n \"unicorn/prefer-global-this\": \"off\",\n \"unicorn/prevent-abbreviations\": [\n \"error\",\n {\n replacements: {\n env: false,\n envs: false,\n props: false,\n prop: false,\n ref: false,\n utils: false,\n },\n allowList: {\n e2e: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GA,SAAc,QAAQ,YAAY;AAAA,QACrC,2BAA2B;AAAA,QAC3B,mBAAmB;AAAA,QACnB,kCAAkC;AAAA,QAClC,8BAA8B;AAAA,QAC9B,iCAAiC;AAAA,UAC/B;AAAA,UACA;AAAA,YACE,cAAc;AAAA,cACZ,KAAK;AAAA,cACL,MAAM;AAAA,cACN,OAAO;AAAA,cACP,MAAM;AAAA,cACN,KAAK;AAAA,cACL,OAAO;AAAA,YACT;AAAA,YACA,WAAW;AAAA,cACT,KAAK;AAAA,YACP;AAAA,YACA,QAAQ,CAAC,OAAO,QAAQ;AAAA,UAC1B;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":["default","default"]}
1
+ {"version":3,"sources":["../src/eslint/configs/typescript-strict.ts","../src/eslint/configs/unicorn.ts"],"sourcesContent":["import tseslint from \"typescript-eslint\";\nimport type { ConfigWithExtends } from \"typescript-eslint\";\n\nimport { pluginAntfu } from \"../plugins\";\n\nexport function typescriptStrict(): ConfigWithExtends[] {\n return [\n ...tseslint.configs.strictTypeChecked,\n ...tseslint.configs.stylisticTypeChecked,\n {\n name: \"solvro/typescript-strict/setup\",\n plugins: {\n antfu: pluginAntfu,\n },\n },\n {\n files: [\"**/*.{ts,tsx}\"],\n name: \"solvro/typescript-strict/rules\",\n rules: {\n \"@typescript-eslint/ban-ts-comment\": [\n \"error\",\n { \"ts-expect-error\": \"allow-with-description\" },\n ],\n \"@typescript-eslint/consistent-type-definitions\": [\n \"error\",\n \"interface\",\n ],\n \"@typescript-eslint/consistent-type-imports\": [\n \"error\",\n {\n disallowTypeAnnotations: false,\n prefer: \"type-imports\",\n },\n ],\n \"@typescript-eslint/method-signature-style\": [\"error\", \"property\"], // https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful\n \"@typescript-eslint/no-dupe-class-members\": \"error\",\n \"@typescript-eslint/no-empty-object-type\": [\n \"error\",\n { allowInterfaces: \"always\" },\n ],\n \"@typescript-eslint/no-import-type-side-effects\": \"error\",\n \"@typescript-eslint/no-redeclare\": [\"error\", { builtinGlobals: false }],\n \"@typescript-eslint/no-require-imports\": \"error\",\n \"@typescript-eslint/no-unused-expressions\": [\n \"error\",\n {\n allowShortCircuit: true,\n allowTaggedTemplates: true,\n allowTernary: true,\n },\n ],\n \"@typescript-eslint/no-use-before-define\": [\n \"error\",\n { classes: false, functions: false, variables: true },\n ],\n \"@typescript-eslint/no-wrapper-object-types\": \"error\",\n // prevent unnecessary use of void operator\n \"@typescript-eslint/no-meaningless-void-operator\": \"error\",\n // \"using non-null assertions cancels the benefits of the strict\n // null-checking mode.\"\n // warn when one of the types in union / intersection overrides others\n \"@typescript-eslint/no-redundant-type-constituents\": \"warn\",\n // prevent variables shadowing\n \"no-shadow\": \"error\",\n \"@typescript-eslint/no-shadow\": \"error\",\n // prevent assignment of this, signals a wrong usage of it\n \"@typescript-eslint/no-this-alias\": \"error\",\n // prevent throwing non-error\n \"no-throw-literal\": \"off\",\n\n // prevent unnecessary explicitly adding a default type argument\n \"@typescript-eslint/no-unnecessary-type-arguments\": \"error\",\n // prevent unnecessary assertions that won't change the outcome\n \"@typescript-eslint/no-unnecessary-type-assertion\": \"error\",\n // prevent extending default types\n \"@typescript-eslint/no-unnecessary-type-constraint\": \"error\",\n // force typing out function arguments\n \"@typescript-eslint/no-unsafe-argument\": \"error\",\n // prevent usage of any via reassigning\n \"@typescript-eslint/no-unsafe-assignment\": \"error\",\n // prevent usage of any via calling it\n \"@typescript-eslint/no-unsafe-call\": \"error\",\n // prevent usage of any via using it's members\n \"@typescript-eslint/no-unsafe-member-access\": \"error\",\n // prevent reverting any from functions\n \"@typescript-eslint/no-unsafe-return\": \"error\",\n // prevent unused expressions\n \"no-unused-expressions\": \"off\",\n // var<'string'> = 'string' -> var = 'string' as const\n \"@typescript-eslint/prefer-as-const\": \"error\",\n // force initializing enums\n \"@typescript-eslint/prefer-enum-initializers\": \"error\",\n // prefer for x of obj to for let i = 0...\n \"@typescript-eslint/prefer-for-of\": \"error\",\n // prefer includes() to indexOf()\n \"@typescript-eslint/prefer-includes\": \"error\",\n // use literals for enum initialization\n \"@typescript-eslint/prefer-literal-enum-member\": \"error\",\n // prefer safe cascade of a value when dealing with undefined or null\n \"@typescript-eslint/prefer-nullish-coalescing\": \"error\",\n // prefer optional chaining (a?.b)\n \"@typescript-eslint/prefer-optional-chain\": \"error\",\n // prefer using type parameter for Array.reduce\n \"@typescript-eslint/prefer-reduce-type-parameter\": \"error\",\n // prefer RegExp#exec when no /g flag in regex\n \"@typescript-eslint/prefer-regexp-exec\": \"error\",\n // enforce `this` as a type when stating type for a method\n \"@typescript-eslint/prefer-return-this-type\": \"error\",\n // enforce startsWith to indexOf === 0\n \"@typescript-eslint/prefer-string-starts-ends-with\": \"error\",\n // prevents default behavior of .sort() - which is confusing\n \"@typescript-eslint/require-array-sort-compare\": \"error\",\n // no async functions without awaits in body\n \"require-await\": \"off\",\n \"@typescript-eslint/require-await\": \"error\",\n // prevent number + string\n \"@typescript-eslint/restrict-plus-operands\": \"error\",\n // only allow string in templates\n \"@typescript-eslint/restrict-template-expressions\": \"error\",\n // prevent returning await\n \"no-return-await\": \"off\",\n \"@typescript-eslint/return-await\": \"error\",\n // only booleans in ifs and whiles\n \"@typescript-eslint/strict-boolean-expressions\": \"error\",\n // check if all paths are followed in code\n \"@typescript-eslint/switch-exhaustiveness-check\": \"error\",\n \"dot-notation\": \"off\",\n \"no-implied-eval\": \"off\",\n \"@typescript-eslint/await-thenable\": \"error\",\n \"@typescript-eslint/dot-notation\": [\"error\", { allowKeywords: true }],\n \"@typescript-eslint/no-floating-promises\": \"error\",\n \"@typescript-eslint/no-for-in-array\": \"error\",\n \"@typescript-eslint/no-implied-eval\": \"error\",\n \"@typescript-eslint/no-misused-promises\": \"error\",\n \"@typescript-eslint/promise-function-async\": \"error\",\n \"@typescript-eslint/unbound-method\": \"error\",\n \"no-restricted-imports\": \"off\",\n },\n },\n ];\n}\n","import type { ConfigWithExtends } from \"typescript-eslint\";\n\nimport { pluginUnicorn } from \"../plugins\";\n\nexport function unicorn(): ConfigWithExtends[] {\n return [\n {\n name: \"solvro/unicorn/rules\",\n plugins: {\n unicorn: pluginUnicorn,\n },\n rules: {\n ...pluginUnicorn.configs.recommended.rules,\n \"unicorn/no-array-reduce\": \"off\",\n \"unicorn/no-null\": \"off\",\n \"unicorn/no-useless-switch-case\": \"off\",\n \"unicorn/prefer-global-this\": \"off\",\n \"unicorn/prevent-abbreviations\": [\n \"error\",\n {\n replacements: {\n env: false,\n envs: false,\n props: false,\n prop: false,\n ref: false,\n utils: false,\n },\n allowList: {\n e2e: true,\n },\n ignore: [String.raw`e2e`],\n },\n ],\n },\n },\n ];\n}\n"],"mappings":";;;;;;AAAA,OAAO,cAAc;AAKd,SAAS,mBAAwC;AACtD,SAAO;AAAA,IACL,GAAG,SAAS,QAAQ;AAAA,IACpB,GAAG,SAAS,QAAQ;AAAA,IACpB;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,QACP,OAAOA;AAAA,MACT;AAAA,IACF;AAAA,IACA;AAAA,MACE,OAAO,CAAC,eAAe;AAAA,MACvB,MAAM;AAAA,MACN,OAAO;AAAA,QACL,qCAAqC;AAAA,UACnC;AAAA,UACA,EAAE,mBAAmB,yBAAyB;AAAA,QAChD;AAAA,QACA,kDAAkD;AAAA,UAChD;AAAA,UACA;AAAA,QACF;AAAA,QACA,8CAA8C;AAAA,UAC5C;AAAA,UACA;AAAA,YACE,yBAAyB;AAAA,YACzB,QAAQ;AAAA,UACV;AAAA,QACF;AAAA,QACA,6CAA6C,CAAC,SAAS,UAAU;AAAA;AAAA,QACjE,4CAA4C;AAAA,QAC5C,2CAA2C;AAAA,UACzC;AAAA,UACA,EAAE,iBAAiB,SAAS;AAAA,QAC9B;AAAA,QACA,kDAAkD;AAAA,QAClD,mCAAmC,CAAC,SAAS,EAAE,gBAAgB,MAAM,CAAC;AAAA,QACtE,yCAAyC;AAAA,QACzC,4CAA4C;AAAA,UAC1C;AAAA,UACA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C,SAAS,EAAE,eAAe,KAAK,CAAC;AAAA,QACpE,2CAA2C;AAAA,QAC3C,sCAAsC;AAAA,QACtC,sCAAsC;AAAA,QACtC,0CAA0C;AAAA,QAC1C,6CAA6C;AAAA,QAC7C,qCAAqC;AAAA,QACrC,yBAAyB;AAAA,MAC3B;AAAA,IACF;AAAA,EACF;AACF;;;ACxIO,SAAS,UAA+B;AAC7C,SAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,QACP,SAASC;AAAA,MACX;AAAA,MACA,OAAO;AAAA,QACL,GAAGA,SAAc,QAAQ,YAAY;AAAA,QACrC,2BAA2B;AAAA,QAC3B,mBAAmB;AAAA,QACnB,kCAAkC;AAAA,QAClC,8BAA8B;AAAA,QAC9B,iCAAiC;AAAA,UAC/B;AAAA,UACA;AAAA,YACE,cAAc;AAAA,cACZ,KAAK;AAAA,cACL,MAAM;AAAA,cACN,OAAO;AAAA,cACP,MAAM;AAAA,cACN,KAAK;AAAA,cACL,OAAO;AAAA,YACT;AAAA,YACA,WAAW;AAAA,cACT,KAAK;AAAA,YACP;AAAA,YACA,QAAQ,CAAC,OAAO,QAAQ;AAAA,UAC1B;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":["default","default"]}
package/dist/cli/index.js CHANGED
@@ -1,17 +1,13 @@
1
- import {
2
- init_esm_shims
3
- } from "../chunk-J5OUMHDO.js";
4
-
5
1
  // src/cli/index.ts
6
- init_esm_shims();
7
2
  import * as p6 from "@clack/prompts";
8
3
  import { Command } from "commander";
4
+ import { getUserAgent } from "package-manager-detector/detect";
9
5
  import c from "picocolors";
10
6
 
11
7
  // package.json
12
8
  var package_default = {
13
9
  name: "@solvro/config",
14
- version: "2.0.2",
10
+ version: "2.0.3",
15
11
  description: "Solvro's engineering style guide",
16
12
  keywords: [
17
13
  "eslint",
@@ -80,6 +76,7 @@ var package_default = {
80
76
  "@trivago/prettier-plugin-sort-imports": "^5.2.2",
81
77
  "@typescript-eslint/eslint-plugin": "^8.35.1",
82
78
  commander: "^14.0.0",
79
+ "eslint-config-flat-gitignore": "^2.1.0",
83
80
  "eslint-config-prettier": "^10.1.5",
84
81
  "eslint-plugin-antfu": "^3.1.1",
85
82
  "eslint-plugin-import": "^2.32.0",
@@ -89,6 +86,7 @@ var package_default = {
89
86
  "eslint-plugin-react": "^7.37.5",
90
87
  "eslint-plugin-react-hooks": "^5.2.0",
91
88
  "eslint-plugin-react-refresh": "^0.4.16",
89
+ "eslint-plugin-react-you-might-not-need-an-effect": "^0.4.1",
92
90
  "eslint-plugin-unicorn": "^59.0.1",
93
91
  "eslint-plugin-unused-imports": "^4.1.4",
94
92
  execa: "^9.6.0",
@@ -96,6 +94,7 @@ var package_default = {
96
94
  globals: "^16.3.0",
97
95
  "is-interactive": "^2.0.0",
98
96
  "local-pkg": "^1.1.1",
97
+ "package-manager-detector": "^1.3.0",
99
98
  picocolors: "^1.1.1",
100
99
  "prettier-plugin-packagejson": "^2.5.18",
101
100
  "prettier-plugin-tailwindcss": "^0.6.13",
@@ -112,10 +111,7 @@ var package_default = {
112
111
  "@vitest/coverage-v8": "^3.2.4",
113
112
  "@vitest/ui": "^3.2.4",
114
113
  eslint: "^9.30.1",
115
- "eslint-config-flat-gitignore": "^2.1.0",
116
- "eslint-plugin-react-you-might-not-need-an-effect": "^0.4.1",
117
114
  husky: "^9.1.7",
118
- jiti: "^2.4.2",
119
115
  knip: "^5.61.3",
120
116
  "lint-staged": "^16.1.2",
121
117
  prettier: "^3.6.2",
@@ -126,7 +122,8 @@ var package_default = {
126
122
  vitest: "^3.2.4"
127
123
  },
128
124
  peerDependencies: {
129
- "@next/eslint-plugin-next": ">=12.3.0 <16.0.0-0"
125
+ "@next/eslint-plugin-next": ">=12.3.0 <16.0.0-0",
126
+ eslint: ">=9.0.0 <10.0.0"
130
127
  },
131
128
  packageManager: "npm@11.4.2",
132
129
  engines: {
@@ -141,7 +138,6 @@ var package_default = {
141
138
  };
142
139
 
143
140
  // src/utils/is-git-clean.ts
144
- init_esm_shims();
145
141
  import { execSync } from "child_process";
146
142
  function isGitClean() {
147
143
  try {
@@ -153,7 +149,6 @@ function isGitClean() {
153
149
  }
154
150
 
155
151
  // src/utils/package-json.ts
156
- init_esm_shims();
157
152
  import * as p from "@clack/prompts";
158
153
  import { getPackageInfo, isPackageListed, loadPackageJSON } from "local-pkg";
159
154
  import assert from "assert";
@@ -161,11 +156,7 @@ import { writeFile } from "fs/promises";
161
156
  import path2 from "path";
162
157
  import semver from "semver";
163
158
 
164
- // src/utils/$$.ts
165
- init_esm_shims();
166
-
167
159
  // src/utils/git-root.ts
168
- init_esm_shims();
169
160
  import { findUpSync } from "find-up-simple";
170
161
  import { execSync as execSync2 } from "child_process";
171
162
  import path from "path";
@@ -200,7 +191,6 @@ var $$ = async (...arguments_) => {
200
191
  };
201
192
 
202
193
  // src/utils/run-if-interactive.ts
203
- init_esm_shims();
204
194
  import isInteractive from "is-interactive";
205
195
  var runIfInteractive = (function_) => {
206
196
  if (isInteractive()) {
@@ -316,7 +306,6 @@ var PackageJson = class {
316
306
  };
317
307
 
318
308
  // src/utils/polish-confirm.ts
319
- init_esm_shims();
320
309
  import * as p2 from "@clack/prompts";
321
310
  import isInteractive2 from "is-interactive";
322
311
  var polishConfirm = async (props) => {
@@ -331,12 +320,10 @@ var polishConfirm = async (props) => {
331
320
  };
332
321
 
333
322
  // src/cli/install-commitlint.ts
334
- init_esm_shims();
335
323
  import { writeFile as writeFile2 } from "fs/promises";
336
324
  import path3 from "path";
337
325
 
338
326
  // src/cli/install-husky.ts
339
- init_esm_shims();
340
327
  import assert2 from "assert";
341
328
  var packageJson = new PackageJson();
342
329
  var installHusky = async () => {
@@ -352,7 +339,6 @@ var installHusky = async () => {
352
339
  };
353
340
 
354
341
  // src/cli/templates/commitlint.ts
355
- init_esm_shims();
356
342
  var commitlint = () => `export default {
357
343
  extends: ["@solvro/config/commitlint"],
358
344
  };
@@ -372,7 +358,6 @@ var installCommitLint = async () => {
372
358
  };
373
359
 
374
360
  // src/cli/install-eslint.ts
375
- init_esm_shims();
376
361
  import * as p3 from "@clack/prompts";
377
362
  import { existsSync } from "fs";
378
363
  import * as fs from "fs/promises";
@@ -446,17 +431,12 @@ export default solvro();
446
431
  };
447
432
 
448
433
  // src/cli/install-ga.ts
449
- init_esm_shims();
450
434
  import * as p4 from "@clack/prompts";
451
435
  import { existsSync as existsSync2 } from "fs";
452
436
  import * as fs2 from "fs/promises";
453
437
  import path5 from "path";
454
438
 
455
- // src/cli/templates/adonis-ci.ts
456
- init_esm_shims();
457
-
458
439
  // src/cli/templates/commit-lint-ci.ts
459
- init_esm_shims();
460
440
  var commitLintCi = () => `
461
441
  - name: Check commit name
462
442
  if: github.event_name == 'pull_request'
@@ -518,7 +498,6 @@ ${withCommitlint ? commitLintCi() : ""}
518
498
  if: always()`;
519
499
 
520
500
  // src/cli/templates/adonis-ci-migrations.ts
521
- init_esm_shims();
522
501
  var adonisMigrationsCi = () => `name: Migration check
523
502
 
524
503
  on:
@@ -570,7 +549,6 @@ jobs:
570
549
  `;
571
550
 
572
551
  // src/cli/templates/dependabot.ts
573
- init_esm_shims();
574
552
  var dependabot = () => `version: 2
575
553
  updates:
576
554
  - package-ecosystem: "npm"
@@ -582,7 +560,6 @@ updates:
582
560
  `;
583
561
 
584
562
  // src/cli/templates/nestjs-ci.ts
585
- init_esm_shims();
586
563
  var nestjsCi = ({
587
564
  nodeVersion,
588
565
  withCommitlint
@@ -636,7 +613,6 @@ ${withCommitlint ? commitLintCi() : ""}
636
613
  if: always()`;
637
614
 
638
615
  // src/cli/templates/react-ci.ts
639
- init_esm_shims();
640
616
  var reactCi = ({
641
617
  nodeVersion,
642
618
  withCommitlint
@@ -734,7 +710,6 @@ var installGithubActions = async () => {
734
710
  };
735
711
 
736
712
  // src/cli/install-lint-staged.ts
737
- init_esm_shims();
738
713
  import assert3 from "assert";
739
714
  import { writeFile as writeFile5 } from "fs/promises";
740
715
  var packageJson5 = new PackageJson();
@@ -751,7 +726,6 @@ var installLintStaged = async () => {
751
726
  };
752
727
 
753
728
  // src/cli/install-prettier.ts
754
- init_esm_shims();
755
729
  import * as p5 from "@clack/prompts";
756
730
  import assert4 from "assert";
757
731
  import { existsSync as existsSync3 } from "fs";
@@ -818,10 +792,29 @@ async function main() {
818
792
  if (!isNonInteractive) {
819
793
  p6.intro(c.bold(c.bgBlue(" @solvro/config ")));
820
794
  }
795
+ const userAgent = getUserAgent();
796
+ if (userAgent !== "npm") {
797
+ const packageManager = userAgent ?? "unknown";
798
+ const warningMessage = `
799
+ ${c.red(c.bold(`\u26A0\uFE0F OSTRZE\u017BENIE: ${packageManager} nie jest obs\u0142ugiwany \u26A0\uFE0F`))}
800
+
801
+ Pr\xF3bujesz uruchomi\u0107 ten skrypt z ${c.yellow(packageManager)}'em, ale @solvro/config dzia\u0142a tylko z ${c.yellow("npm'em")}.
802
+
803
+ Support dla innych mened\u017Cer\xF3w pakiet\xF3w nie jest planowany - chcemy jednolitego stacku technologicznego dla projekt\xF3w w naszym kochanym kole Solvro.
804
+
805
+ U\u017Cyj zamiast tego npm'a:
806
+ ${c.cyan("npx @solvro/config")}`;
807
+ if (isNonInteractive) {
808
+ console.error(warningMessage);
809
+ } else {
810
+ p6.cancel(warningMessage);
811
+ }
812
+ process.exit(1);
813
+ }
821
814
  if (options.force !== true && !isGitClean()) {
822
815
  if (isNonInteractive) {
823
816
  console.error(
824
- "Git repository has uncommitted changes. Use --force to bypass this check."
817
+ "Repozytorium Git ma niezatwierdzone zmiany. U\u017Cyj --force, aby pomin\u0105\u0107 to sprawdzenie."
825
818
  );
826
819
  process.exit(1);
827
820
  }
@@ -908,7 +901,7 @@ async function main() {
908
901
  }
909
902
  if (toolsToInstall.length === 0) {
910
903
  console.error(
911
- "No tools specified. Use --eslint, --prettier, --gh-action, --commitlint, or --all"
904
+ "Nie wybrano \u017Cadnych narz\u0119dzi. U\u017Cyj --eslint, --prettier, --gh-action, --commitlint, lub --all"
912
905
  );
913
906
  process.exit(1);
914
907
  }
@@ -965,15 +958,15 @@ async function main() {
965
958
  }
966
959
  await packageJson7.clearInstall();
967
960
  if (isNonInteractive) {
968
- console.log("\u2705 Configuration completed successfully!");
961
+ console.log("\u2705 Konfiguracja zako\u0144czona pomy\u015Blnie!");
969
962
  } else {
970
- p6.outro("\u2705 Configuration completed successfully!");
963
+ p6.outro("\u2705 Konfiguracja zako\u0144czona pomy\u015Blnie!");
971
964
  }
972
965
  }
973
966
  try {
974
967
  await main();
975
968
  } catch (error) {
976
- console.error("An error occurred:", error);
969
+ console.error("Wyst\u0105pi\u0142 b\u0142\u0105d:", error);
977
970
  process.exit(1);
978
971
  }
979
972
  //# sourceMappingURL=index.js.map