@nemigo/configs 2.3.0 → 2.3.2

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/.eslint.ignore CHANGED
@@ -48,4 +48,5 @@ static
48
48
  *.min.*
49
49
 
50
50
  # CUSTOM
51
- # ...
51
+ # НЕ отключаемое правило
52
+ css-order.d.ts
@@ -219,6 +219,8 @@ export const defineEslintConfig = (options, ...rest) => {
219
219
  "sort-keys": 0,
220
220
  // Создание Symbol без описания
221
221
  "symbol-description": 0,
222
+ // Любое количество классов в файле
223
+ "max-classes-per-file": 0,
222
224
  // Дублирующиеся или избыточные типы (например, 0 | TimeStamp)
223
225
  "@typescript-eslint/no-duplicate-type-constituents": 0,
224
226
  "@typescript-eslint/no-redundant-type-constituents": 0,
@@ -1,6 +1,7 @@
1
- import type { BuildOptions, PluginOption, ServerOptions, UserConfig } from "vite";
2
- import type { ViteUserConfigFnObject } from "vitest/config";
3
- export type VitestConfig = ReturnType<ViteUserConfigFnObject>["test"];
1
+ import type { BuildOptions, PluginOption, ServerOptions } from "vite";
2
+ import type { Plugin, TestUserConfig } from "vitest/config";
3
+ import { defineConfig } from "vitest/config";
4
+ export type VitestConfig = ReturnType<typeof defineConfig>;
4
5
  /**
5
6
  * Опции создания конфигурации для {@link defineViteConfig}
6
7
  */
@@ -50,7 +51,7 @@ export interface ViteConfigOptions {
50
51
  *
51
52
  * @see https://vite.dev/config/shared-options.html#plugins
52
53
  */
53
- plugins?: PluginOption[];
54
+ plugins?: (Plugin | PluginOption)[];
54
55
  }
55
56
  /**
56
57
  * ## Реструктурированная конфигурация для {@link https://vite.dev Vite} через {@link defineConfig} от {@link https://vitest.dev Vitest}
@@ -61,4 +62,4 @@ export interface ViteConfigOptions {
61
62
  * - По умолчанию строгая конфигурация порта сервера
62
63
  * - По умолчанию путь к тестам `"./{src,tests}/**\/*.{test,spec}.{ts,js}"`
63
64
  */
64
- export declare const defineViteConfig: (options: ViteConfigOptions, test?: VitestConfig) => UserConfig;
65
+ export declare const defineViteConfig: (options: ViteConfigOptions, test?: TestUserConfig) => VitestConfig;
@@ -1,4 +1,4 @@
1
- import type { ServerOptions } from "vite";
1
+ import type { ProxyOptions } from "vite";
2
2
  /**
3
3
  * Опции создания конфигурации для {@link defineViteProxyConfig}
4
4
  */
@@ -45,4 +45,4 @@ export interface ViteProxyConfigOptions {
45
45
  *
46
46
  * @see https://vite.dev/config/server-options.html#server-proxy
47
47
  */
48
- export declare const defineViteProxyConfig: (options: ViteProxyConfigOptions) => ServerOptions["proxy"];
48
+ export declare const defineViteProxyConfig: (options: ViteProxyConfigOptions) => ProxyOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nemigo/configs",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "private": false,
5
5
  "license": "MPL-2.0",
6
6
  "author": {
@@ -94,6 +94,6 @@
94
94
  "prettier-plugin-multiline-arrays": "4.0.5",
95
95
  "prettier-plugin-svelte": "3.4.0",
96
96
  "prettier-plugin-tailwindcss": "0.7.2",
97
- "typescript-eslint": "8.48.1"
97
+ "typescript-eslint": "8.49.0"
98
98
  }
99
99
  }