fenge 0.9.11 → 0.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fenge",
3
- "version": "0.9.11",
3
+ "version": "0.10.0",
4
4
  "description": "A CLI tool for code quality",
5
5
  "keywords": [
6
6
  "cli",
@@ -48,12 +48,12 @@
48
48
  "lilconfig": "3.1.3",
49
49
  "lint-staged": "15.5.2",
50
50
  "ora": "8.2.0",
51
- "prettier": "3.5.3",
51
+ "prettier": "3.6.2",
52
52
  "pretty-ms": "9.2.0",
53
- "yoctocolors": "2.1.1",
54
- "@fenge/eslint-config": "0.7.9",
53
+ "yoctocolors": "2.1.2",
54
+ "@fenge/eslint-config": "0.7.10",
55
55
  "@fenge/prettier-config": "0.3.9",
56
- "@fenge/tsconfig": "0.6.1",
56
+ "@fenge/tsconfig": "0.7.0",
57
57
  "prettier-ignore": "0.4.0"
58
58
  },
59
59
  "devDependencies": {
@@ -38,7 +38,7 @@ program
38
38
  let result = await format(paths, options);
39
39
  if (result === 0) {
40
40
  result = await lint(paths, options);
41
- if (result === 0) {
41
+ if (result === 0 && (options.fix || options.update)) {
42
42
  result = await format(paths, options);
43
43
  }
44
44
  }
@@ -20,7 +20,6 @@ export async function format(
20
20
  ) {
21
21
  return execAsync(
22
22
  [
23
- // "node",
24
23
  await getPrettierPath(useDefaultConfig),
25
24
  // setup 3 ignore files
26
25
  ...[".gitignore", ".prettierignore", prettierignore]
@@ -20,7 +20,6 @@ export async function lint(
20
20
  ) {
21
21
  return execAsync(
22
22
  [
23
- // "node",
24
23
  await getEslintPath(useDefaultConfig),
25
24
  "--config",
26
25
  path.join(dir(import.meta.url), "..", "config", "eslint.config.js"),