@isentinel/eslint-config 1.2.6 → 2.0.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/README.md +70 -42
- package/dist/{chunk-2HV5XKT7.js → chunk-TEYT6Q6D.js} +4 -2
- package/dist/cli.js +38 -33
- package/dist/{eslint-plugin-simple-import-sort-FWMVSWU4.js → eslint-plugin-simple-import-sort-LBDE5BUF.js} +9 -9
- package/dist/index.d.ts +2045 -1536
- package/dist/index.js +735 -619
- package/package.json +57 -52
package/README.md
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
### Starter Wizard
|
|
6
6
|
|
|
7
|
-
We provided a CLI tool to help you set up your project, or migrate from the
|
|
7
|
+
We provided a CLI tool to help you set up your project, or migrate from the
|
|
8
|
+
legacy config to the new flat config with one command.
|
|
8
9
|
|
|
9
10
|
### Example Usage
|
|
10
11
|
|
|
11
12
|
For an existing template that already has this config setup, please refer to the
|
|
12
|
-
[roblox-ts
|
|
13
|
-
template](https://github.com/christopher-buss/roblox-ts-project-template)
|
|
13
|
+
[roblox-ts template](https://github.com/christopher-buss/roblox-ts-project-template)
|
|
14
14
|
repository. This includes all necessarily files and configurations to get you up
|
|
15
15
|
and running.
|
|
16
16
|
|
|
@@ -28,40 +28,46 @@ pnpm i -D eslint @isentinel/eslint-config
|
|
|
28
28
|
|
|
29
29
|
### Create config file
|
|
30
30
|
|
|
31
|
-
With [`"type": "module"`](https://nodejs.org/api/packages.html#type) in
|
|
31
|
+
With [`"type": "module"`](https://nodejs.org/api/packages.html#type) in
|
|
32
|
+
`package.json` (recommended):
|
|
32
33
|
|
|
33
34
|
```ts
|
|
34
35
|
// eslint.config.ts
|
|
35
|
-
import
|
|
36
|
+
import isentinel from "@isentinel/eslint-config";
|
|
36
37
|
|
|
37
|
-
export default
|
|
38
|
+
export default isentinel();
|
|
38
39
|
```
|
|
39
40
|
|
|
40
41
|
#### Optional: TypeScript Config Support
|
|
41
42
|
|
|
42
|
-
If you want to use `eslint.config.ts` instead of `.js`, install `jiti` v2.0.0 or
|
|
43
|
+
If you want to use `eslint.config.ts` instead of `.js`, install `jiti` v2.0.0 or
|
|
44
|
+
greater:
|
|
43
45
|
|
|
44
46
|
```bash
|
|
45
47
|
pnpm i -D jiti@^2.0.0
|
|
46
48
|
```
|
|
47
49
|
|
|
48
|
-
See
|
|
50
|
+
See
|
|
51
|
+
[ESLint's TypeScript configuration documentation](https://eslint.org/docs/latest/use/configure/configuration-files#typescript-configuration-files)
|
|
52
|
+
for more details.
|
|
49
53
|
|
|
50
54
|
<details>
|
|
51
55
|
<summary>
|
|
52
56
|
Combined with legacy config:
|
|
53
57
|
</summary>
|
|
54
58
|
|
|
55
|
-
If you still use some configs from the legacy eslintrc format, you can use the
|
|
59
|
+
If you still use some configs from the legacy eslintrc format, you can use the
|
|
60
|
+
[`@eslint/eslintrc`](https://www.npmjs.com/package/@eslint/eslintrc) package to
|
|
61
|
+
convert them to the flat config.
|
|
56
62
|
|
|
57
63
|
```ts
|
|
58
64
|
// eslint.config.ts
|
|
59
65
|
import { FlatCompat } from "@eslint/eslintrc";
|
|
60
|
-
import
|
|
66
|
+
import isentinel from "@isentinel/eslint-config";
|
|
61
67
|
|
|
62
68
|
const compat = new FlatCompat();
|
|
63
69
|
|
|
64
|
-
export default
|
|
70
|
+
export default isentinel(
|
|
65
71
|
{
|
|
66
72
|
ignores: [],
|
|
67
73
|
},
|
|
@@ -78,8 +84,8 @@ export default style(
|
|
|
78
84
|
);
|
|
79
85
|
```
|
|
80
86
|
|
|
81
|
-
> Note that `.eslintignore` no longer works in Flat config
|
|
82
|
-
> [customization](#customization) for more details.
|
|
87
|
+
> Note that `.eslintignore` no longer works in Flat config. Use the `ignores`
|
|
88
|
+
> option instead, see [customization](#customization) for more details.
|
|
83
89
|
|
|
84
90
|
</details>
|
|
85
91
|
|
|
@@ -118,7 +124,8 @@ when you use the `!` operator to assert that a value is not `undefined`. The
|
|
|
118
124
|
caveat is that this rule will not always play nicely with
|
|
119
125
|
`noUncheckedIndexedAccess`, and will often require you to disable it in certain
|
|
120
126
|
places. I believe that this is a good trade-off, as it will help you catch
|
|
121
|
-
potential bugs in your code, but you can disable it if you find it too
|
|
127
|
+
potential bugs in your code, but you can disable it if you find it too
|
|
128
|
+
restrictive.
|
|
122
129
|
|
|
123
130
|
```json
|
|
124
131
|
{
|
|
@@ -130,7 +137,8 @@ potential bugs in your code, but you can disable it if you find it too restricti
|
|
|
130
137
|
|
|
131
138
|
## VS Code support (auto fix)
|
|
132
139
|
|
|
133
|
-
Install
|
|
140
|
+
Install
|
|
141
|
+
[VS Code ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
|
|
134
142
|
|
|
135
143
|
Add the following settings to your `.vscode/settings.json`:
|
|
136
144
|
|
|
@@ -173,22 +181,22 @@ Add the following settings to your `.vscode/settings.json`:
|
|
|
173
181
|
|
|
174
182
|
## Customization
|
|
175
183
|
|
|
176
|
-
Normally you only need to import the `
|
|
184
|
+
Normally you only need to import the `isentinel` preset:
|
|
177
185
|
|
|
178
186
|
```ts
|
|
179
187
|
// eslint.config.ts
|
|
180
|
-
import
|
|
188
|
+
import isentinel from "@isentinel/eslint-config";
|
|
181
189
|
|
|
182
|
-
export default
|
|
190
|
+
export default isentinel();
|
|
183
191
|
```
|
|
184
192
|
|
|
185
193
|
And that's it! Or you can configure each integration individually, for example:
|
|
186
194
|
|
|
187
195
|
```ts
|
|
188
196
|
// eslint.config.ts
|
|
189
|
-
import
|
|
197
|
+
import isentinel from "@isentinel/eslint-config";
|
|
190
198
|
|
|
191
|
-
export default
|
|
199
|
+
export default isentinel({
|
|
192
200
|
// `.eslintignore` is no longer supported in Flat config, use `ignores`
|
|
193
201
|
// instead
|
|
194
202
|
ignores: [
|
|
@@ -204,13 +212,14 @@ export default style({
|
|
|
204
212
|
});
|
|
205
213
|
```
|
|
206
214
|
|
|
207
|
-
The `
|
|
215
|
+
The `isentinel` factory function also accepts any number of arbitrary custom
|
|
216
|
+
config overrides:
|
|
208
217
|
|
|
209
218
|
```ts
|
|
210
219
|
// eslint.config.ts
|
|
211
|
-
import
|
|
220
|
+
import isentinel from "@isentinel/eslint-config";
|
|
212
221
|
|
|
213
|
-
export default
|
|
222
|
+
export default isentinel(
|
|
214
223
|
{
|
|
215
224
|
// Configures for this config
|
|
216
225
|
},
|
|
@@ -227,13 +236,21 @@ export default style(
|
|
|
227
236
|
);
|
|
228
237
|
```
|
|
229
238
|
|
|
230
|
-
Check out the
|
|
239
|
+
Check out the
|
|
240
|
+
[configs](https://github.com/christopher-buss/eslint-config/tree/main/src/configs)
|
|
241
|
+
and
|
|
242
|
+
[factory](https://github.com/christopher-buss/eslint-config/blob/main/src/factory.ts)
|
|
243
|
+
for more details.
|
|
231
244
|
|
|
232
|
-
> Thanks to [antfu/eslint-config](https://github.com/antfu/eslint-config) and
|
|
245
|
+
> Thanks to [antfu/eslint-config](https://github.com/antfu/eslint-config) and
|
|
246
|
+
> [sxzz/eslint-config](https://github.com/sxzz/eslint-config) for the
|
|
247
|
+
> inspiration and reference.
|
|
233
248
|
|
|
234
249
|
### Plugins Renaming
|
|
235
250
|
|
|
236
|
-
Since flat config requires us to explicitly provide the plugin names (instead of
|
|
251
|
+
Since flat config requires us to explicitly provide the plugin names (instead of
|
|
252
|
+
the mandatory convention from npm package name), we renamed some plugins to make
|
|
253
|
+
the overall scope more consistent and easier to write.
|
|
237
254
|
|
|
238
255
|
| New Prefix | Original Prefix | Source Plugin |
|
|
239
256
|
| ---------- | ---------------------- | ------------------------------------------------------------------------------------------ |
|
|
@@ -243,7 +260,8 @@ Since flat config requires us to explicitly provide the plugin names (instead of
|
|
|
243
260
|
| `ts/*` | `@typescript-eslint/*` | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint) |
|
|
244
261
|
| `style/*` | `@stylistic/*` | [@stylistic/eslint-plugin](https://github.com/eslint-stylistic/eslint-stylistic) |
|
|
245
262
|
|
|
246
|
-
When you want to override rules, or disable them inline, you need to update to
|
|
263
|
+
When you want to override rules, or disable them inline, you need to update to
|
|
264
|
+
the new prefix:
|
|
247
265
|
|
|
248
266
|
```diff
|
|
249
267
|
-// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
|
@@ -263,7 +281,8 @@ repository rather than this one.
|
|
|
263
281
|
|
|
264
282
|
Sometimes you will have words that are not in the dictionary, but are still
|
|
265
283
|
valid for your project. To add these words to the dictionary, you can create a
|
|
266
|
-
`cspell.config.yaml` file in the root of your project with the following
|
|
284
|
+
`cspell.config.yaml` file in the root of your project with the following
|
|
285
|
+
content:
|
|
267
286
|
|
|
268
287
|
```yaml
|
|
269
288
|
# cspell.config.yaml
|
|
@@ -276,9 +295,9 @@ To disable this, you can set the `spellCheck` option to `false`:
|
|
|
276
295
|
|
|
277
296
|
```js
|
|
278
297
|
// eslint.config.ts
|
|
279
|
-
import
|
|
298
|
+
import isentinel from "@isentinel/eslint-config";
|
|
280
299
|
|
|
281
|
-
export default
|
|
300
|
+
export default isentinel({
|
|
282
301
|
spellCheck: false,
|
|
283
302
|
});
|
|
284
303
|
```
|
|
@@ -288,7 +307,9 @@ For more information on how to configure the spell checker, please refer to the
|
|
|
288
307
|
|
|
289
308
|
#### `perfectionist` (sorting)
|
|
290
309
|
|
|
291
|
-
This plugin
|
|
310
|
+
This plugin
|
|
311
|
+
[`eslint-plugin-perfectionist`](https://github.com/azat-io/eslint-plugin-perfectionist)
|
|
312
|
+
allows you to sort object keys, imports, etc, with auto-fix.
|
|
292
313
|
|
|
293
314
|
The plugin is installed and some rules are enabled by default, but these rules
|
|
294
315
|
can be disabled or overridden by your own config. For example, I personally have
|
|
@@ -296,9 +317,9 @@ sort-objects set to:
|
|
|
296
317
|
|
|
297
318
|
```js
|
|
298
319
|
// eslint.config.ts
|
|
299
|
-
import
|
|
320
|
+
import isentinel from "@isentinel/eslint-config";
|
|
300
321
|
|
|
301
|
-
export default
|
|
322
|
+
export default isentinel({
|
|
302
323
|
rules: {
|
|
303
324
|
"perfectionist/sort-objects": [
|
|
304
325
|
"warn",
|
|
@@ -321,7 +342,8 @@ export default style({
|
|
|
321
342
|
|
|
322
343
|
### Optional Configs
|
|
323
344
|
|
|
324
|
-
We provide some optional configs for specific use cases, that we don't include
|
|
345
|
+
We provide some optional configs for specific use cases, that we don't include
|
|
346
|
+
their dependencies by default.
|
|
325
347
|
|
|
326
348
|
#### React
|
|
327
349
|
|
|
@@ -329,9 +351,9 @@ To enable React support, you need to explicitly turn it on:
|
|
|
329
351
|
|
|
330
352
|
```js
|
|
331
353
|
// eslint.config.ts
|
|
332
|
-
import
|
|
354
|
+
import isentinel from "@isentinel/eslint-config";
|
|
333
355
|
|
|
334
|
-
export default
|
|
356
|
+
export default isentinel({
|
|
335
357
|
react: true,
|
|
336
358
|
});
|
|
337
359
|
```
|
|
@@ -342,14 +364,15 @@ To enable Jest support, you need to explicitly turn it on:
|
|
|
342
364
|
|
|
343
365
|
```js
|
|
344
366
|
// eslint.config.ts
|
|
345
|
-
import
|
|
367
|
+
import isentinel from "@isentinel/eslint-config";
|
|
346
368
|
|
|
347
|
-
export default
|
|
369
|
+
export default isentinel({
|
|
348
370
|
test: true,
|
|
349
371
|
});
|
|
350
372
|
```
|
|
351
373
|
|
|
352
|
-
Running `npx eslint` should prompt you to install the required dependencies,
|
|
374
|
+
Running `npx eslint` should prompt you to install the required dependencies,
|
|
375
|
+
otherwise, you can install them manually:
|
|
353
376
|
|
|
354
377
|
```bash
|
|
355
378
|
pnpm i -D @eslint-react/eslint-plugin eslint-plugin-react-roblox-hooks eslint-plugin-jest
|
|
@@ -357,7 +380,8 @@ pnpm i -D @eslint-react/eslint-plugin eslint-plugin-react-roblox-hooks eslint-pl
|
|
|
357
380
|
|
|
358
381
|
### Lint Staged
|
|
359
382
|
|
|
360
|
-
If you want to apply lint and auto-fix before every commit, you can add the
|
|
383
|
+
If you want to apply lint and auto-fix before every commit, you can add the
|
|
384
|
+
following to your `package.json`:
|
|
361
385
|
|
|
362
386
|
```json
|
|
363
387
|
{
|
|
@@ -378,7 +402,9 @@ pnpm i -D lint-staged simple-git-hooks
|
|
|
378
402
|
|
|
379
403
|
## View what rules are enabled
|
|
380
404
|
|
|
381
|
-
There is a visual tool to help you view what rules are enabled in your project
|
|
405
|
+
There is a visual tool to help you view what rules are enabled in your project
|
|
406
|
+
and apply them to what files,
|
|
407
|
+
[eslint-config-inspector](https://github.com/eslint/config-inspector)
|
|
382
408
|
|
|
383
409
|
Go to your project root that contains `eslint.config.ts` and run:
|
|
384
410
|
|
|
@@ -388,7 +414,9 @@ npx eslint-config-inspector
|
|
|
388
414
|
|
|
389
415
|
## Versioning Policy
|
|
390
416
|
|
|
391
|
-
This project follows [Semantic Versioning](https://semver.org/) for releases.
|
|
417
|
+
This project follows [Semantic Versioning](https://semver.org/) for releases.
|
|
418
|
+
However, since this is just a config and involves opinions and many moving
|
|
419
|
+
parts, we don't treat rules changes as breaking changes.
|
|
392
420
|
|
|
393
421
|
### Changes Considered as Breaking Changes
|
|
394
422
|
|
|
@@ -27,9 +27,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/tsup@8.
|
|
30
|
+
// node_modules/.pnpm/tsup@8.5.0_jiti@2.5.1_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js
|
|
31
|
+
import path from "path";
|
|
32
|
+
import { fileURLToPath } from "url";
|
|
31
33
|
var init_esm_shims = __esm({
|
|
32
|
-
"node_modules/.pnpm/tsup@8.
|
|
34
|
+
"node_modules/.pnpm/tsup@8.5.0_jiti@2.5.1_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js"() {
|
|
33
35
|
"use strict";
|
|
34
36
|
}
|
|
35
37
|
});
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_esm_shims
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TEYT6Q6D.js";
|
|
4
4
|
|
|
5
5
|
// src/cli.ts
|
|
6
6
|
init_esm_shims();
|
|
@@ -9,7 +9,7 @@ init_esm_shims();
|
|
|
9
9
|
init_esm_shims();
|
|
10
10
|
import { intro, log as log5 } from "@clack/prompts";
|
|
11
11
|
import ansis6 from "ansis";
|
|
12
|
-
import process5 from "
|
|
12
|
+
import process5 from "process";
|
|
13
13
|
import yargs from "yargs";
|
|
14
14
|
import { hideBin } from "yargs/helpers";
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@ init_esm_shims();
|
|
|
18
18
|
import ansis from "ansis";
|
|
19
19
|
|
|
20
20
|
// package.json
|
|
21
|
-
var version = "
|
|
21
|
+
var version = "2.0.0";
|
|
22
22
|
var package_default = {
|
|
23
23
|
name: "@isentinel/eslint-config",
|
|
24
24
|
version,
|
|
@@ -29,10 +29,10 @@ var package_default = {
|
|
|
29
29
|
"roblox-ts",
|
|
30
30
|
"rbxts"
|
|
31
31
|
],
|
|
32
|
-
homepage: "https://github.com/christopher-buss/
|
|
32
|
+
homepage: "https://github.com/christopher-buss/eslint-config",
|
|
33
33
|
repository: {
|
|
34
34
|
type: "git",
|
|
35
|
-
url: "git+https://github.com/christopher-buss/
|
|
35
|
+
url: "git+https://github.com/christopher-buss/eslint-config.git"
|
|
36
36
|
},
|
|
37
37
|
license: "MIT",
|
|
38
38
|
author: "Christopher Buss <christopher.buss@pm.me> (https://github.com/christopher-buss)",
|
|
@@ -56,7 +56,8 @@ var package_default = {
|
|
|
56
56
|
dev: "npx @eslint/config-inspector --config eslint.config.ts",
|
|
57
57
|
gen: "tsx scripts/typegen.ts && tsx scripts/versiongen.ts",
|
|
58
58
|
postgen: "echo 'Generation complete!'",
|
|
59
|
-
lint: "eslint",
|
|
59
|
+
lint: "eslint --cache",
|
|
60
|
+
"lint:ci": "eslint --cache --cache-strategy content",
|
|
60
61
|
prepack: "nr build",
|
|
61
62
|
prepare: "simple-git-hooks",
|
|
62
63
|
release: "bumpp",
|
|
@@ -68,7 +69,7 @@ var package_default = {
|
|
|
68
69
|
"pre-commit": "pnpm lint-staged"
|
|
69
70
|
},
|
|
70
71
|
"lint-staged": {
|
|
71
|
-
"*": "eslint --fix"
|
|
72
|
+
"*": "eslint --fix --cache"
|
|
72
73
|
},
|
|
73
74
|
dependencies: {
|
|
74
75
|
"@antfu/install-pkg": "catalog:prod",
|
|
@@ -87,23 +88,24 @@ var package_default = {
|
|
|
87
88
|
"eslint-config-flat-gitignore": "catalog:prod",
|
|
88
89
|
"eslint-config-prettier": "catalog:prod",
|
|
89
90
|
"eslint-flat-config-utils": "catalog:prod",
|
|
91
|
+
"eslint-import-resolver-node": "catalog:prod",
|
|
90
92
|
"eslint-merge-processors": "catalog:prod",
|
|
91
93
|
"eslint-plugin-antfu": "catalog:prod",
|
|
92
94
|
"eslint-plugin-arrow-return-style": "catalog:prod",
|
|
93
95
|
"eslint-plugin-better-max-params": "catalog:prod",
|
|
94
96
|
"eslint-plugin-comment-length": "catalog:prod",
|
|
95
97
|
"eslint-plugin-de-morgan": "catalog:prod",
|
|
96
|
-
"eslint-plugin-format": "catalog:prod",
|
|
97
98
|
"eslint-plugin-format-lua": "catalog:prod",
|
|
98
|
-
"eslint-plugin-import-
|
|
99
|
+
"eslint-plugin-import-lite": "catalog:prod",
|
|
99
100
|
"eslint-plugin-jsdoc": "catalog:prod",
|
|
100
101
|
"eslint-plugin-jsonc": "catalog:prod",
|
|
101
102
|
"eslint-plugin-no-only-tests": "catalog:prod",
|
|
102
103
|
"eslint-plugin-package-json": "catalog:prod",
|
|
103
104
|
"eslint-plugin-perfectionist": "catalog:prod",
|
|
104
105
|
"eslint-plugin-pnpm": "catalog:prod",
|
|
106
|
+
"eslint-plugin-prettier": "catalog:prod",
|
|
105
107
|
"eslint-plugin-promise": "catalog:prod",
|
|
106
|
-
"eslint-plugin-roblox-ts
|
|
108
|
+
"eslint-plugin-roblox-ts": "catalog:prod",
|
|
107
109
|
"eslint-plugin-sentinel": "catalog:prod",
|
|
108
110
|
"eslint-plugin-sonarjs": "catalog:prod",
|
|
109
111
|
"eslint-plugin-toml": "catalog:prod",
|
|
@@ -150,21 +152,24 @@ var package_default = {
|
|
|
150
152
|
peerDependencies: {
|
|
151
153
|
"@eslint-react/eslint-plugin": "^1.45.0",
|
|
152
154
|
eslint: "^9.10.0",
|
|
153
|
-
"eslint-plugin-jest": "^28.9.0",
|
|
155
|
+
"eslint-plugin-jest": "^28.9.0 || ^29.0.0",
|
|
154
156
|
"eslint-plugin-react-roblox-hooks": "^5.1.0-rbx.1"
|
|
155
157
|
},
|
|
156
158
|
peerDependenciesMeta: {
|
|
157
159
|
"@eslint-react/eslint-plugin": {
|
|
158
160
|
optional: true
|
|
159
161
|
},
|
|
160
|
-
"eslint-plugin-
|
|
162
|
+
"eslint-plugin-jest": {
|
|
161
163
|
optional: true
|
|
162
164
|
},
|
|
163
|
-
"eslint-plugin-
|
|
165
|
+
"eslint-plugin-react-roblox-hooks": {
|
|
164
166
|
optional: true
|
|
165
167
|
}
|
|
166
168
|
},
|
|
167
|
-
packageManager: "pnpm@10.
|
|
169
|
+
packageManager: "pnpm@10.14.0",
|
|
170
|
+
engines: {
|
|
171
|
+
node: ">=22.1.0"
|
|
172
|
+
},
|
|
168
173
|
publishConfig: {
|
|
169
174
|
access: "public"
|
|
170
175
|
}
|
|
@@ -228,27 +233,27 @@ var dependenciesMap = {
|
|
|
228
233
|
init_esm_shims();
|
|
229
234
|
import { cancel, confirm, group, log as log4, multiselect, outro } from "@clack/prompts";
|
|
230
235
|
import ansis5 from "ansis";
|
|
231
|
-
import fs3 from "
|
|
232
|
-
import process4 from "
|
|
236
|
+
import fs3 from "fs";
|
|
237
|
+
import process4 from "process";
|
|
233
238
|
|
|
234
239
|
// src/cli/stages/update-eslint-files.ts
|
|
235
240
|
init_esm_shims();
|
|
236
241
|
import { log, note } from "@clack/prompts";
|
|
237
242
|
import ansis2 from "ansis";
|
|
238
|
-
import fs from "
|
|
239
|
-
import fsp from "
|
|
240
|
-
import path from "
|
|
241
|
-
import process from "
|
|
243
|
+
import fs from "fs";
|
|
244
|
+
import fsp from "fs/promises";
|
|
245
|
+
import path from "path";
|
|
246
|
+
import process from "process";
|
|
242
247
|
import parse from "parse-gitignore";
|
|
243
248
|
|
|
244
249
|
// src/cli/utils.ts
|
|
245
250
|
init_esm_shims();
|
|
246
|
-
import { execSync } from "
|
|
251
|
+
import { execSync } from "child_process";
|
|
247
252
|
function getEslintConfigContent(mainConfig, additionalConfigs) {
|
|
248
253
|
return `
|
|
249
|
-
import
|
|
254
|
+
import isentinel from '@isentinel/eslint-config'
|
|
250
255
|
|
|
251
|
-
export default
|
|
256
|
+
export default isentinel({
|
|
252
257
|
${mainConfig}
|
|
253
258
|
}${additionalConfigs?.map((config) => `,{
|
|
254
259
|
${config}
|
|
@@ -315,16 +320,16 @@ async function updateEslintFiles(result) {
|
|
|
315
320
|
init_esm_shims();
|
|
316
321
|
import { log as log2, note as note2 } from "@clack/prompts";
|
|
317
322
|
import ansis3 from "ansis";
|
|
318
|
-
import fsp2 from "
|
|
319
|
-
import path2 from "
|
|
320
|
-
import process2 from "
|
|
323
|
+
import fsp2 from "fs/promises";
|
|
324
|
+
import path2 from "path";
|
|
325
|
+
import process2 from "process";
|
|
321
326
|
|
|
322
327
|
// src/cli/constants-generated.ts
|
|
323
328
|
init_esm_shims();
|
|
324
329
|
var versionsMap = {
|
|
325
|
-
"@eslint-react/eslint-plugin": "1.
|
|
326
|
-
"eslint": "9.
|
|
327
|
-
"eslint-plugin-jest": "
|
|
330
|
+
"@eslint-react/eslint-plugin": "1.52.3",
|
|
331
|
+
"eslint": "9.32.0",
|
|
332
|
+
"eslint-plugin-jest": "29.0.1",
|
|
328
333
|
"eslint-plugin-react-roblox-hooks": "5.1.0-rbx.1"
|
|
329
334
|
};
|
|
330
335
|
|
|
@@ -358,10 +363,10 @@ async function updatePackageJson(result) {
|
|
|
358
363
|
init_esm_shims();
|
|
359
364
|
import { log as log3 } from "@clack/prompts";
|
|
360
365
|
import ansis4 from "ansis";
|
|
361
|
-
import fs2 from "
|
|
362
|
-
import fsp3 from "
|
|
363
|
-
import path3 from "
|
|
364
|
-
import process3 from "
|
|
366
|
+
import fs2 from "fs";
|
|
367
|
+
import fsp3 from "fs/promises";
|
|
368
|
+
import path3 from "path";
|
|
369
|
+
import process3 from "process";
|
|
365
370
|
async function updateVscodeSettings(result) {
|
|
366
371
|
const cwd = process3.cwd();
|
|
367
372
|
if (!result.updateVscodeSettings) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS,
|
|
3
3
|
init_esm_shims
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TEYT6Q6D.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
6
|
+
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.32.0_jiti@2.5.1_/node_modules/eslint-plugin-simple-import-sort/shared.js
|
|
7
7
|
var require_shared = __commonJS({
|
|
8
|
-
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
8
|
+
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.32.0_jiti@2.5.1_/node_modules/eslint-plugin-simple-import-sort/shared.js"(exports, module) {
|
|
9
9
|
"use strict";
|
|
10
10
|
init_esm_shims();
|
|
11
11
|
function extractChunks(parentNode, isPartOfChunk) {
|
|
@@ -567,9 +567,9 @@ var require_shared = __commonJS({
|
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
569
|
|
|
570
|
-
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
570
|
+
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.32.0_jiti@2.5.1_/node_modules/eslint-plugin-simple-import-sort/imports.js
|
|
571
571
|
var require_imports = __commonJS({
|
|
572
|
-
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
572
|
+
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.32.0_jiti@2.5.1_/node_modules/eslint-plugin-simple-import-sort/imports.js"(exports, module) {
|
|
573
573
|
"use strict";
|
|
574
574
|
init_esm_shims();
|
|
575
575
|
var shared = require_shared();
|
|
@@ -695,9 +695,9 @@ var require_imports = __commonJS({
|
|
|
695
695
|
}
|
|
696
696
|
});
|
|
697
697
|
|
|
698
|
-
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
698
|
+
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.32.0_jiti@2.5.1_/node_modules/eslint-plugin-simple-import-sort/exports.js
|
|
699
699
|
var require_exports = __commonJS({
|
|
700
|
-
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
700
|
+
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.32.0_jiti@2.5.1_/node_modules/eslint-plugin-simple-import-sort/exports.js"(exports, module) {
|
|
701
701
|
"use strict";
|
|
702
702
|
init_esm_shims();
|
|
703
703
|
var shared = require_shared();
|
|
@@ -787,9 +787,9 @@ var require_exports = __commonJS({
|
|
|
787
787
|
}
|
|
788
788
|
});
|
|
789
789
|
|
|
790
|
-
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
790
|
+
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.32.0_jiti@2.5.1_/node_modules/eslint-plugin-simple-import-sort/index.js
|
|
791
791
|
var require_eslint_plugin_simple_import_sort = __commonJS({
|
|
792
|
-
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.
|
|
792
|
+
"node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.32.0_jiti@2.5.1_/node_modules/eslint-plugin-simple-import-sort/index.js"(exports, module) {
|
|
793
793
|
init_esm_shims();
|
|
794
794
|
var importsRule = require_imports();
|
|
795
795
|
var exportsRule = require_exports();
|