@lazyconfig/presets 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/LICENSE +21 -0
- package/README.md +367 -0
- package/package.json +72 -0
- package/src/api-extractor.json +55 -0
- package/src/commitlint.json +24 -0
- package/src/eslint.d.ts +1 -0
- package/src/eslint.js +1 -0
- package/src/jest.d.ts +1 -0
- package/src/jest.js +1 -0
- package/src/prettier.json +16 -0
- package/src/rollup.d.ts +1 -0
- package/src/rollup.js +1 -0
- package/src/tsconfig/base.json +9 -0
- package/src/tsconfig/env.d.ts +20 -0
- package/src/tsconfig/lib.json +13 -0
- package/src/tsconfig/node.json +13 -0
- package/src/tsconfig/react.json +11 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ruben-omh
|
|
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
ADDED
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
# @lazyconfig/presets
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@lazyconfig/presets)
|
|
4
|
+
[](https://www.npmjs.com/package/@lazyconfig/presets)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
[](https://github.com/sponsors/ruben-omh)
|
|
7
|
+
|
|
8
|
+
Single-install meta-package that bundles the full lazyconfig toolchain. Install once and get TypeScript, ESLint, Jest, Rollup, Prettier, Commitlint, and API Extractor configurations — all pre-configured and ready to use.
|
|
9
|
+
|
|
10
|
+
All presets are re-exported through `@lazyconfig/presets/*` subpath exports, so you only need this one package installed.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
# pnpm
|
|
18
|
+
pnpm add -D @lazyconfig/presets
|
|
19
|
+
|
|
20
|
+
# npm
|
|
21
|
+
npm install --save-dev @lazyconfig/presets
|
|
22
|
+
|
|
23
|
+
# yarn
|
|
24
|
+
yarn add --dev @lazyconfig/presets
|
|
25
|
+
|
|
26
|
+
# bun
|
|
27
|
+
bun add --dev @lazyconfig/presets
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Included presets
|
|
33
|
+
|
|
34
|
+
| Subpath export | Description |
|
|
35
|
+
| ---------------------------------------------------------------------- | --------------------------- |
|
|
36
|
+
| [`@lazyconfig/presets/tsconfig/*`](#lazyconfigpresetstsconfig) | TypeScript compiler presets |
|
|
37
|
+
| [`@lazyconfig/presets/eslint`](#lazyconfigpresetseslint) | ESLint flat config factory |
|
|
38
|
+
| [`@lazyconfig/presets/jest`](#lazyconfigpresetsjest) | Jest config factory |
|
|
39
|
+
| [`@lazyconfig/presets/rollup`](#lazyconfigpresetsrollup) | Rollup config factory |
|
|
40
|
+
| [`@lazyconfig/presets/prettier`](#lazyconfigpresetsprettier) | Prettier preset |
|
|
41
|
+
| [`@lazyconfig/presets/commitlint`](#lazyconfigpresetscommitlint) | Commitlint config |
|
|
42
|
+
| [`@lazyconfig/presets/api-extractor`](#lazyconfigpresetsapi-extractor) | API Extractor base config |
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## `@lazyconfig/presets/tsconfig/*`
|
|
47
|
+
|
|
48
|
+
Reusable TypeScript compiler presets. Extend the preset that matches your project type.
|
|
49
|
+
|
|
50
|
+
### Requirements
|
|
51
|
+
|
|
52
|
+
No peer dependencies.
|
|
53
|
+
|
|
54
|
+
| Tool | Version | Notes |
|
|
55
|
+
| ------------ | ------- | ---------------------------------- |
|
|
56
|
+
| `typescript` | `>=5.0` | Must be installed in your project |
|
|
57
|
+
| Node.js | `>=18` | Required by the `node` preset only |
|
|
58
|
+
|
|
59
|
+
### Presets
|
|
60
|
+
|
|
61
|
+
| Preset | Path | Use case |
|
|
62
|
+
| ------- | ------------------------------------ | ---------------------------------- |
|
|
63
|
+
| `base` | `@lazyconfig/presets/tsconfig/base` | Foundation for all other presets |
|
|
64
|
+
| `node` | `@lazyconfig/presets/tsconfig/node` | Node.js applications and CLI tools |
|
|
65
|
+
| `lib` | `@lazyconfig/presets/tsconfig/lib` | Framework-agnostic libraries |
|
|
66
|
+
| `react` | `@lazyconfig/presets/tsconfig/react` | React applications |
|
|
67
|
+
|
|
68
|
+
### Usage
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
// tsconfig.json — Node.js application
|
|
72
|
+
{
|
|
73
|
+
"extends": "@lazyconfig/presets/tsconfig/node",
|
|
74
|
+
"compilerOptions": {
|
|
75
|
+
"outDir": "dist",
|
|
76
|
+
"rootDir": "src"
|
|
77
|
+
},
|
|
78
|
+
"include": ["src"]
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
```json
|
|
83
|
+
// tsconfig.json — library consumed by bundlers
|
|
84
|
+
{
|
|
85
|
+
"extends": "@lazyconfig/presets/tsconfig/lib",
|
|
86
|
+
"compilerOptions": {
|
|
87
|
+
"outDir": "out-tsc",
|
|
88
|
+
"rootDir": "src"
|
|
89
|
+
},
|
|
90
|
+
"include": ["src"]
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
```json
|
|
95
|
+
// tsconfig.json — React application
|
|
96
|
+
{
|
|
97
|
+
"extends": "@lazyconfig/presets/tsconfig/react",
|
|
98
|
+
"include": ["src"]
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
#### Build-time constants (`env`)
|
|
103
|
+
|
|
104
|
+
Provides ambient types for `__DEV__` and `__PROD__` constants injected by bundlers:
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"compilerOptions": {
|
|
109
|
+
"types": ["@lazyconfig/presets/tsconfig/env"]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## `@lazyconfig/presets/eslint`
|
|
117
|
+
|
|
118
|
+
ESLint flat config factory with opt-in presets for TypeScript, React, accessibility, Node.js, and Prettier.
|
|
119
|
+
|
|
120
|
+
### Requirements
|
|
121
|
+
|
|
122
|
+
| Package | Version | Required | Enables |
|
|
123
|
+
| --------------------------- | ------- | -------- | ------------------------------------------------------------------------ |
|
|
124
|
+
| `eslint` | `^10` | **Yes** | Core ESLint engine |
|
|
125
|
+
| `@eslint/js` | `^10` | **Yes** | Built-in ESLint rules |
|
|
126
|
+
| `typescript-eslint` | `^8` | Optional | TypeScript-aware rules (`typescript: true`) |
|
|
127
|
+
| `globals` | `^17` | Optional | Global variable definitions (`typescript: true`) |
|
|
128
|
+
| `eslint-plugin-react` | `^7` | Optional | React rules (`react: true`) |
|
|
129
|
+
| `eslint-plugin-react-hooks` | `^5` | Optional | React hooks rules (`react: true`) |
|
|
130
|
+
| `eslint-plugin-jsx-a11y` | `^6` | Optional | Accessibility rules (`a11y: true`) |
|
|
131
|
+
| `eslint-plugin-n` | `^18` | Optional | Node.js rules (`node: true`) |
|
|
132
|
+
| `eslint-config-prettier` | `^10` | Optional | Disables formatting rules that conflict with Prettier (`prettier: true`) |
|
|
133
|
+
|
|
134
|
+
Install only what you plan to use:
|
|
135
|
+
|
|
136
|
+
```sh
|
|
137
|
+
# required
|
|
138
|
+
pnpm add -D eslint @eslint/js
|
|
139
|
+
|
|
140
|
+
# TypeScript support
|
|
141
|
+
pnpm add -D typescript-eslint globals
|
|
142
|
+
|
|
143
|
+
# React support
|
|
144
|
+
pnpm add -D eslint-plugin-react eslint-plugin-react-hooks
|
|
145
|
+
|
|
146
|
+
# accessibility support
|
|
147
|
+
pnpm add -D eslint-plugin-jsx-a11y
|
|
148
|
+
|
|
149
|
+
# Node.js support
|
|
150
|
+
pnpm add -D eslint-plugin-n globals
|
|
151
|
+
|
|
152
|
+
# Prettier conflict resolution
|
|
153
|
+
pnpm add -D eslint-config-prettier
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Usage
|
|
157
|
+
|
|
158
|
+
```ts
|
|
159
|
+
// eslint.config.ts
|
|
160
|
+
import { defineConfig } from "@lazyconfig/presets/eslint";
|
|
161
|
+
|
|
162
|
+
export default defineConfig({
|
|
163
|
+
typescript: true,
|
|
164
|
+
node: true,
|
|
165
|
+
prettier: true,
|
|
166
|
+
});
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
```ts
|
|
170
|
+
// with React and accessibility
|
|
171
|
+
import { defineConfig } from "@lazyconfig/presets/eslint";
|
|
172
|
+
|
|
173
|
+
export default defineConfig({
|
|
174
|
+
typescript: true,
|
|
175
|
+
react: true,
|
|
176
|
+
a11y: true,
|
|
177
|
+
prettier: true,
|
|
178
|
+
});
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## `@lazyconfig/presets/jest`
|
|
184
|
+
|
|
185
|
+
Jest config factory with opt-in TypeScript (SWC), browser environment, coverage, and JUnit reporting.
|
|
186
|
+
|
|
187
|
+
### Requirements
|
|
188
|
+
|
|
189
|
+
| Package | Version | Required | Enables |
|
|
190
|
+
| ------------------------ | ------- | -------- | ---------------------------------------------- |
|
|
191
|
+
| `jest` | `^30` | **Yes** | Core test runner |
|
|
192
|
+
| `@swc/core` | `^1` | Optional | TypeScript transformation (`typescript: true`) |
|
|
193
|
+
| `@swc/jest` | `^0.2` | Optional | SWC Jest transform (`typescript: true`) |
|
|
194
|
+
| `jest-environment-jsdom` | `^30` | Optional | Browser environment (`browser: true`) |
|
|
195
|
+
| `jest-junit` | `^17` | Optional | JUnit XML reporting (`junit: true`) |
|
|
196
|
+
|
|
197
|
+
Install only what you plan to use:
|
|
198
|
+
|
|
199
|
+
```sh
|
|
200
|
+
# required
|
|
201
|
+
pnpm add -D jest
|
|
202
|
+
|
|
203
|
+
# TypeScript transformation (recommended)
|
|
204
|
+
pnpm add -D @swc/core @swc/jest
|
|
205
|
+
|
|
206
|
+
# browser environment
|
|
207
|
+
pnpm add -D jest-environment-jsdom
|
|
208
|
+
|
|
209
|
+
# JUnit XML reporting
|
|
210
|
+
pnpm add -D jest-junit
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Usage
|
|
214
|
+
|
|
215
|
+
```js
|
|
216
|
+
// jest.config.js
|
|
217
|
+
import { defineConfig } from "@lazyconfig/presets/jest";
|
|
218
|
+
|
|
219
|
+
export default defineConfig({
|
|
220
|
+
typescript: true,
|
|
221
|
+
coverage: true,
|
|
222
|
+
junit: {
|
|
223
|
+
outputDirectory: "reports/unit",
|
|
224
|
+
outputName: "test-results.xml",
|
|
225
|
+
suiteName: "My test suite",
|
|
226
|
+
},
|
|
227
|
+
});
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## `@lazyconfig/presets/rollup`
|
|
233
|
+
|
|
234
|
+
Declarative, format-aware Rollup config factory with opt-in pre-configured plugins.
|
|
235
|
+
|
|
236
|
+
### Requirements
|
|
237
|
+
|
|
238
|
+
| Package | Version | Required | Enables |
|
|
239
|
+
| ----------------------------- | --------- | -------- | ---------------------------------------------------- |
|
|
240
|
+
| `rollup` | `^4.0.0` | **Yes** | Core bundler |
|
|
241
|
+
| `@rollup/plugin-node-resolve` | `^16.0.0` | Optional | `plugins.node` — resolves bare module specifiers |
|
|
242
|
+
| `@rollup/plugin-babel` | `^7.0.0` | Optional | `plugins.babel` — Babel transpilation |
|
|
243
|
+
| `@rollup/plugin-json` | `^6.0.0` | Optional | `plugins.json` — JSON file imports |
|
|
244
|
+
| `@rollup/plugin-replace` | `^6.0.0` | Optional | `plugins.replace` — string replacement at build time |
|
|
245
|
+
| `@rollup/plugin-terser` | `^1.0.0` | Optional | `plugins.terser` — output minification |
|
|
246
|
+
|
|
247
|
+
Install only what you plan to use:
|
|
248
|
+
|
|
249
|
+
```sh
|
|
250
|
+
# required
|
|
251
|
+
pnpm add -D rollup
|
|
252
|
+
|
|
253
|
+
# node resolution and Babel transpilation
|
|
254
|
+
pnpm add -D @rollup/plugin-node-resolve @rollup/plugin-babel
|
|
255
|
+
|
|
256
|
+
# JSON imports
|
|
257
|
+
pnpm add -D @rollup/plugin-json
|
|
258
|
+
|
|
259
|
+
# string replacement and minification
|
|
260
|
+
pnpm add -D @rollup/plugin-replace @rollup/plugin-terser
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Usage
|
|
264
|
+
|
|
265
|
+
```ts
|
|
266
|
+
// rollup.config.ts
|
|
267
|
+
import { defineConfig } from "@lazyconfig/presets/rollup";
|
|
268
|
+
|
|
269
|
+
export default defineConfig({
|
|
270
|
+
bundles: [{ input: "src/index.ts", file: "my-lib", name: "MyLib" }],
|
|
271
|
+
external: ["react"],
|
|
272
|
+
plugins: { node: true, babel: true },
|
|
273
|
+
formats: { es: true, cjs: true },
|
|
274
|
+
});
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## `@lazyconfig/presets/prettier`
|
|
280
|
+
|
|
281
|
+
Shared Prettier preset for consistent code formatting.
|
|
282
|
+
|
|
283
|
+
### Requirements
|
|
284
|
+
|
|
285
|
+
No peer dependencies.
|
|
286
|
+
|
|
287
|
+
| Tool | Version | Notes |
|
|
288
|
+
| ---------- | ------- | --------------------------------- |
|
|
289
|
+
| `prettier` | `^3` | Must be installed in your project |
|
|
290
|
+
|
|
291
|
+
```sh
|
|
292
|
+
pnpm add -D prettier
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
### Usage
|
|
296
|
+
|
|
297
|
+
```json
|
|
298
|
+
// .prettierrc.json
|
|
299
|
+
"@lazyconfig/presets/prettier"
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## `@lazyconfig/presets/commitlint`
|
|
305
|
+
|
|
306
|
+
Commitlint configuration enforcing [Conventional Commits](https://www.conventionalcommits.org/).
|
|
307
|
+
|
|
308
|
+
### Requirements
|
|
309
|
+
|
|
310
|
+
No peer dependencies.
|
|
311
|
+
|
|
312
|
+
| Tool | Version | Notes |
|
|
313
|
+
| --------------------------------- | ------- | --------------------------------- |
|
|
314
|
+
| `@commitlint/cli` | `^20` | Must be installed in your project |
|
|
315
|
+
| `@commitlint/config-conventional` | `^20` | Must be installed in your project |
|
|
316
|
+
|
|
317
|
+
```sh
|
|
318
|
+
pnpm add -D @commitlint/cli @commitlint/config-conventional
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
### Usage
|
|
322
|
+
|
|
323
|
+
```js
|
|
324
|
+
// commitlint.config.cjs
|
|
325
|
+
module.exports = {
|
|
326
|
+
extends: ["@lazyconfig/presets/commitlint"],
|
|
327
|
+
};
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
## `@lazyconfig/presets/api-extractor`
|
|
333
|
+
|
|
334
|
+
Shared API Extractor base configuration for generating rolled-up `.d.ts` declaration files.
|
|
335
|
+
|
|
336
|
+
### Requirements
|
|
337
|
+
|
|
338
|
+
No peer dependencies.
|
|
339
|
+
|
|
340
|
+
| Tool | Version | Notes |
|
|
341
|
+
| -------------------------- | --------- | --------------------------------- |
|
|
342
|
+
| `@microsoft/api-extractor` | `>=7.0.0` | Must be installed in your project |
|
|
343
|
+
|
|
344
|
+
```sh
|
|
345
|
+
pnpm add -D @microsoft/api-extractor
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
### Usage
|
|
349
|
+
|
|
350
|
+
```json
|
|
351
|
+
// api-extractor.json
|
|
352
|
+
{
|
|
353
|
+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
354
|
+
"extends": "@lazyconfig/presets/src/api-extractor.json",
|
|
355
|
+
"mainEntryPointFilePath": "<projectFolder>/out-tsc/src/index.d.ts",
|
|
356
|
+
"dtsRollup": {
|
|
357
|
+
"enabled": true,
|
|
358
|
+
"untrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>.index.d.ts"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## License
|
|
366
|
+
|
|
367
|
+
MIT
|
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lazyconfig/presets",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Meta-package that bundles all lazyconfig presets for a single-install setup.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"src",
|
|
8
|
+
"package.json",
|
|
9
|
+
"README.md",
|
|
10
|
+
"LICENSE"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
"./package.json": "./package.json",
|
|
14
|
+
"./rollup": {
|
|
15
|
+
"types": "./src/rollup.d.ts",
|
|
16
|
+
"default": "./src/rollup.js"
|
|
17
|
+
},
|
|
18
|
+
"./jest": {
|
|
19
|
+
"types": "./src/jest.d.ts",
|
|
20
|
+
"default": "./src/jest.js"
|
|
21
|
+
},
|
|
22
|
+
"./eslint": {
|
|
23
|
+
"types": "./src/eslint.d.ts",
|
|
24
|
+
"default": "./src/eslint.js"
|
|
25
|
+
},
|
|
26
|
+
"./tsconfig/base": "./src/tsconfig/base.json",
|
|
27
|
+
"./tsconfig/lib": "./src/tsconfig/lib.json",
|
|
28
|
+
"./tsconfig/node": "./src/tsconfig/node.json",
|
|
29
|
+
"./tsconfig/react": "./src/tsconfig/react.json",
|
|
30
|
+
"./tsconfig/env": "./src/tsconfig/env.d.ts",
|
|
31
|
+
"./api-extractor": "./src/api-extractor.json",
|
|
32
|
+
"./prettier": "./src/prettier.json",
|
|
33
|
+
"./commitlint": "./src/commitlint.json"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "node scripts/copy-configs.mjs",
|
|
37
|
+
"test": "node --test --test-reporter=spec \"test/**/*.test.mjs\""
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@lazyconfig/api-extractor": "workspace:*",
|
|
41
|
+
"@lazyconfig/commitlint": "workspace:*",
|
|
42
|
+
"@lazyconfig/eslint": "workspace:*",
|
|
43
|
+
"@lazyconfig/jest": "workspace:*",
|
|
44
|
+
"@lazyconfig/prettier": "workspace:*",
|
|
45
|
+
"@lazyconfig/rollup": "workspace:*",
|
|
46
|
+
"@lazyconfig/tsconfig": "workspace:*"
|
|
47
|
+
},
|
|
48
|
+
"keywords": [
|
|
49
|
+
"lazyconfig",
|
|
50
|
+
"presets",
|
|
51
|
+
"meta"
|
|
52
|
+
],
|
|
53
|
+
"packageManager": "pnpm@11.5.2",
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=22.0.0",
|
|
56
|
+
"pnpm": ">=10.0.0"
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
},
|
|
61
|
+
"homepage": "https://github.com/ruben-omh/lazyconfig/tree/main/packages/presets#readme",
|
|
62
|
+
"bugs": {
|
|
63
|
+
"url": "https://github.com/ruben-omh/lazyconfig/issues"
|
|
64
|
+
},
|
|
65
|
+
"repository": {
|
|
66
|
+
"type": "git",
|
|
67
|
+
"url": "https://github.com/ruben-omh/lazyconfig",
|
|
68
|
+
"directory": "packages/presets"
|
|
69
|
+
},
|
|
70
|
+
"author": "ruben-omh",
|
|
71
|
+
"license": "MIT"
|
|
72
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
+
"projectFolder": ".",
|
|
4
|
+
"mainEntryPointFilePath": "<projectFolder>/out-tsc/index.d.ts",
|
|
5
|
+
"bundledPackages": [],
|
|
6
|
+
"newlineKind": "lf",
|
|
7
|
+
"enumMemberOrder": "preserve",
|
|
8
|
+
"compiler": {
|
|
9
|
+
"tsconfigFilePath": "<projectFolder>/tsconfig.lib.json",
|
|
10
|
+
"overrideTsconfig": {
|
|
11
|
+
"compilerOptions": {
|
|
12
|
+
"moduleResolution": "Bundler",
|
|
13
|
+
"target": "ES2022",
|
|
14
|
+
"lib": ["ES2022"],
|
|
15
|
+
"types": ["node"],
|
|
16
|
+
"skipLibCheck": true
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"apiReport": {
|
|
21
|
+
"enabled": false
|
|
22
|
+
},
|
|
23
|
+
"docModel": {
|
|
24
|
+
"enabled": false
|
|
25
|
+
},
|
|
26
|
+
"dtsRollup": {
|
|
27
|
+
"enabled": true
|
|
28
|
+
},
|
|
29
|
+
"tsdocMetadata": {
|
|
30
|
+
"enabled": false
|
|
31
|
+
},
|
|
32
|
+
"messages": {
|
|
33
|
+
"compilerMessageReporting": {
|
|
34
|
+
"default": {
|
|
35
|
+
"logLevel": "warning"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"extractorMessageReporting": {
|
|
39
|
+
"default": {
|
|
40
|
+
"logLevel": "warning"
|
|
41
|
+
},
|
|
42
|
+
"ae-missing-release-tag": {
|
|
43
|
+
"logLevel": "none"
|
|
44
|
+
},
|
|
45
|
+
"ae-undocumented": {
|
|
46
|
+
"logLevel": "none"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"tsdocMessageReporting": {
|
|
50
|
+
"default": {
|
|
51
|
+
"logLevel": "none"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": ["@commitlint/config-conventional"],
|
|
3
|
+
"rules": {
|
|
4
|
+
"type-enum": [
|
|
5
|
+
2,
|
|
6
|
+
"always",
|
|
7
|
+
["ci", "chore", "docs", "feat", "fix", "refactor", "revert", "style", "perf", "test", "build"]
|
|
8
|
+
],
|
|
9
|
+
"type-empty": [2, "never"],
|
|
10
|
+
"type-case": [2, "always", ["lower-case"]],
|
|
11
|
+
"scope-case": [2, "always", "lower-case"],
|
|
12
|
+
"scope-empty": [1, "never"],
|
|
13
|
+
"scope-max-length": [2, "always", 25],
|
|
14
|
+
"header-max-length": [2, "always", 100],
|
|
15
|
+
"subject-max-length": [2, "always", 72],
|
|
16
|
+
"subject-empty": [2, "never"],
|
|
17
|
+
"subject-case": [2, "never", ["sentence-case", "start-case", "pascal-case", "upper-case"]],
|
|
18
|
+
"subject-full-stop": [2, "never", "."],
|
|
19
|
+
"body-leading-blank": [1, "always"],
|
|
20
|
+
"body-min-length": [2, "always", 2],
|
|
21
|
+
"footer-leading-blank": [1, "always"]
|
|
22
|
+
},
|
|
23
|
+
"helpUrl": "https://github.com/conventional-changelog/commitlint/#what-is-commitlint"
|
|
24
|
+
}
|
package/src/eslint.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@lazyconfig/eslint";
|
package/src/eslint.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@lazyconfig/eslint";
|
package/src/jest.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@lazyconfig/jest";
|
package/src/jest.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@lazyconfig/jest";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"trailingComma": "all",
|
|
3
|
+
"tabWidth": 2,
|
|
4
|
+
"semi": true,
|
|
5
|
+
"printWidth": 100,
|
|
6
|
+
"useTabs": true,
|
|
7
|
+
"quoteProps": "as-needed",
|
|
8
|
+
"bracketSpacing": true,
|
|
9
|
+
"bracketSameLine": false,
|
|
10
|
+
"arrowParens": "always",
|
|
11
|
+
"htmlWhitespaceSensitivity": "strict",
|
|
12
|
+
"singleAttributePerLine": true,
|
|
13
|
+
"endOfLine": "lf",
|
|
14
|
+
"embeddedLanguageFormatting": "auto",
|
|
15
|
+
"proseWrap": "preserve"
|
|
16
|
+
}
|
package/src/rollup.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@lazyconfig/rollup";
|
package/src/rollup.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@lazyconfig/rollup";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ambient type declarations for build-time constants injected by bundlers.
|
|
3
|
+
* Include this file in your `tsconfig.json` to make these constants
|
|
4
|
+
* available across your project without explicit imports.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```json
|
|
8
|
+
* {
|
|
9
|
+
* "compilerOptions": {
|
|
10
|
+
* "types": ["@lazyconfig/tsconfig/env"]
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/** Indicates whether the current build is running in development mode. */
|
|
17
|
+
declare const __DEV__: boolean;
|
|
18
|
+
|
|
19
|
+
/** Indicates whether the current build is running in production mode. */
|
|
20
|
+
declare const __PROD__: boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ES2022",
|
|
5
|
+
"lib": ["ES2022"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"moduleResolution": "Bundler",
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"declarationMap": true,
|
|
10
|
+
"emitDeclarationOnly": true,
|
|
11
|
+
"noEmitOnError": true
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ES2022",
|
|
5
|
+
"lib": ["ES2022"],
|
|
6
|
+
"module": "NodeNext",
|
|
7
|
+
"moduleResolution": "NodeNext",
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"declarationMap": true,
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"noEmitOnError": true
|
|
12
|
+
}
|
|
13
|
+
}
|