@application-kit/lint-config 0.0.0-stage → 0.1.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/CHANGELOG.md +15 -0
- package/LICENSE +21 -0
- package/README.md +60 -2
- package/dist/application-eslint-config-options.interface.d.ts +4 -0
- package/dist/application-eslint-config-options.interface.js +1 -0
- package/dist/define-application-eslint-config.d.ts +3 -0
- package/dist/define-application-eslint-config.js +111 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/restricted-import-blocks.d.ts +3 -0
- package/dist/restricted-import-blocks.js +76 -0
- package/package.json +64 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @application-kit/lint-config
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- fc09818: Первый выпуск: `defineApplicationEslintConfig({ shellModule, roleDictionary })` — flat-config ESLint приложения на базе
|
|
8
|
+
`@libs-for-dev/eslint-rules` с общестековыми настройками, allow-list подпутей пакетов `@application-kit`, запретами
|
|
9
|
+
UI-вендора и границами слоёв по раскладке приложения (`defineRestrictedImportBlocks` — те же границы отдельно). Пакет
|
|
10
|
+
только ESM.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [d048984]
|
|
15
|
+
- @application-kit/ui@0.3.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 application-kit
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,61 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @application-kit/lint-config
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Пресет ESLint приложения на пакетах `@application-kit`: flat-config — база `@libs-for-dev/eslint-rules`, общестековые
|
|
4
|
+
настройки, разрешённые подпути пакетов, запреты UI-вендора и границы слоёв по раскладке приложения. Списков и путей
|
|
5
|
+
продукта в пакете нет: модуль-оболочку и путь словаря ролей приложение передаёт параметрами, игноры своих каталогов и
|
|
6
|
+
свои правила дописывает после пресета.
|
|
7
|
+
|
|
8
|
+
## Установка
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
yarn add --dev @application-kit/lint-config
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Peer-зависимости: `eslint`, `@libs-for-dev/eslint-rules`. Пакет только ESM: его грузит ESM-конфиг `eslint.config.ts`.
|
|
15
|
+
|
|
16
|
+
## Входы
|
|
17
|
+
|
|
18
|
+
| Вход | Для чего | Тянет |
|
|
19
|
+
|------|----------|-------|
|
|
20
|
+
| `@application-kit/lint-config` | `defineApplicationEslintConfig`, `defineRestrictedImportBlocks`, `ApplicationEslintConfigOptionsInterface` | `@libs-for-dev/eslint-rules`, `@application-kit/ui/lint` |
|
|
21
|
+
|
|
22
|
+
## ESLint
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import { defineApplicationEslintConfig } from '@application-kit/lint-config'
|
|
26
|
+
|
|
27
|
+
export default [
|
|
28
|
+
...defineApplicationEslintConfig({ roleDictionary: '@/libs/shared/role', shellModule: 'client' }),
|
|
29
|
+
{ ignores: ['docs/', 'ops/static/'] },
|
|
30
|
+
]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Порядок блоков: база `configs.*` → общестековые настройки (`complexity` 7, allow-list `import-x/no-internal-modules`,
|
|
34
|
+
`.vue`, миграции, `shared/`, спеки, мапперы и DTO, ключи `tsconfig.json`) → границы слоёв → порядок `mutate` в
|
|
35
|
+
`stryker.conf.json`. Блоки продукта идут после пресета. Плоский конфиг заменяет правило целиком: правило, которое пресет
|
|
36
|
+
уже задаёт тем же файлам, приложение переопределяет полным набором опций.
|
|
37
|
+
|
|
38
|
+
Границы слоёв (`defineRestrictedImportBlocks`) — набор запретов на область; следующий блок заменяет набор предыдущего
|
|
39
|
+
для своих файлов, поэтому порядок блоков — часть правила:
|
|
40
|
+
|
|
41
|
+
| Область | Запреты `no-restricted-imports` |
|
|
42
|
+
|---------|---------------------------------|
|
|
43
|
+
| `src/modules/*/**` кроме оболочки | внутренности оболочки, второй путь словаря ролей, вендор, внутренности субмодулей |
|
|
44
|
+
| `src/modules/*/modules/**` | то же без внутренностей субмодулей: изнутри субмодуля можно |
|
|
45
|
+
| `src/libs/**` | импорт модулей, вендор |
|
|
46
|
+
| `src/modules/<оболочка>/**` | второй путь словаря ролей, вендор |
|
|
47
|
+
| `src/**/*.vue` | классы вендора — правилом `vue/no-restricted-class` |
|
|
48
|
+
| `src/modules/**/user-interface/client/**` | набор корня модуля и серверный GraphQL-класс |
|
|
49
|
+
| `src/modules/<оболочка>/user-interface/**` | набор оболочки, внутренности субмодулей и серверный GraphQL-класс |
|
|
50
|
+
|
|
51
|
+
Каждый запрет держит два якоря — алиас `@/…` и относительную форму того же пути. `shellModule` — имя папки в
|
|
52
|
+
kebab-case, `roleDictionary` — путь вида `@/<полка>/<путь>` из таких имён; иное значение роняет сборку конфига.
|
|
53
|
+
|
|
54
|
+
Allow-list подпутей `@application-kit/*` спека пакета сверяет с `exports` пакетов монорепы в обе стороны: новый вход
|
|
55
|
+
пакета без записи и запись без входа краснеют в CI монорепы.
|
|
56
|
+
|
|
57
|
+
## Вендор
|
|
58
|
+
|
|
59
|
+
Шаблоны вендора — строка импорта, CSS-класс, разрешённые подпути — и имена обёрток полей для
|
|
60
|
+
`vuejs-accessibility/label-has-for` пресет берёт из `@application-kit/ui/lint`. Смена вендора — релиз `ui`: конфиг
|
|
61
|
+
приложения не меняется.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { ApplicationEslintConfigOptionsInterface } from './application-eslint-config-options.interface.js';
|
|
3
|
+
export declare const defineApplicationEslintConfig: (options: ApplicationEslintConfigOptionsInterface) => Linter.Config[];
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { UI_FORM_CONTROL_COMPONENTS, UI_VENDOR_INTERNAL_MODULES } from '@application-kit/ui/lint';
|
|
2
|
+
import { configs } from '@libs-for-dev/eslint-rules';
|
|
3
|
+
import { defineRestrictedImportBlocks } from './restricted-import-blocks.js';
|
|
4
|
+
const APPLICATION_KIT_ENTRIES = [
|
|
5
|
+
'@application-kit/*/nest',
|
|
6
|
+
'@application-kit/*/testing',
|
|
7
|
+
'@application-kit/*/vite-plugin',
|
|
8
|
+
'@application-kit/bootstrap/*',
|
|
9
|
+
'@application-kit/feature-flags/vue',
|
|
10
|
+
'@application-kit/graphql/client',
|
|
11
|
+
'@application-kit/i18n/server',
|
|
12
|
+
'@application-kit/i18n/vue',
|
|
13
|
+
'@application-kit/kafka/event-contract',
|
|
14
|
+
'@application-kit/observability/*',
|
|
15
|
+
'@application-kit/observability/health/*',
|
|
16
|
+
'@application-kit/testing/vitest',
|
|
17
|
+
'@application-kit/typeorm/*',
|
|
18
|
+
'@application-kit/ui/lint',
|
|
19
|
+
'@application-kit/ui/style.css',
|
|
20
|
+
'@application-kit/ui/styles/*',
|
|
21
|
+
'@application-kit/vue-ssr/server',
|
|
22
|
+
];
|
|
23
|
+
const isRecord = (value) => typeof value === 'object' && value !== null;
|
|
24
|
+
const optionsOf = (entry) => Array.isArray(entry) && entry[1];
|
|
25
|
+
const BASE_KEY_NAME_CASING = optionsOf(configs.json.rules?.['jsonc/key-name-casing']);
|
|
26
|
+
const STACK_CONFIG = [
|
|
27
|
+
configs.json,
|
|
28
|
+
configs.ignores,
|
|
29
|
+
configs.markdown,
|
|
30
|
+
configs.packageJson,
|
|
31
|
+
configs.typescript,
|
|
32
|
+
configs.vitest,
|
|
33
|
+
configs.vue,
|
|
34
|
+
{ linterOptions: { reportUnusedDisableDirectives: 'error' } },
|
|
35
|
+
{
|
|
36
|
+
plugins: { ...configs.packageJson.plugins },
|
|
37
|
+
rules: {
|
|
38
|
+
'package-json/require-funding': 'off',
|
|
39
|
+
'package-json/require-main': 'off',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{ rules: { '@typescript-eslint/consistent-type-definitions': 'off' } },
|
|
43
|
+
{
|
|
44
|
+
files: ['**/*.cjs', '**/*.cts', '**/*.js', '**/*.mjs', '**/*.mts', '**/*.ts', '**/*.vue'],
|
|
45
|
+
rules: { 'unicorn/comment-content': ['error', { replacements: { '\\burl\\b': false } }] },
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
plugins: { ...configs.javascript.plugins },
|
|
49
|
+
rules: {
|
|
50
|
+
complexity: ['error', { max: 7 }],
|
|
51
|
+
'import-x/no-cycle': 'off',
|
|
52
|
+
'import-x/no-internal-modules': [
|
|
53
|
+
'error',
|
|
54
|
+
{ allow: ['@apollo/**/*', ...APPLICATION_KIT_ENTRIES, ...UI_VENDOR_INTERNAL_MODULES, 'vitest/*', 'vue/*'] },
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
files: ['src/**/*.vue'],
|
|
60
|
+
rules: {
|
|
61
|
+
'vue/require-default-prop': 'off',
|
|
62
|
+
'vuejs-accessibility/label-has-for': ['error', { controlComponents: [...UI_FORM_CONTROL_COMPONENTS] }],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
files: ['src/**/typeorm/migrations/*.ts'],
|
|
67
|
+
rules: { 'check-file/filename-naming-convention': 'off' },
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
files: ['src/**/shared/**', 'src/**/domain/value-objects/**'],
|
|
71
|
+
rules: { 'unicorn/no-barrel-files': 'off' },
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
files: ['src/**/*.spec.ts'],
|
|
75
|
+
rules: {
|
|
76
|
+
'@typescript-eslint/no-magic-numbers': 'off',
|
|
77
|
+
'max-lines-per-function': 'off',
|
|
78
|
+
'max-statements': 'off',
|
|
79
|
+
'unicorn/no-unreadable-new-expression': 'off',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
files: ['src/**/*.mapper.ts', 'src/**/*.dto.ts'],
|
|
84
|
+
rules: { 'max-statements': 'off' },
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
files: ['tsconfig.json'],
|
|
88
|
+
rules: {
|
|
89
|
+
'jsonc/key-name-casing': [
|
|
90
|
+
'error',
|
|
91
|
+
{ ...isRecord(BASE_KEY_NAME_CASING) && BASE_KEY_NAME_CASING, ignores: ['@/*', 'ts-node'] },
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
files: ['src/modules/**/client/**/*.vue'],
|
|
97
|
+
rules: {
|
|
98
|
+
'import-x/no-internal-modules': 'off',
|
|
99
|
+
'import-x/no-relative-parent-imports': 'off',
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
];
|
|
103
|
+
const STRYKER_CONFIG = {
|
|
104
|
+
files: ['stryker.conf.json'],
|
|
105
|
+
rules: { 'jsonc/sort-array-values': ['error', { order: { type: 'asc' }, pathPattern: String.raw `^(?!mutate$).*` }] },
|
|
106
|
+
};
|
|
107
|
+
export const defineApplicationEslintConfig = (options) => [
|
|
108
|
+
...STACK_CONFIG,
|
|
109
|
+
...defineRestrictedImportBlocks(options),
|
|
110
|
+
STRYKER_CONFIG,
|
|
111
|
+
];
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { ApplicationEslintConfigOptionsInterface } from './application-eslint-config-options.interface.js';
|
|
3
|
+
export declare const defineRestrictedImportBlocks: (options: ApplicationEslintConfigOptionsInterface) => Linter.Config[];
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { UI_VENDOR_CLASS_PATTERN, UI_VENDOR_IMPORT_PATTERN } from '@application-kit/ui/lint';
|
|
2
|
+
const RELATIVE_UP = String.raw `(?:\.\./)+`;
|
|
3
|
+
const RELATIVE_ANY = String.raw `(?:\.\.?/)+`;
|
|
4
|
+
const RELATIVE_SEGMENTS = String.raw `(?:[^/.][^/]*/)*`;
|
|
5
|
+
const ALIAS = '@/';
|
|
6
|
+
const PATH_SEGMENT = /^[0-9a-z]+(?:-[0-9a-z]+)*$/u;
|
|
7
|
+
const UI_VENDOR_IMPORT = {
|
|
8
|
+
message: 'UI-вендор импортируется только пакетом @application-kit/ui: в приложении — его обёртки.',
|
|
9
|
+
regex: UI_VENDOR_IMPORT_PATTERN,
|
|
10
|
+
};
|
|
11
|
+
const SERVER_GRAPHQL_CLASS_IMPORT = {
|
|
12
|
+
message: 'Клиент не типизируется серверным GraphQL-классом: '
|
|
13
|
+
+ 'общая часть — wire-контракт в @/modules/<module>/shared/*.wire.',
|
|
14
|
+
regex: String.raw `^(?:@/modules/.*user-interface/|${RELATIVE_UP}${RELATIVE_SEGMENTS})controllers/`,
|
|
15
|
+
};
|
|
16
|
+
const LIBS_TO_MODULES_IMPORT = {
|
|
17
|
+
message: 'Из src/libs модули не импортируются: общий код объявляется общим переездом в src/libs.',
|
|
18
|
+
regex: String.raw `^(?:@/|${RELATIVE_UP})modules/`,
|
|
19
|
+
};
|
|
20
|
+
const SUBMODULE_INTERNALS_IMPORT = {
|
|
21
|
+
message: 'Внутренности субмодуля наружу не видны: наружу смотрят только application/ports и libs.',
|
|
22
|
+
regex: String.raw `^(?:@/modules/[^/]+/|${RELATIVE_ANY}${RELATIVE_SEGMENTS})`
|
|
23
|
+
+ String.raw `modules/[^/]+/(?:domain|infrastructure|user-interface)/`,
|
|
24
|
+
};
|
|
25
|
+
const isPathSegment = (value) => PATH_SEGMENT.test(value);
|
|
26
|
+
const isAliasPath = ([alias, ...segments]) => alias === '@'
|
|
27
|
+
&& segments.length > 1
|
|
28
|
+
&& segments.every((segment) => isPathSegment(segment));
|
|
29
|
+
const assertLayout = ({ roleDictionary, shellModule }) => {
|
|
30
|
+
if (!isPathSegment(shellModule)) {
|
|
31
|
+
throw new Error(`shellModule — папка модуля в src/modules в kebab-case, получено «${shellModule}»`);
|
|
32
|
+
}
|
|
33
|
+
if (!isAliasPath(roleDictionary.split('/'))) {
|
|
34
|
+
throw new Error(`roleDictionary — путь от алиаса вида @/<полка>/<путь> в kebab-case, получено «${roleDictionary}»`);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const shellInternalsImport = (shellModule) => ({
|
|
38
|
+
message: `Внутренности модуля ${shellModule} не импортируются извне: общий код — в src/libs.`,
|
|
39
|
+
regex: String.raw `^(?:@/modules/|${RELATIVE_UP}(?:modules/)?)${shellModule}/`,
|
|
40
|
+
});
|
|
41
|
+
const roleDictionaryImport = (roleDictionary) => {
|
|
42
|
+
const aliasPath = roleDictionary.slice(ALIAS.length);
|
|
43
|
+
const shelf = aliasPath.slice(0, aliasPath.indexOf('/'));
|
|
44
|
+
const dictionary = aliasPath.slice(shelf.length + 1);
|
|
45
|
+
return {
|
|
46
|
+
message: `Словарь ролей импортируется только из ${roleDictionary}.`,
|
|
47
|
+
regex: String.raw `^(?:@/modules/.*|${RELATIVE_ANY}(?!${shelf}/)${RELATIVE_SEGMENTS})${dictionary}$`,
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
const restrictedImports = (patterns) => ({
|
|
51
|
+
'no-restricted-imports': ['error', { patterns }],
|
|
52
|
+
});
|
|
53
|
+
export const defineRestrictedImportBlocks = (options) => {
|
|
54
|
+
assertLayout(options);
|
|
55
|
+
const { roleDictionary, shellModule } = options;
|
|
56
|
+
const shellInternals = shellInternalsImport(shellModule);
|
|
57
|
+
const roleDictionaryPath = roleDictionaryImport(roleDictionary);
|
|
58
|
+
const modules = [shellInternals, roleDictionaryPath, UI_VENDOR_IMPORT];
|
|
59
|
+
const shell = [roleDictionaryPath, UI_VENDOR_IMPORT];
|
|
60
|
+
const moduleRoot = [...modules, SUBMODULE_INTERNALS_IMPORT];
|
|
61
|
+
return [
|
|
62
|
+
{ files: ['src/modules/*/**'], ignores: [`src/modules/${shellModule}/**`], rules: restrictedImports(moduleRoot) },
|
|
63
|
+
{ files: ['src/modules/*/modules/**'], rules: restrictedImports(modules) },
|
|
64
|
+
{ files: ['src/libs/**'], rules: restrictedImports([LIBS_TO_MODULES_IMPORT, UI_VENDOR_IMPORT]) },
|
|
65
|
+
{ files: [`src/modules/${shellModule}/**`], rules: restrictedImports(shell) },
|
|
66
|
+
{ files: ['src/**/*.vue'], rules: { 'vue/no-restricted-class': ['error', UI_VENDOR_CLASS_PATTERN] } },
|
|
67
|
+
{
|
|
68
|
+
files: ['src/modules/**/user-interface/client/**'],
|
|
69
|
+
rules: restrictedImports([...moduleRoot, SERVER_GRAPHQL_CLASS_IMPORT]),
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
files: [`src/modules/${shellModule}/user-interface/**`],
|
|
73
|
+
rules: restrictedImports([...shell, SUBMODULE_INTERNALS_IMPORT, SERVER_GRAPHQL_CLASS_IMPORT]),
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,67 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@application-kit/lint-config",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Пресет ESLint приложения на пакетах @application-kit: flat-config с границами слоёв, разрешёнными подпутями пакетов и запретами UI-вендора",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"eslint-config",
|
|
7
|
+
"flat-config",
|
|
8
|
+
"lint"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://gitlab.com/application-kit/application-kit/-/tree/main/packages/lint-config",
|
|
11
|
+
"bugs": "https://gitlab.com/application-kit/application-kit/-/issues",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://gitlab.com/application-kit/application-kit.git",
|
|
15
|
+
"directory": "packages/lint-config"
|
|
16
|
+
},
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"author": {
|
|
19
|
+
"name": "application-kit"
|
|
20
|
+
},
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"type": "module",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"default": "./dist/index.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"./package.json": "./package.json"
|
|
31
|
+
},
|
|
32
|
+
"main": "./dist/index.js",
|
|
33
|
+
"module": "./dist/index.js",
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"files": [
|
|
36
|
+
"dist"
|
|
37
|
+
],
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "rm -rf ./dist && node ../../scripts/barrels.mjs create ./src && tsc --project tsconfig.build.json && node ../../scripts/barrels.mjs clean ./src",
|
|
40
|
+
"lint:tsc": "tsc --noEmit --pretty --project .",
|
|
41
|
+
"test:mutation": "stryker run",
|
|
42
|
+
"test:unit": "vitest run"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@application-kit/ui": "^0.3.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@libs-for-dev/eslint-rules": "3.4.0",
|
|
49
|
+
"@stryker-mutator/core": "^10.0.0",
|
|
50
|
+
"@stryker-mutator/vitest-runner": "^10.0.0",
|
|
51
|
+
"@types/node": "^26.2.0",
|
|
52
|
+
"eslint": "^10.8.1",
|
|
53
|
+
"minimatch": "^10.2.5",
|
|
54
|
+
"typescript": "^6.0.3",
|
|
55
|
+
"vitest": "^4.1.11"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"@libs-for-dev/eslint-rules": "^3.3.0",
|
|
59
|
+
"eslint": "^10.0.0"
|
|
60
|
+
},
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=24"
|
|
63
|
+
},
|
|
64
|
+
"publishConfig": {
|
|
65
|
+
"access": "public"
|
|
66
|
+
}
|
|
6
67
|
}
|