AbsoluteJS

ESLint & Prettier

Run linting and formatting with built-in caching for fast repeat runs.

#absolute eslint

Runs ESLint across your project with caching enabled. Subsequent runs only check changed files.

BASH
# Run ESLint with caching across the whole project
absolute eslint

# Lint a specific path (no implicit '.' is appended)
absolute eslint src/backend

# Pass-through to ESLint: autofix, CI-friendly output, strictness
absolute eslint --fix
absolute eslint --quiet --max-warnings 0
absolute eslint --format json -o eslint-report.json

# Wipe the cache file (does NOT invoke ESLint)
absolute eslint --clear-cache

# Relocate the cache (useful in monorepos / CI to avoid collisions)
ABSOLUTE_ESLINT_CACHE=.cache/eslint absolute eslint
  • Uses the ESLint config from your project root (eslint.config.{js,mjs,cjs,ts,mts,cts})
  • Cache is stored by default in .absolutejs/eslint-cache
  • Override the cache location with the env var ABSOLUTE_ESLINT_CACHE
  • Wipe the cache with --clear-cache
  • Lint scope honors positional paths — without one, the CLI appends .
  • All other arguments pass through to ESLint (--fix, --quiet, --max-warnings, --format, etc.)
  • Warns when your flat config has a non-global ignores block — a common ESLint v9 footgun that silently makes lint walk node_modules

#absolute prettier

Runs Prettier with caching. Use --write to auto-fix formatting.

BASH
# Check formatting
absolute prettier

# Fix formatting
absolute prettier --write
  • Uses the Prettier config from your project root
  • Cache is stored in .absolutejs/prettier.cache.json
  • All additional arguments are passed through to Prettier