@nemigo/configs 2.0.0 → 2.1.1

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.
@@ -75,7 +75,6 @@ export const defineEslintConfig = (options, ...rest) => {
75
75
  });
76
76
  }
77
77
  if (options?.svelte) {
78
- // @ts-expect-error <eslint-plugin-svelte со старыми типами>
79
78
  acc.push(svelteConfigs["flat/recommended"]);
80
79
  acc.push({
81
80
  files: ["**/*.svelte", "**/*.svelte.ts", "**/*.svelte.js"],
@@ -1,5 +1,4 @@
1
- import type { BuildOptions, PluginOption, ServerOptions } from "vite";
2
- import type { ViteUserConfig } from "vitest/config";
1
+ import type { BuildOptions, PluginOption, ServerOptions, UserConfig } from "vite";
3
2
  /**
4
3
  * Опции создания конфигурации для {@link defineViteConfig}
5
4
  */
@@ -7,7 +6,7 @@ export interface ViteConfigOptions {
7
6
  /**
8
7
  * Путь к директории, где читаются .env-файлы. Отключено, так как предполагается использование **dotenv**
9
8
  *
10
- * Аналог к {@link ViteUserConfig.envDir}
9
+ * Аналог к {@link UserConfig.envDir}
11
10
  *
12
11
  * @default false
13
12
  *
@@ -60,4 +59,4 @@ export interface ViteConfigOptions {
60
59
  * - По умолчанию строгая конфигурация порта сервера
61
60
  * - По умолчанию путь к тестам `"./src/**\/*.{test,spec}.{ts,js}"`
62
61
  */
63
- export declare const defineViteConfig: (options?: ViteConfigOptions, test?: ViteUserConfig["test"]) => ViteUserConfig;
62
+ export declare const defineViteConfig: (options?: ViteConfigOptions) => UserConfig;
@@ -1,4 +1,4 @@
1
- import { defineConfig } from "vitest/config";
1
+ import { defineConfig } from "vite";
2
2
  /**
3
3
  * ## Реструктурированная конфигурация для {@link https://vite.dev Vite} через {@link defineConfig} от {@link https://vitest.dev Vitest}
4
4
  *
@@ -8,7 +8,7 @@ import { defineConfig } from "vitest/config";
8
8
  * - По умолчанию строгая конфигурация порта сервера
9
9
  * - По умолчанию путь к тестам `"./src/**\/*.{test,spec}.{ts,js}"`
10
10
  */
11
- export const defineViteConfig = (options, test) => defineConfig({
11
+ export const defineViteConfig = (options) => defineConfig({
12
12
  envDir: options?.env ?? false,
13
13
  /**
14
14
  * Префикс публичных env-переменных (чтобы совпадало с svelte-kit)
@@ -48,12 +48,12 @@ export const defineViteConfig = (options, test) => defineConfig({
48
48
  *
49
49
  * @see https://vitest.dev/config
50
50
  */
51
- test: test ?? {
52
- /**
53
- * Glob-путь к файлам тестов
54
- *
55
- * @see https://vitest.dev/config/#include
56
- */
57
- include: ["./src/**/*.{test,spec}.{ts,js}"],
58
- },
51
+ // test: test ?? {
52
+ // /**
53
+ // * Glob-путь к файлам тестов
54
+ // *
55
+ // * @see https://vitest.dev/config/#include
56
+ // */
57
+ // include: ["./src/**/*.{test,spec}.{ts,js}"],
58
+ // },
59
59
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nemigo/configs",
3
- "version": "2.0.0",
3
+ "version": "2.1.1",
4
4
  "private": false,
5
5
  "author": {
6
6
  "name": "Vlad Logvin",
@@ -8,10 +8,10 @@
8
8
  },
9
9
  "type": "module",
10
10
  "scripts": {
11
- "build": "svelte-package && rimraf .svelte-kit",
12
- "check": "tsc --noemit",
13
- "eslint": "eslint ./",
14
- "eslint:fix": "eslint --fix ./",
11
+ "build": "bunx --bun svelte-package && bunx --bun rimraf .svelte-kit",
12
+ "check": "bunx --bun tsc --noemit",
13
+ "eslint": "bunx --bun eslint ./",
14
+ "eslint:fix": "bunx --bun eslint --fix ./",
15
15
  "lint": "biome lint",
16
16
  "lint:fix": "biome lint --fix --unsafe",
17
17
  "lint:fix:unsafe": "biome lint --fix --unsafe",
@@ -68,11 +68,10 @@
68
68
  },
69
69
  "peerDependencies": {
70
70
  "@sveltejs/vite-plugin-svelte": ">=6.0.0",
71
- "eslint": ">=9.0.0",
71
+ "eslint": ">=9.39.0",
72
72
  "prettier": ">=3.6.0",
73
73
  "svelte": ">=5.0.0",
74
- "typescript": ">=5.8.0",
75
- "vitest": ">=4.0.0"
74
+ "typescript": ">=5.8.0"
76
75
  },
77
76
  "peerDependenciesMeta": {
78
77
  "@sveltejs/vite-plugin-svelte": {
@@ -80,16 +79,13 @@
80
79
  },
81
80
  "svelte": {
82
81
  "optional": true
83
- },
84
- "vitest": {
85
- "optional": true
86
82
  }
87
83
  },
88
84
  "dependencies": {
89
- "@eslint/compat": "1.4.1",
90
- "@eslint/config-helpers": "0.4.2",
91
- "@eslint/core": "0.17.0",
92
- "@eslint/js": "9.38.0",
85
+ "@eslint/compat": "2.0.0",
86
+ "@eslint/config-helpers": "0.5.0",
87
+ "@eslint/core": "1.0.0",
88
+ "@eslint/js": "9.39.1",
93
89
  "@types/eslint": "9.6.1",
94
90
  "eslint-plugin-svelte": "3.13.0",
95
91
  "globals": "16.5.0",
@@ -97,7 +93,6 @@
97
93
  "prettier-plugin-multiline-arrays": "4.0.3",
98
94
  "prettier-plugin-svelte": "3.4.0",
99
95
  "prettier-plugin-tailwindcss": "0.7.1",
100
- "typescript-eslint": "8.46.3",
101
- "vitest": "4.0.6"
96
+ "typescript-eslint": "8.46.4"
102
97
  }
103
98
  }