@zairakai/js-dev-tools 3.19.0 → 3.21.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.
Files changed (48) hide show
  1. package/.editorconfig +6 -72
  2. package/.gitlab/ci/parts/base.yml +95 -0
  3. package/.gitlab/ci/parts/publish.yml +156 -0
  4. package/.gitlab/ci/parts/quality.yml +161 -0
  5. package/.gitlab/ci/parts/security.yml +40 -0
  6. package/.gitlab/ci/parts/updates.yml +60 -0
  7. package/.gitlab/ci/pipeline-js-app.yml +19 -38
  8. package/.gitlab/ci/pipeline-js-package.yml +23 -528
  9. package/README.md +51 -6
  10. package/config/.markdownlintignore +9 -1
  11. package/config/.prettierignore +8 -0
  12. package/config/.stylelintignore +7 -0
  13. package/config/eslint.config.js +7 -1
  14. package/config/knip.config.js +2 -2
  15. package/package.json +33 -29
  16. package/scripts/build.sh +28 -28
  17. package/scripts/ci-quality.sh +6 -6
  18. package/scripts/config.sh +164 -148
  19. package/scripts/doctor.sh +12 -12
  20. package/scripts/eslint-fix.sh +8 -8
  21. package/scripts/eslint.sh +15 -15
  22. package/scripts/install-bats.sh +143 -146
  23. package/scripts/install-hooks.sh +108 -111
  24. package/scripts/install-markdownlint.sh +4 -4
  25. package/scripts/install-shellcheck.sh +135 -138
  26. package/scripts/knip.sh +7 -7
  27. package/scripts/markdownlint.sh +38 -38
  28. package/scripts/outdated.sh +30 -29
  29. package/scripts/prettier-fix.sh +13 -13
  30. package/scripts/prettier.sh +13 -13
  31. package/scripts/setup-project.sh +691 -629
  32. package/scripts/stylelint-fix.sh +17 -17
  33. package/scripts/stylelint.sh +18 -18
  34. package/scripts/test.sh +13 -11
  35. package/scripts/typecheck.sh +11 -11
  36. package/scripts/update-dependencies.mjs +68 -68
  37. package/scripts/validate-shellcheck.sh +18 -18
  38. package/stubs/githooks/commit-msg +18 -18
  39. package/stubs/githooks/pre-commit +19 -19
  40. package/stubs/githooks/pre-push +18 -18
  41. package/stubs/githooks/prepare-commit-msg +6 -6
  42. package/stubs/gitlab-ci/gitlab-ci.yml.stub +1 -1
  43. package/stubs/governance/CONTRIBUTING.md.stub +5 -3
  44. package/stubs/quality/eslint.config.js.stub +1 -1
  45. package/stubs/quality/knip.config.js.stub +1 -1
  46. package/stubs/style/prettier.config.js.stub +3 -3
  47. package/stubs/style/stylelint.config.js.stub +1 -1
  48. package/stubs/testing/vitest.config.js.stub +1 -1
@@ -8,11 +8,11 @@ maybe_dockerize "$0" "$@"
8
8
 
9
9
  EXTRA_IGNORES=()
10
10
  while [[ $# -gt 0 ]]; do
11
- case "$1" in
12
- --ignore) EXTRA_IGNORES+=("$2"); shift 2 ;;
13
- --ignore=*) EXTRA_IGNORES+=("${1#--ignore=}"); shift ;;
14
- *) shift ;;
15
- esac
11
+ case "$1" in
12
+ --ignore) EXTRA_IGNORES+=("$2"); shift 2 ;;
13
+ --ignore=*) EXTRA_IGNORES+=("${1#--ignore=}"); shift ;;
14
+ *) shift ;;
15
+ esac
16
16
  done
17
17
 
18
18
  log_header "Prettier Check"
@@ -20,30 +20,30 @@ log_header "Prettier Check"
20
20
  ensure_bin "$PRETTIER_BIN" "prettier" || exit 1
21
21
 
22
22
  if [[ -n "$PRETTIER_CONFIG" ]]; then
23
- log_step "Using configuration: ${PRETTIER_CONFIG#"$PROJECT_ROOT"/}"
23
+ log_step "Using configuration: ${PRETTIER_CONFIG#"$PROJECT_ROOT"/}"
24
24
  fi
25
25
 
26
26
  PRETTIER_ARGS=(--check)
27
27
 
28
28
  if [[ -n "$PRETTIER_CONFIG" ]] && [[ "$PRETTIER_CONFIG" != "${PROJECT_ROOT}/prettier.config.js" ]]; then
29
- PRETTIER_ARGS+=(--config "$PRETTIER_CONFIG")
29
+ PRETTIER_ARGS+=(--config "$PRETTIER_CONFIG")
30
30
  fi
31
31
 
32
32
  if [[ -n "$PRETTIER_IGNORE" ]]; then
33
- PRETTIER_ARGS+=(--ignore-path "$PRETTIER_IGNORE")
33
+ PRETTIER_ARGS+=(--ignore-path "$PRETTIER_IGNORE")
34
34
  fi
35
35
 
36
36
  # Also respect .gitignore if present
37
37
  if [[ -f "${PROJECT_ROOT}/.gitignore" ]]; then
38
- PRETTIER_ARGS+=(--ignore-path "${PROJECT_ROOT}/.gitignore")
38
+ PRETTIER_ARGS+=(--ignore-path "${PROJECT_ROOT}/.gitignore")
39
39
  fi
40
40
 
41
41
  # Extra ignores passed via --ignore
42
42
  if [[ ${#EXTRA_IGNORES[@]} -gt 0 ]]; then
43
- _TMP_IGNORE=$(mktemp)
44
- trap 'rm -f "$_TMP_IGNORE"' EXIT
45
- printf '%s\n' "${EXTRA_IGNORES[@]}" > "$_TMP_IGNORE"
46
- PRETTIER_ARGS+=(--ignore-path "$_TMP_IGNORE")
43
+ _TMP_IGNORE=$(mktemp)
44
+ trap 'rm -f "$_TMP_IGNORE"' EXIT
45
+ printf '%s\n' "${EXTRA_IGNORES[@]}" > "$_TMP_IGNORE"
46
+ PRETTIER_ARGS+=(--ignore-path "$_TMP_IGNORE")
47
47
  fi
48
48
 
49
49
  # Prettier checks all supported files from project root