From 5e59b33a2b22c4594525366038dca06de24879e2 Mon Sep 17 00:00:00 2001 From: Matthew Mellor Date: Fri, 27 Feb 2026 22:17:20 -0600 Subject: [PATCH] feat(javascript): add JavaScript/TypeScript hooks and config Add commented-out ESLint and Prettier pre-commit hooks. Add javascript to .devrail.yml language list (commented out). Co-Authored-By: Claude Opus 4.6 --- .devrail.yml | 1 + .pre-commit-config.yaml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.devrail.yml b/.devrail.yml index e890c05..5dbbc0a 100644 --- a/.devrail.yml +++ b/.devrail.yml @@ -8,6 +8,7 @@ languages: # - ansible # - ruby # - go + # - javascript # fail_fast: false # default: false (run-all-report-all) # log_format: json # default: json | options: json, human diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5ea7bdd..edb14c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -54,6 +54,23 @@ repos: # hooks: # - id: golangci-lint-full + # --- JavaScript/TypeScript (uncomment if languages includes javascript) --- + # Linting with ESLint v9 (flat config) + # - repo: https://github.com/pre-commit/mirrors-eslint + # rev: v9.27.0 + # hooks: + # - id: eslint + # additional_dependencies: + # - eslint + # - "@eslint/js" + # - typescript-eslint + # - typescript + # Formatting with Prettier + # - repo: https://github.com/pre-commit/mirrors-prettier + # rev: v4.0.0-alpha.8 + # hooks: + # - id: prettier + # --- Secret Detection --- # Detects hardcoded secrets, API keys, and credentials in code - repo: https://github.com/gitleaks/gitleaks