This directory contains JavaScript linting tools for the FastLED project, using Node.js + ESLint for fast JavaScript validation.
# JavaScript linting is included by default (fast only!)
bash lintThe fast JavaScript linter is automatically installed during project setup:
# Installs everything including fast JS linting
./installOr manually install just the JavaScript linter:
uv run ci/setup-js-linting-fast.pyThis will:
- Download Node.js binary to
.js-tools/node/ - Install ESLint to
.js-tools/node_modules/ - Create ESLint configuration in
.js-tools/.eslintrc.js - Create fast linting script
.cache/js-tools/lint-js-fast
JavaScript linting follows a "fast only" policy:
- ✅ Fast linting available: Uses Node.js + ESLint (~0.9 seconds)
⚠️ Fast linting unavailable: Skips JavaScript linting entirely- ❌ No slow fallback: Fast linting or no linting at all
The fast linter only checks for critical runtime issues:
no-debugger- Prevents debugger statements in productionno-eval- Prevents eval() security vulnerabilities
No style enforcement - focuses on critical issues only for maximum speed.
JavaScript linting is included by default in bash lint when fast linting is available.
- Fast linting: ~0.9 seconds (53x faster than previous solution)
- Total lint time: ~1.6 seconds (Python + C++ + JavaScript)