@ntnyq/eslint-config 2.0.0-beta.19 → 2.0.0-beta.20

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/index.js CHANGED
@@ -59,58 +59,48 @@ var GLOB_EXCLUDE = [
59
59
  ];
60
60
 
61
61
  // src/configs/vue.ts
62
+ import process from "node:process";
62
63
  import { getPackageInfoSync } from "local-pkg";
63
64
 
64
65
  // src/parsers.ts
65
- import * as parserYml from "yaml-eslint-parser";
66
- import * as parserVue from "vue-eslint-parser";
67
- import * as parserJsonc from "jsonc-eslint-parser";
68
- import * as parserAstro from "astro-eslint-parser";
69
- import * as parserTypescript from "@typescript-eslint/parser";
66
+ import { default as default2 } from "yaml-eslint-parser";
67
+ import { default as default3 } from "vue-eslint-parser";
68
+ import { default as default4 } from "jsonc-eslint-parser";
69
+ import { default as default5 } from "astro-eslint-parser";
70
+ import { default as default6 } from "@typescript-eslint/parser";
70
71
 
71
72
  // src/plugins.ts
72
- import * as _pluginVue from "eslint-plugin-vue";
73
- import * as _pluginReact from "eslint-plugin-react";
74
- import * as _pluginUnoCSS from "@unocss/eslint-plugin";
75
- import * as _pluginUnicorn from "eslint-plugin-unicorn";
76
- import * as _pluginPrettier from "eslint-plugin-prettier";
77
- import * as _pluginMarkdown from "eslint-plugin-markdown";
78
- import * as _pluginReactHooks from "eslint-plugin-react-hooks";
79
- import * as _pluginComments from "eslint-plugin-eslint-comments";
80
- import * as _pluginTypeScript from "@typescript-eslint/eslint-plugin";
81
- import * as pluginYml from "eslint-plugin-yml";
82
- import * as pluginAstro from "eslint-plugin-astro";
83
- import * as pluginJsonc from "eslint-plugin-jsonc";
84
- import * as pluginImport from "eslint-plugin-import";
85
- function interopDefault(mod) {
86
- return mod.default || mod;
87
- }
88
- var pluginVue = interopDefault(_pluginVue);
89
- var pluginReact = interopDefault(_pluginReact);
90
- var pluginUnoCSS = interopDefault(_pluginUnoCSS);
91
- var pluginUnicorn = interopDefault(_pluginUnicorn);
92
- var pluginPrettier = interopDefault(_pluginPrettier);
93
- var pluginMarkdown = interopDefault(_pluginMarkdown);
94
- var pluginComments = interopDefault(_pluginComments);
95
- var pluginReactHooks = interopDefault(_pluginReactHooks);
96
- var pluginTypescript = interopDefault(_pluginTypeScript);
73
+ import { default as default7 } from "eslint-plugin-n";
74
+ import { default as default8 } from "eslint-plugin-i";
75
+ import { default as default9 } from "eslint-plugin-yml";
76
+ import { default as default10 } from "eslint-plugin-vue";
77
+ import { default as default11 } from "eslint-plugin-astro";
78
+ import { default as default12 } from "eslint-plugin-jsonc";
79
+ import { default as default13 } from "eslint-plugin-react";
80
+ import { default as default14 } from "@unocss/eslint-plugin";
81
+ import { default as default15 } from "eslint-plugin-unicorn";
82
+ import { default as default16 } from "eslint-plugin-prettier";
83
+ import { default as default17 } from "eslint-plugin-markdown";
84
+ import { default as default18 } from "eslint-plugin-react-hooks";
85
+ import { default as default19 } from "eslint-plugin-eslint-comments";
86
+ import { default as default20 } from "@typescript-eslint/eslint-plugin";
97
87
 
98
88
  // src/configs/typescript.ts
