eslint
built-in 0.0% Savings
0 Commands
0 Tokens saved
2 Tests
Install
Safety checks passed
Filter definition
command = "eslint"
description = "Strip summary counts; show lint errors with file locations"
strip_ansi = true
skip = [
"^\\s*$",
"^\\s*✖",
]
[on_success]
output = "ok ✓ eslint: no issues"
[on_failure]
output = "{output}"
Examples
eslint errors show file paths and summary
~200 tokens → ~199 tokens
(1% saved)
Raw output
/Users/dev/project/src/utils.ts 10:5 warning Unexpected let, use const instead prefer-const 15:5 warning Unexpected let, use const instead prefer-const /Users/dev/project/src/api.ts 20:10 error 'x' is assigned a value but never used @typescript-eslint/no-unused-vars /Users/dev/project/src/components/Button.tsx 5:1 error 'React' is defined but never used @typescript-eslint/no-unused-vars 12:8 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 18:3 warning Unexpected let, use const instead prefer-const /Users/dev/project/src/lib/helpers.ts 3:1 warning 'path' is defined but never used @typescript-eslint/no-unused-vars 7 problems (2 errors, 5 warnings) 2 errors and 3 warnings potentially fixable with the `--fix` option.
Filtered output
/Users/dev/project/src/utils.ts 10:5 warning Unexpected let, use const instead prefer-const 15:5 warning Unexpected let, use const instead prefer-const /Users/dev/project/src/api.ts 20:10 error 'x' is assigned a value but never used @typescript-eslint/no-unused-vars /Users/dev/project/src/components/Button.tsx 5:1 error 'React' is defined but never used @typescript-eslint/no-unused-vars 12:8 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 18:3 warning Unexpected let, use const instead prefer-const /Users/dev/project/src/lib/helpers.ts 3:1 warning 'path' is defined but never used @typescript-eslint/no-unused-vars 7 problems (2 errors, 5 warnings) 2 errors and 3 warnings potentially fixable with the `--fix` option.
clean eslint run shows ok
~0 tokens → ~6 tokens
Raw output
Filtered output
ok ✓ eslint: no issues
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.Browse all filters