@nemigo/configs 1.1.1 → 1.2.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.
- package/dist/eslint/index.d.ts +1 -1
- package/dist/eslint/index.js +3 -3
- package/dist/index.d.ts +6 -7
- package/dist/index.js +6 -6
- package/dist/svelte/index.js +3 -3
- package/dist/types.d.ts +7 -7
- package/package.json +6 -1
package/dist/eslint/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export interface EslintConfigOptions {
|
|
|
37
37
|
* Создает готовый flat-конфиг для **ESLint**
|
|
38
38
|
*
|
|
39
39
|
* Включает в себя:
|
|
40
|
-
* -
|
|
40
|
+
* - Глобусы исключений из `.eslint.ignore` пакета или иного
|
|
41
41
|
* - Глобальные переменные для браузера и Node.js (globals)
|
|
42
42
|
* - Рекомендованные правила из `@eslint/js`
|
|
43
43
|
* - Рекомендованные или strict правила из `typescript-eslint`
|
package/dist/eslint/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export { includeIgnoreFile, convertIgnorePatternToMinimatch as convertIgnorePatt
|
|
|
10
10
|
* Создает готовый flat-конфиг для **ESLint**
|
|
11
11
|
*
|
|
12
12
|
* Включает в себя:
|
|
13
|
-
* -
|
|
13
|
+
* - Глобусы исключений из `.eslint.ignore` пакета или иного
|
|
14
14
|
* - Глобальные переменные для браузера и Node.js (globals)
|
|
15
15
|
* - Рекомендованные правила из `@eslint/js`
|
|
16
16
|
* - Рекомендованные или strict правила из `typescript-eslint`
|
|
@@ -30,7 +30,7 @@ export const defineEslintConfig = (options, ...rest) => {
|
|
|
30
30
|
acc.push(includeIgnoreFile(options?.ignore || join(import.meta.dirname, "../../.eslint.ignore"), "@nemigo/configs/.eslint.ignore"));
|
|
31
31
|
acc.push(jslint.configs.recommended);
|
|
32
32
|
if (options?.strict) {
|
|
33
|
-
if (options
|
|
33
|
+
if (options.service) {
|
|
34
34
|
acc.push(tslint.configs.strictTypeChecked);
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
@@ -68,7 +68,7 @@ export const defineEslintConfig = (options, ...rest) => {
|
|
|
68
68
|
projectService: true,
|
|
69
69
|
extraFileExtensions: [".svelte"],
|
|
70
70
|
parser: tslint.parser,
|
|
71
|
-
svelteConfig: options
|
|
71
|
+
svelteConfig: options.svelte,
|
|
72
72
|
},
|
|
73
73
|
},
|
|
74
74
|
rules: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { defineEslintConfig, convertIgnorePattern, includeIgnoreFile } from "
|
|
2
|
-
export { definePrettierConfig, pretty } from "
|
|
3
|
-
export { defineSvelteConfig } from "
|
|
4
|
-
export { defineSveltePackageConfig } from "
|
|
5
|
-
export { defineViteConfig } from "
|
|
6
|
-
export { defineViteProxyConfig } from "
|
|
7
|
-
export type * from "./types.js";
|
|
1
|
+
export { defineEslintConfig, convertIgnorePattern, includeIgnoreFile } from "#/eslint/index.js";
|
|
2
|
+
export { definePrettierConfig, pretty } from "#/prettier/index.js";
|
|
3
|
+
export { defineSvelteConfig } from "#/svelte/index.js";
|
|
4
|
+
export { defineSveltePackageConfig } from "#/svelte/package.js";
|
|
5
|
+
export { defineViteConfig } from "#/vite/index.js";
|
|
6
|
+
export { defineViteProxyConfig } from "#/vite/proxy.js";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { defineEslintConfig, convertIgnorePattern, includeIgnoreFile } from "
|
|
2
|
-
export { definePrettierConfig, pretty } from "
|
|
3
|
-
export { defineSvelteConfig } from "
|
|
4
|
-
export { defineSveltePackageConfig } from "
|
|
5
|
-
export { defineViteConfig } from "
|
|
6
|
-
export { defineViteProxyConfig } from "
|
|
1
|
+
export { defineEslintConfig, convertIgnorePattern, includeIgnoreFile } from "#/eslint/index.js";
|
|
2
|
+
export { definePrettierConfig, pretty } from "#/prettier/index.js";
|
|
3
|
+
export { defineSvelteConfig } from "#/svelte/index.js";
|
|
4
|
+
export { defineSveltePackageConfig } from "#/svelte/package.js";
|
|
5
|
+
export { defineViteConfig } from "#/vite/index.js";
|
|
6
|
+
export { defineViteProxyConfig } from "#/vite/proxy.js";
|
package/dist/svelte/index.js
CHANGED
|
@@ -44,9 +44,9 @@ export const defineSvelteConfig = (options) => ({
|
|
|
44
44
|
},
|
|
45
45
|
alias: options.alias,
|
|
46
46
|
files: {
|
|
47
|
-
assets: options
|
|
48
|
-
appTemplate: options
|
|
49
|
-
errorTemplate: options
|
|
47
|
+
assets: options.files?.assets,
|
|
48
|
+
appTemplate: options.files?.app_html,
|
|
49
|
+
errorTemplate: options.files?.error_html,
|
|
50
50
|
},
|
|
51
51
|
/**
|
|
52
52
|
* Переопределение и дополнения к `tsconfig.json`
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type { EslintConfigOptions } from "
|
|
2
|
-
export type { ConfigWithExtendsArray } from "
|
|
3
|
-
export type { PrettierConfigOptions, PrettierConfig } from "
|
|
4
|
-
export type { SvelteConfigOptions } from "
|
|
5
|
-
export type { SveltePackageConfigOptions } from "
|
|
6
|
-
export type { ViteConfigOptions } from "
|
|
7
|
-
export type { ViteProxyConfigOptions } from "
|
|
1
|
+
export type { EslintConfigOptions } from "#/eslint/index.js";
|
|
2
|
+
export type { ConfigWithExtendsArray } from "#/eslint/types.js";
|
|
3
|
+
export type { PrettierConfigOptions, PrettierConfig } from "#/prettier/index.js";
|
|
4
|
+
export type { SvelteConfigOptions } from "#/svelte/index.js";
|
|
5
|
+
export type { SveltePackageConfigOptions } from "#/svelte/package.js";
|
|
6
|
+
export type { ViteConfigOptions } from "#/vite/index.js";
|
|
7
|
+
export type { ViteProxyConfigOptions } from "#/vite/proxy.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nemigo/configs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Vlad Logvin",
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "svelte-package && rimraf .svelte-kit",
|
|
15
|
+
"check": "tsc --noemit",
|
|
16
|
+
"lint": "eslint ./",
|
|
15
17
|
"format": "prettier --write ./"
|
|
16
18
|
},
|
|
17
19
|
"files": [
|
|
@@ -89,5 +91,8 @@
|
|
|
89
91
|
"prettier-plugin-svelte": "3.4.0",
|
|
90
92
|
"prettier-plugin-tailwindcss": "0.7.1",
|
|
91
93
|
"typescript-eslint": "8.46.1"
|
|
94
|
+
},
|
|
95
|
+
"devDependencies": {
|
|
96
|
+
"@nemigo/configs": "1.2.1"
|
|
92
97
|
}
|
|
93
98
|
}
|