99
89
  var typescript = [
100
90
  {
101
91
  files: [GLOB_TS, GLOB_TSX],
102
92
  languageOptions: {
103
- parser: parserTypescript,
93
+ parser: default6,
104
94
  parserOptions: {
105
95
  sourceType: "module"
106
96
  }
107
97
  },
108
98
  plugins: {
109
- "@typescript-eslint": pluginTypescript
99
+ "@typescript-eslint": default20
110
100
  },
111
101
  rules: {
112
- ...pluginTypescript.configs.recommended.rules,
113
- ...pluginTypescript.configs.stylistic.rules,
102
+ ...default20.configs.recommended.rules,
103
+ ...default20.configs.stylistic.rules,
114
104
  "@typescript-eslint/no-unused-vars": "error",
115
105
  "@typescript-eslint/no-redeclare": "error",
116
106
  "@typescript-eslint/consistent-type-imports": [
@@ -189,11 +179,11 @@ var vue = [
189
179
  {
190
180
  files: [GLOB_VUE],
191
181
  plugins: {
192
- vue: pluginVue,
193
- "@typescript-eslint": pluginTypescript
182
+ vue: default10,
183
+ "@typescript-eslint": default20
194
184
  },
195
185
  languageOptions: {
196
- parser: parserVue,
186
+ parser: default3,
197
187
  parserOptions: {
198
188
  parser: "@typescript-eslint/parser",
199
189
  sourceType: "module",
@@ -203,14 +193,14 @@ var vue = [
203
193
  }
204
194
  }
205
195
  },
206
- processor: pluginVue.processors[".vue"],
196
+ processor: default10.processors[".vue"],
207
197
  rules: {
208
198
  ...typescript[0].rules
209
199
  }
210
200
  },
211
201
  {
212
202
  plugins: {
213
- vue: pluginVue
203
+ vue: default10
214
204
  },
215
205
  rules: isVue3 ? vue3Rules : vue2Rules
216
206
  }
@@ -221,110 +211,41 @@ var yml = [
221
211
  {
222
212
  files: [GLOB_YAML],
223
213
  languageOptions: {
224
- parser: parserYml
214
+ parser: default2
225
215
  },
226
216
  plugins: {
227
- yml: pluginYml
217
+ yml: default9
228
218
  },
229
219
  rules: {
230
- ...pluginYml.configs.standard.rules,
231
- ...pluginYml.configs.prettier.rules,
232
- "yml/no-empty-mapping-value": "off"
220
+ ...default9.configs.standard.rules,
221
+ ...default9.configs.prettier.rules,
222
+ "yml/no-empty-mapping-value": "off",
223
+ "yml/quotes": ["error", { avoidEscape: false, prefer: "single" }]
233
224
  }
234
225
  }
235
226
  ];
236
227
 
237
- // src/configs/react.ts
238
- var react = [
228
+ // src/configs/node.ts
229
+ var node = [
239
230
  {
240
- files: [GLOB_JSX, GLOB_TSX],
241
231
  plugins: {
242
- react: pluginReact,
243
- "react-hooks": pluginReactHooks
244
- },
245
- settings: {
246
- react: {
247
- version: "18.0"
248
- }
249
- },
250
- languageOptions: {
251
- parserOptions: {
252
- ecmaFeatures: {
253
- jsx: true
254
- }
255
- }
232
+ node: default7
256
233
  },
257
234
  rules: {
258
- ...pluginReact.configs.recommended.rules,
259
- ...pluginReactHooks.configs.recommended.rules,
260
- "jsx-quotes": ["error", "prefer-double"],
261
- "react/react-in-jsx-scope": "off"
235
+ "node/handle-callback-err": ["error", "^(err|error)$"],
236
+ "node/no-deprecated-api": "error",
237
+ "node/no-exports-assign": "error",
238
+ "node/no-new-require": "error",
239
+ "node/no-path-concat": "error",
240
+ "node/prefer-global/buffer": ["error", "never"],
241
+ "node/prefer-global/process": ["error", "never"],
242
+ "node/process-exit-as-throw": "error"
262
243
  }
263
244
  }
264
245
  ];
265
246
 
266
- // src/configs/astro.ts
267
- var astro = [
268
- {
269
- files: [GLOB_ASTRO],
270
- plugins: {
271
- astro: pluginAstro
272
- },
273
- languageOptions: {
274
- parser: parserAstro,
275
- parserOptions: {
276
- parser: "@typescript-eslint/parser",
277
- extraFileExtensions: [".astro"]
278
- }
279
- },
280
- rules: {
281
- ...pluginAstro.configs.recommended.rules
282
- }
283
- }
284
- ];
285
-
286
- // src/configs/jsonc.ts
287
- var jsonc = [
288
- {
289
- files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
290
- plugins: {
291
- jsonc: pluginJsonc
292
- },
293
- languageOptions: {
294
- parser: parserJsonc
295
- },
296
- rules: {
297
- ...pluginJsonc.configs["recommended-with-jsonc"].rules,
298
- "jsonc/array-bracket-spacing": ["error", "never"],
299
- "jsonc/comma-dangle": ["error", "never"],
300
- "jsonc/comma-style": ["error", "last"],
301
- "jsonc/indent": ["error", 2],
302
- "jsonc/key-spacing": [
303
- "error",
304
- {
305
- beforeColon: false,
306
- afterColon: true
307
- }
308
- ],
309
- "jsonc/no-octal-escape": "error",
310
- "jsonc/object-curly-newline": [
311
- "error",
312
- {
313
- multiline: true,
314
- consistent: true
315
- }
316
- ],
317
- "jsonc/object-curly-spacing": ["error", "always"],
318
- "jsonc/object-property-newline": [
319
- "error",
320
- {
321
- allowMultiplePropertiesPerLine: true
322
- }
323
- ]
324
- }
325
- }
326
- ];
327
- var jsonOrder = [
247
+ // src/configs/sort.ts
248
+ var sortPackageJson = [
328
249
  {
329
250
  files: ["**/package.json"],
330
251
  rules: {
@@ -402,12 +323,218 @@ var jsonOrder = [
402
323
  }
403
324
  }
404
325
  ];
326
+ var sortTsConfig = [
327
+ {
328
+ files: ["**/tsconfig.json", "**/tsconfig.*.json"],
329
+ rules: {
330
+ "jsonc/sort-keys": [
331
+ "error",
332
+ {
333
+ order: ["extends", "compilerOptions", "references", "files", "include", "exclude"],
334
+ pathPattern: "^$"
335
+ },
336
+ {
337
+ order: [
338
+ /* Projects */
339
+ "incremental",
340
+ "composite",
341
+ "tsBuildInfoFile",
342
+ "disableSourceOfProjectReferenceRedirect",
343
+ "disableSolutionSearching",
344
+ "disableReferencedProjectLoad",
345
+ /* Language and Environment */
346
+ "target",
347
+ "lib",
348
+ "jsx",
349
+ "experimentalDecorators",
350
+ "emitDecoratorMetadata",
351
+ "jsxFactory",
352
+ "jsxFragmentFactory",
353
+ "jsxImportSource",
354
+ "reactNamespace",
355
+ "noLib",
356
+ "useDefineForClassFields",
357
+ "moduleDetection",
358
+ /* Modules */
359
+ "module",
360
+ "rootDir",
361
+ "moduleResolution",
362
+ "baseUrl",
363
+ "paths",
364
+ "rootDirs",
365
+ "typeRoots",
366
+ "types",
367
+ "allowUmdGlobalAccess",
368
+ "moduleSuffixes",
369
+ "allowImportingTsExtensions",
370
+ "resolvePackageJsonExports",
371
+ "resolvePackageJsonImports",
372
+ "customConditions",
373
+ "resolveJsonModule",
374
+ "allowArbitraryExtensions",
375
+ "noResolve",
376
+ /* JavaScript Support */
377
+ "allowJs",
378
+ "checkJs",
379
+ "maxNodeModuleJsDepth",
380
+ /* Emit */
381
+ "declaration",
382
+ "declarationMap",
383
+ "emitDeclarationOnly",
384
+ "sourceMap",
385
+ "inlineSourceMap",
386
+ "outFile",
387
+ "outDir",
388
+ "removeComments",
389
+ "noEmit",
390
+ "importHelpers",
391
+ "importsNotUsedAsValues",
392
+ "downlevelIteration",
393
+ "sourceRoot",
394
+ "mapRoot",
395
+ "inlineSources",
396
+ "emitBOM",
397
+ "newLine",
398
+ "stripInternal",
399
+ "noEmitHelpers",
400
+ "noEmitOnError",
401
+ "preserveConstEnums",
402
+ "declarationDir",
403
+ "preserveValueImports",
404
+ /* Interop Constraints */
405
+ "isolatedModules",
406
+ "verbatimModuleSyntax",
407
+ "allowSyntheticDefaultImports",
408
+ "esModuleInterop",
409
+ "preserveSymlinks",
410
+ "forceConsistentCasingInFileNames",
411
+ /* Type Checking */
412
+ "strict",
413
+ "strictBindCallApply",
414
+ "strictFunctionTypes",
415
+ "strictNullChecks",
416
+ "strictPropertyInitialization",
417
+ "allowUnreachableCode",
418
+ "allowUnusedLabels",
419
+ "alwaysStrict",
420
+ "exactOptionalPropertyTypes",
421
+ "noFallthroughCasesInSwitch",
422
+ "noImplicitAny",
423
+ "noImplicitOverride",
424
+ "noImplicitReturns",
425
+ "noImplicitThis",
426
+ "noPropertyAccessFromIndexSignature",
427
+ "noUncheckedIndexedAccess",
428
+ "noUnusedLocals",
429
+ "noUnusedParameters",
430
+ "useUnknownInCatchVariables",
431
+ /* Completeness */
432
+ "skipDefaultLibCheck",
433
+ "skipLibCheck"
434
+ ],
435
+ pathPattern: "^compilerOptions$"
436
+ }
437
+ ]
438
+ }
439
+ }
440
+ ];
441
+
442
+ // src/configs/react.ts
443
+ var react = [
444
+ {
445
+ files: [GLOB_JSX, GLOB_TSX],
446
+ plugins: {
447
+ react: default13,
448
+ "react-hooks": default18
449
+ },
450
+ settings: {
451
+ react: {
452
+ version: "18.0"
453
+ }
454
+ },
455
+ languageOptions: {
456
+ parserOptions: {
457
+ ecmaFeatures: {
458
+ jsx: true
459
+ }
460
+ }
461
+ },
462
+ rules: {
463
+ ...default13.configs.recommended.rules,
464
+ ...default18.configs.recommended.rules,
465
+ "jsx-quotes": ["error", "prefer-double"],
466
+ "react/react-in-jsx-scope": "off"
467
+ }
468
+ }
469
+ ];
470
+
471
+ // src/configs/astro.ts
472
+ var astro = [
473
+ {
474
+ files: [GLOB_ASTRO],
475
+ plugins: {
476
+ astro: default11
477
+ },
478
+ languageOptions: {
479
+ parser: default5,
480
+ parserOptions: {
481
+ parser: "@typescript-eslint/parser",
482
+ extraFileExtensions: [".astro"]
483
+ }
484
+ },
485
+ rules: {
486
+ ...default11.configs.recommended.rules
487
+ }
488
+ }
489
+ ];
490
+
491
+ // src/configs/jsonc.ts
492
+ var jsonc = [
493
+ {
494
+ files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
495
+ plugins: {
496
+ jsonc: default12
497
+ },
498
+ languageOptions: {
499
+ parser: default4
500
+ },
501
+ rules: {
502
+ ...default12.configs["recommended-with-jsonc"].rules,
503
+ "jsonc/array-bracket-spacing": ["error", "never"],
504
+ "jsonc/comma-dangle": ["error", "never"],
505
+ "jsonc/comma-style": ["error", "last"],
506
+ "jsonc/indent": ["error", 2],
507
+ "jsonc/key-spacing": [
508
+ "error",
509
+ {
510
+ beforeColon: false,
511
+ afterColon: true
512
+ }
513
+ ],
514
+ "jsonc/no-octal-escape": "error",
515
+ "jsonc/object-curly-newline": [
516
+ "error",
517
+ {
518
+ multiline: true,
519
+ consistent: true
520
+ }
521
+ ],
522
+ "jsonc/object-curly-spacing": ["error", "always"],
523
+ "jsonc/object-property-newline": [
524
+ "error",
525
+ {
526
+ allowMultiplePropertiesPerLine: true
527
+ }
528
+ ]
529
+ }
530
+ }
531
+ ];
405
532
 
406
533
  // src/configs/imports.ts
407
534
  var imports = [
408
535
  {
409
536
  plugins: {
410
- import: pluginImport
537
+ import: default8
411
538
  },
412
539
  settings: {
413
540
  "import/resolver": {
@@ -419,6 +546,7 @@ var imports = [
419
546
  "import/no-absolute-path": "off",
420
547
  "import/no-named-as-default-member": "off",
421
548
  "import/first": "error",
549
+ "import/export": "error",
422
550
  "import/no-duplicates": "error",
423
551
  "import/no-mutable-exports": "error",
424
552
  "import/newline-after-import": "error",
@@ -448,10 +576,10 @@ var imports = [
448
576
  var unocss = [
449
577
  {
450
578
  plugins: {
451
- "@unocss": pluginUnoCSS
579
+ "@unocss": default14
452
580
  },
453
581
  rules: {
454
- ...pluginUnoCSS.configs.recommended.rules
582
+ ...default14.configs.recommended.rules
455
583
  }
456
584
  }
457
585
  ];
@@ -460,7 +588,7 @@ var unocss = [
460
588
  var unicorn = [
461
589
  {
462
590
  plugins: {
463
- unicorn: pluginUnicorn
591
+ unicorn: default15
464
592
  },
465
593
  rules: {
466
594
  "unicorn/no-unsafe-regex": "off",
@@ -536,11 +664,11 @@ import prettierConfig from "eslint-config-prettier";
536
664
  var prettier = [
537
665
  {
538
666
  plugins: {
539
- prettier: pluginPrettier
667
+ prettier: default16
540
668
  },
541
669
  rules: {
542
670
  ...prettierConfig.rules,
543
- ...pluginPrettier.configs.recommended.rules,
671
+ ...default16.configs.recommended.rules,
544
672
  "prettier/prettier": "warn"
545
673
  }
546
674
  }
@@ -551,7 +679,7 @@ var markdown = [
551
679
  {
552
680
  files: [GLOB_MARKDOWN],
553
681
  plugins: {
554
- markdown: pluginMarkdown
682
+ markdown: default17
555
683
  },
556
684
  processor: "markdown/markdown"
557
685
  },
@@ -565,10 +693,10 @@ var markdown = [
565
693
  }
566
694
  },
567
695
  plugins: {
568
- "@typescript-eslint": pluginTypescript
696
+ "@typescript-eslint": default20
569
697
  },
570
698
  rules: {
571
- ...pluginMarkdown.configs.recommended.overrides[1].rules,
699
+ ...default17.configs.recommended.overrides[1].rules,
572
700
  "no-undef": "off",
573
701
  "no-alert": "off",
574
702
  "no-console": "off",
@@ -592,10 +720,10 @@ var markdown = [
592
720
  var comments = [
593
721
  {
594
722
  plugins: {
595
- "eslint-comments": pluginComments
723
+ "eslint-comments": default19
596
724
  },
597
725
  rules: {
598
- ...pluginComments.configs.recommended.rules,
726
+ ...default19.configs.recommended.rules,
599
727
  "eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }]
600
728
  }
601
729
  }
@@ -616,7 +744,7 @@ var javascript = [
616
744
  sourceType: "module"
617
745
  },
618
746
  rules: {
619
- // standard v 17.0.0
747
+ // standard v17.0.0
620
748
  "accessor-pairs": ["error", { setWithoutGet: true, enforceForClassMembers: true }],
621
749
  "array-bracket-spacing": ["error", "never"],
622
750
  "arrow-spacing": ["error", { before: true, after: true }],
@@ -991,6 +1119,7 @@ var basic = [
991
1119
  ...ignores,
992
1120
  ...javascript,
993
1121
  ...jsx,
1122
+ ...node,
994
1123
  ...typescript,
995
1124
  ...imports,
996
1125
  ...unicorn,
@@ -1000,7 +1129,8 @@ var common = [
1000
1129
  ...basic,
1001
1130
  ...yml,
1002
1131
  ...jsonc,
1003
- ...jsonOrder,
1132
+ ...sortPackageJson,
1133
+ ...sortTsConfig,
1004
1134
  ...prettier,
1005
1135
  ...markdown
1006
1136
  ];
@@ -1062,31 +1192,34 @@ export {
1062
1192
  ignores,
1063
1193
  imports,
1064
1194
  javascript,
1065
- jsonOrder,
1066
1195
  jsonc,
1067
1196
  jsx,
1068
1197
  markdown,
1198
+ node,
1069
1199
  ntnyq,
1070
- parserAstro,
1071
- parserJsonc,
1072
- parserTypescript,
1073
- parserVue,
1074
- parserYml,
1075
- pluginAstro,
1076
- pluginComments,
1077
- pluginImport,
1078
- pluginJsonc,
1079
- pluginMarkdown,
1080
- pluginPrettier,
1081
- pluginReact,
1082
- pluginReactHooks,
1083
- pluginTypescript,
1084
- pluginUnicorn,
1085
- pluginUnoCSS,
1086
- pluginVue,
1087
- pluginYml,
1200
+ default5 as parserAstro,
1201
+ default4 as parserJsonc,
1202
+ default6 as parserTypescript,
1203
+ default3 as parserVue,
1204
+ default2 as parserYml,
1205
+ default11 as pluginAstro,
1206
+ default19 as pluginComments,
1207
+ default8 as pluginImport,
1208
+ default12 as pluginJsonc,
1209
+ default17 as pluginMarkdown,
1210
+ default7 as pluginNode,
1211
+ default16 as pluginPrettier,
1212
+ default13 as pluginReact,
1213
+ default18 as pluginReactHooks,
1214
+ default20 as pluginTypeScript,
1215
+ default15 as pluginUnicorn,
1216
+ default14 as pluginUnoCSS,
1217
+ default10 as pluginVue,
1218
+ default9 as pluginYml,
1088
1219
  prettier,
1089
1220
  react,
1221
+ sortPackageJson,
1222
+ sortTsConfig,
1090
1223
  typescript,
1091
1224
  unicorn,
1092
1225
  unocss,
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.19",
5
- "packageManager": "pnpm@8.7.6",
4
+ "version": "2.0.0-beta.20",
6
5
  "description": "ESLint flat config of ntnyq",
7
6
  "keywords": [
8
7
  "eslint",
@@ -35,6 +34,16 @@
35
34
  "files": [
36
35
  "dist"
37
36
  ],
37
+ "scripts": {
38
+ "build": "tsup",
39
+ "clean": "rimraf dist",
40
+ "lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs .",
41
+ "prepare": "husky install",
42
+ "release": "run-s release:check release:version",
43
+ "release:check": "run-s clean build lint typecheck",
44
+ "release:version": "bumpp && npm publish --tag next",
45
+ "typecheck": "tsc --noEmit"
46
+ },
38
47
  "publishConfig": {
39
48
  "access": "public"
40
49
  },
@@ -51,9 +60,10 @@
51
60
  "eslint-define-config": "^1.23.0",
52
61
  "eslint-plugin-astro": "^0.29.0",
53
62
  "eslint-plugin-eslint-comments": "^3.2.0",
54
- "eslint-plugin-import": "^2.28.1",
63
+ "eslint-plugin-i": "^2.28.1",
55
64
  "eslint-plugin-jsonc": "^2.9.0",
56
65
  "eslint-plugin-markdown": "^3.0.1",
66
+ "eslint-plugin-n": "^16.1.0",
57
67
  "eslint-plugin-prettier": "^5.0.0",
58
68
  "eslint-plugin-react": "^7.33.2",
59
69
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -75,7 +85,6 @@
75
85
  "husky": "^8.0.3",
76
86
  "nano-staged": "^0.8.0",
77
87
  "npm-run-all": "^4.1.5",
78
- "pnpm": "^8.7.6",
79
88
  "rimraf": "^5.0.1",
80
89
  "tsup": "^7.2.0",
81
90
  "typescript": "5.2.2"
@@ -85,15 +94,6 @@
85
94
  },
86
95
  "prettier": "@ntnyq/prettier-config",
87
96
  "nano-staged": {
88
- "*.{js,ts,json,jsonc,md,yaml,yml}": "pnpm run lint --fix"
89
- },
90
- "scripts": {
91
- "build": "tsup",
92
- "clean": "rimraf dist",
93
- "lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs .",
94
- "release": "run-s release:check release:version",
95
- "release:check": "run-s clean build lint typecheck",
96
- "release:version": "bumpp && pnpm publish --tag next",
97
- "typecheck": "tsc --noEmit"
97
+ "*.{js,ts,json,jsonc,md,yaml,yml}": "bun run lint --fix"
98
98
  }
99
- }
99
+ }