@kubb/plugin-cypress 3.17.1 → 3.18.0

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.
@@ -1,4 +1,4 @@
1
- import { HttpMethod, OperationSchemas, PluginCypress } from "./types-Rl0-mzsN.cjs";
1
+ import { HttpMethod, OperationSchemas, PluginCypress } from "./types-rlD4akES.cjs";
2
2
  import { ReactNode } from "react";
3
3
 
4
4
  //#region src/components/Request.d.ts
@@ -1,4 +1,4 @@
1
- import { HttpMethod, OperationSchemas, PluginCypress } from "./types-BNTHk264.js";
1
+ import { HttpMethod, OperationSchemas, PluginCypress } from "./types-B8kwRVN5.js";
2
2
  import { ReactNode } from "react";
3
3
 
4
4
  //#region src/components/Request.d.ts
@@ -1,4 +1,4 @@
1
- import { Generator, PluginCypress } from "./types-Rl0-mzsN.cjs";
1
+ import { Generator, PluginCypress } from "./types-rlD4akES.cjs";
2
2
 
3
3
  //#region src/generators/cypressGenerator.d.ts
4
4
  declare const cypressGenerator: Generator<PluginCypress>;
@@ -1,4 +1,4 @@
1
- import { Generator, PluginCypress } from "./types-BNTHk264.js";
1
+ import { Generator, PluginCypress } from "./types-B8kwRVN5.js";
2
2
 
3
3
  //#region src/generators/cypressGenerator.d.ts
4
4
  declare const cypressGenerator: Generator<PluginCypress>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options, PluginCypress, UserPluginWithLifeCycle } from "./types-Rl0-mzsN.cjs";
1
+ import { Options, PluginCypress, UserPluginWithLifeCycle } from "./types-rlD4akES.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginCypressName = "plugin-cypress";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options, PluginCypress, UserPluginWithLifeCycle } from "./types-BNTHk264.js";
1
+ import { Options, PluginCypress, UserPluginWithLifeCycle } from "./types-B8kwRVN5.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginCypressName = "plugin-cypress";
@@ -270,6 +270,27 @@ type Config<TInput = Input> = {
270
270
  * @default true
271
271
  */
272
272
  write?: boolean;
273
+ /**
274
+ * Specifies the formatting tool to be used.
275
+ * @default prettier
276
+ *
277
+ * Possible values:
278
+ * - 'prettier': Uses Prettier for code formatting.
279
+ * - 'biome': Uses Biome for code formatting.
280
+ *
281
+ */
282
+ format?: 'prettier' | 'biome' | false;
283
+ /**
284
+ * Specifies the linter that should be used to analyze the code.
285
+ * The accepted values indicate different linting tools.
286
+ *
287
+ * Possible values:
288
+ * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
289
+ * - 'biome': Represents the Biome linter, a modern tool for code scanning.
290
+ * - 'oxlint': Represents the Oxlint tool for linting purposes.
291
+ *
292
+ */
293
+ lint?: 'eslint' | 'biome' | 'oxlint' | false;
273
294
  /**
274
295
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
275
296
  * @default { '.ts': '.ts'}
@@ -1163,4 +1184,4 @@ type ResolvedOptions = {
1163
1184
  type PluginCypress = PluginFactoryOptions<'plugin-cypress', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1164
1185
  //#endregion
1165
1186
  export { Generator, type HttpMethod, OperationSchemas, Options$1 as Options, PluginCypress, UserPluginWithLifeCycle };
1166
- //# sourceMappingURL=types-BNTHk264.d.ts.map
1187
+ //# sourceMappingURL=types-B8kwRVN5.d.ts.map
@@ -270,6 +270,27 @@ type Config<TInput = Input> = {
270
270
  * @default true
271
271
  */
272
272
  write?: boolean;
273
+ /**
274
+ * Specifies the formatting tool to be used.
275
+ * @default prettier
276
+ *
277
+ * Possible values:
278
+ * - 'prettier': Uses Prettier for code formatting.
279
+ * - 'biome': Uses Biome for code formatting.
280
+ *
281
+ */
282
+ format?: 'prettier' | 'biome' | false;
283
+ /**
284
+ * Specifies the linter that should be used to analyze the code.
285
+ * The accepted values indicate different linting tools.
286
+ *
287
+ * Possible values:
288
+ * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
289
+ * - 'biome': Represents the Biome linter, a modern tool for code scanning.
290
+ * - 'oxlint': Represents the Oxlint tool for linting purposes.
291
+ *
292
+ */
293
+ lint?: 'eslint' | 'biome' | 'oxlint' | false;
273
294
  /**
274
295
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
275
296
  * @default { '.ts': '.ts'}
@@ -1163,4 +1184,4 @@ type ResolvedOptions = {
1163
1184
  type PluginCypress = PluginFactoryOptions<'plugin-cypress', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1164
1185
  //#endregion
1165
1186
  export { Generator, type HttpMethod, OperationSchemas, Options$1 as Options, PluginCypress, UserPluginWithLifeCycle };
1166
- //# sourceMappingURL=types-Rl0-mzsN.d.cts.map
1187
+ //# sourceMappingURL=types-rlD4akES.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-cypress",
3
- "version": "3.17.1",
3
+ "version": "3.18.0",
4
4
  "description": "Cypress test generator plugin for Kubb, creating end-to-end tests from OpenAPI specifications for automated API testing.",
5
5
  "keywords": [
6
6
  "cypress",
@@ -67,18 +67,18 @@
67
67
  "!/**/__tests__/**"
68
68
  ],
69
69
  "dependencies": {
70
- "@kubb/core": "3.17.1",
71
- "@kubb/oas": "3.17.1",
72
- "@kubb/plugin-oas": "3.17.1",
73
- "@kubb/plugin-ts": "3.17.1",
74
- "@kubb/react": "3.17.1"
70
+ "@kubb/core": "3.18.0",
71
+ "@kubb/oas": "3.18.0",
72
+ "@kubb/plugin-oas": "3.18.0",
73
+ "@kubb/plugin-ts": "3.18.0",
74
+ "@kubb/react": "3.18.0"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/react": "^18.3.23",
78
78
  "react": "^18.3.1",
79
79
  "tsdown": "^0.14.1",
80
80
  "typescript": "^5.9.2",
81
- "@kubb/config-ts": "3.17.1"
81
+ "@kubb/config-ts": "3.18.0"
82
82
  },
83
83
  "peerDependencies": {
84
84
  "@kubb/react": "^3.0.0"