@nemigo/configs 1.5.1 → 1.6.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.
- package/dist/eslint/index.d.ts +3 -3
- package/dist/eslint/index.js +1 -0
- package/dist/eslint/types.d.ts +5 -5
- package/package.json +5 -6
package/dist/eslint/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ConfigWithExtendsArray } from "
|
|
1
|
+
import type { ConfigWithExtendsArray } from "./types.js";
|
|
2
2
|
import { convertIgnorePatternToMinimatch, includeIgnoreFile } from "@eslint/compat";
|
|
3
|
+
import type { ConfigObject } from "@eslint/core";
|
|
3
4
|
import type { Config } from "@sveltejs/kit";
|
|
4
|
-
import type { Linter } from "eslint";
|
|
5
5
|
export { includeIgnoreFile, convertIgnorePatternToMinimatch as convertIgnorePattern };
|
|
6
6
|
/**
|
|
7
7
|
* Опции создания конфигураций для {@link defineEslintConfig}
|
|
@@ -67,4 +67,4 @@ export interface EslintConfigOptions {
|
|
|
67
67
|
* });
|
|
68
68
|
* ```
|
|
69
69
|
*/
|
|
70
|
-
export declare const defineEslintConfig: (options?: EslintConfigOptions, ...rest: ConfigWithExtendsArray) =>
|
|
70
|
+
export declare const defineEslintConfig: (options?: EslintConfigOptions, ...rest: ConfigWithExtendsArray) => ConfigObject[];
|
package/dist/eslint/index.js
CHANGED
package/dist/eslint/types.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ConfigObject } from "@eslint/core";
|
|
2
2
|
export type InfiniteArray<T> = T | InfiniteArray<T>[];
|
|
3
|
-
export type SimpleExtendsElement = string |
|
|
4
|
-
export type ExtendsElement = SimpleExtendsElement | InfiniteArray<
|
|
5
|
-
export interface ConfigWithExtends extends
|
|
3
|
+
export type SimpleExtendsElement = string | ConfigObject;
|
|
4
|
+
export type ExtendsElement = SimpleExtendsElement | InfiniteArray<ConfigObject>;
|
|
5
|
+
export interface ConfigWithExtends extends ConfigObject {
|
|
6
6
|
extends?: ExtendsElement[];
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Массив конфигов для {@link defineConfig} из {@link https://www.npmjs.com/package/eslint/config eslint/config}
|
|
10
10
|
*
|
|
11
|
-
* @remarks Взято из {@link https://www.npmjs.com/package/@eslint/config-helpers @eslint/config-helpers/types (0.
|
|
11
|
+
* @remarks Взято из {@link https://www.npmjs.com/package/@eslint/config-helpers @eslint/config-helpers/types (0.4.2)}, т.к. этот тип не экспортируется
|
|
12
12
|
*/
|
|
13
13
|
export type ConfigWithExtendsArray = InfiniteArray<ConfigWithExtends>[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nemigo/configs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Vlad Logvin",
|
|
@@ -81,18 +81,17 @@
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@eslint/compat": "1.4.
|
|
84
|
+
"@eslint/compat": "1.4.1",
|
|
85
|
+
"@eslint/config-helpers": "0.4.2",
|
|
86
|
+
"@eslint/core": "0.17.0",
|
|
85
87
|
"@eslint/js": "9.38.0",
|
|
86
88
|
"@types/eslint": "9.6.1",
|
|
87
|
-
"eslint-plugin-svelte": "3.
|
|
89
|
+
"eslint-plugin-svelte": "3.13.0",
|
|
88
90
|
"globals": "16.4.0",
|
|
89
91
|
"prettier-plugin-css-order": "2.1.2",
|
|
90
92
|
"prettier-plugin-multiline-arrays": "4.0.3",
|
|
91
93
|
"prettier-plugin-svelte": "3.4.0",
|
|
92
94
|
"prettier-plugin-tailwindcss": "0.7.1",
|
|
93
95
|
"typescript-eslint": "8.46.2"
|
|
94
|
-
},
|
|
95
|
-
"devDependencies": {
|
|
96
|
-
"@nemigo/configs": "1.5.1"
|
|
97
96
|
}
|
|
98
97
|
}
|