@ivanmaxlogiudice/eslint-config 3.0.0-beta.4 → 3.0.0-beta.6

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/cli.js CHANGED
@@ -11,8 +11,8 @@ import c from "picocolors";
11
11
  // package.json
12
12
  var package_default = {
13
13
  name: "@ivanmaxlogiudice/eslint-config",
14
- version: "3.0.0-beta.4",
15
- packageManager: "bun@1.1.24",
14
+ version: "3.0.0-beta.6",
15
+ packageManager: "bun@1.1.25",
16
16
  description: "Personal ESLint config",
17
17
  type: "module",
18
18
  keywords: ["eslint-config"],
@@ -43,7 +43,7 @@ var package_default = {
43
43
  dev: "config-inspector --config eslint.config.ts",
44
44
  build: "bun run typegen && tsup --format esm --clean --dts",
45
45
  test: "vitest",
46
- lint: "eslint . --fix",
46
+ lint: "eslint --flag unstable_ts_config --fix .",
47
47
  typegen: "bun scripts/typegen.ts",
48
48
  prepack: "bun run build",
49
49
  release: "bumpp && npm publish",
@@ -84,48 +84,56 @@ var package_default = {
84
84
  },
85
85
  dependencies: {
86
86
  "@clack/prompts": "^0.7.0",
87
- "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
87
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
88
88
  "@ivanmaxlogiudice/gitignore": "^0.0.2",
89
- "@stylistic/eslint-plugin": "^2.6.2",
90
- "@typescript-eslint/eslint-plugin": "^8.1.0",
91
- "@typescript-eslint/parser": "^8.1.0",
92
- "@vitest/eslint-plugin": "^1.0.2",
93
- "eslint-plugin-antfu": "^2.3.5",
89
+ "@stylistic/eslint-plugin": "^2.6.4",
90
+ "@typescript-eslint/eslint-plugin": "^8.2.0",
91
+ "@typescript-eslint/parser": "^8.2.0",
92
+ "@vitest/eslint-plugin": "^1.0.3",
93
+ "eslint-plugin-antfu": "^2.3.6",
94
94
  "eslint-plugin-import-x": "^3.1.0",
95
95
  "eslint-plugin-jsdoc": "^50.2.2",
96
96
  "eslint-plugin-jsonc": "^2.16.0",
97
97
  "eslint-plugin-n": "^17.10.2",
98
- "eslint-plugin-no-only-tests": "^3.1.0",
99
- "eslint-plugin-perfectionist": "^3.1.3",
98
+ "eslint-plugin-no-only-tests": "^3.3.0",
99
+ "eslint-plugin-perfectionist": "^3.2.0",
100
100
  "eslint-plugin-unicorn": "^55.0.0",
101
101
  "eslint-plugin-unused-imports": "^4.1.3",
102
102
  globals: "^15.9.0",
103
103
  "jsonc-eslint-parser": "^2.4.0",
104
+ "local-pkg": "^0.5.0",
104
105
  picocolors: "^1.0.1",
105
106
  yargs: "^17.7.2"
106
107
  },
107
108
  devDependencies: {
108
- "@eslint/config-inspector": "^0.5.2",
109
- "@stylistic/eslint-plugin-migrate": "^2.6.2",
109
+ "@eslint/config-inspector": "^0.5.4",
110
+ "@stylistic/eslint-plugin-migrate": "^2.6.4",
110
111
  "@types/eslint": "^9.6.0",
111
- "@types/node": "^22.3.0",
112
+ "@types/node": "^22.5.0",
112
113
  "@types/yargs": "^17.0.33",
113
- "@unocss/eslint-plugin": "^0.62.1",
114
- bumpp: "^9.5.1",
115
- "bun-types": "^1.1.24",
116
- "bundle-require": "^5.0.0",
114
+ "@unocss/eslint-plugin": "^0.62.2",
115
+ bumpp: "^9.5.2",
116
+ "bun-types": "^1.1.25",
117
117
  eslint: "^9.9.0",
118
118
  "eslint-plugin-markdown": "^5.1.0",
119
119
  "eslint-plugin-regexp": "^2.6.0",
120
120
  "eslint-plugin-vue": "^9.27.0",
121
121
  "eslint-plugin-yml": "^1.14.0",
122
- "eslint-typegen": "^0.3.0",
122
+ "eslint-typegen": "^0.3.1",
123
+ "lint-staged": "^15.2.9",
124
+ "simple-git-hooks": "^2.11.1",
123
125
  tsup: "^8.2.4",
124
126
  typescript: "^5.5.4",
125
127
  unbuild: "^2.0.0",
126
128
  vitest: "^2.0.5",
127
129
  "vue-eslint-parser": "^9.4.3",
128
130
  "yaml-eslint-parser": "^1.2.3"
131
+ },
132
+ "simple-git-hooks": {
133
+ "pre-commit": "bunx lint-staged"
134
+ },
135
+ "lint-staged": {
136
+ "*": "eslint --flag unstable_ts_config --fix"
129
137
  }
130
138
  };
131
139
 
@@ -351,15 +359,12 @@ async function run(options = {}) {
351
359
  };
352
360
  if (!argSkipPrompt) {
353
361
  result = await p4.group({
354
- extra: ({ results }) => {
355
- const isArgExtraValid = argExtra?.length && !argExtra.filter((element) => !extra.includes(element)).length;
356
- if (!results.uncommittedConfirmed || isArgExtraValid)
357
- return;
358
- const message = !isArgExtraValid && argExtra ? `"${argExtra}" isn't a valid extra util. Please choose from below: ` : "Select a extra utils:";
359
- return p4.multiselect({
360
- message: c5.reset(message),
361
- options: extraOptions,
362
- required: false
362
+ uncommittedConfirmed: () => {
363
+ if (argSkipPrompt || isGitClean())
364
+ return Promise.resolve(true);
365
+ return p4.confirm({
366
+ initialValue: false,
367
+ message: "There are uncommitted changes in the current repository, are you sure to continue?"
363
368
  });
364
369
  },
365
370
  frameworks: ({ results }) => {
@@ -373,12 +378,15 @@ async function run(options = {}) {
373
378
  required: false
374
379
  });
375
380
  },
376
- uncommittedConfirmed: () => {
377
- if (argSkipPrompt || isGitClean())
378
- return Promise.resolve(true);
379
- return p4.confirm({
380
- initialValue: false,
381
- message: "There are uncommitted changes in the current repository, are you sure to continue?"
381
+ extra: ({ results }) => {
382
+ const isArgExtraValid = argExtra?.length && !argExtra.filter((element) => !extra.includes(element)).length;
383
+ if (!results.uncommittedConfirmed || isArgExtraValid)
384
+ return;
385
+ const message = !isArgExtraValid && argExtra ? `"${argExtra}" isn't a valid extra util. Please choose from below: ` : "Select a extra utils:";
386
+ return p4.multiselect({
387
+ message: c5.reset(message),
388
+ options: extraOptions,
389
+ required: false
382
390
  });
383
391
  },
384
392
  updateVscodeSettings: ({ results }) => {