pare-lint

v0.24.2
io.github.Dave-London/pare-lint Checked 2 hours ago Published 3 days ago

Pare Lint ג€” Structured linting and formatting (ESLint, Prettier, Biome, Oxlint) as typed JSON.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lint ESLint Check

Runs ESLint and returns structured diagnostics (file, line, column, rule, severity, message).

ParameterTypeDescription
cachebooleanCache lint results for faster subsequent runs (maps to --cache)
compactbooleanPrefer compact output
configstringPath to ESLint configuration file (maps to --config)
fixbooleanAuto-fix problems
fixDryRunbooleanPreview fixes without writing them (maps to --fix-dry-run)
fixTypearrayTypes of fixes to apply (maps to --fix-type). Requires --fix or --fix-dry-run.
maxWarningsintegerMaximum number of warnings before failing (maps to --max-warnings). Use -1 for no limit.
noIgnorebooleanDisable ignore patterns to lint normally-ignored files (maps to --no-ignore)
pathstringProject root path
patternsarrayFile patterns to lint (default: ['.'])
quietbooleanReport errors only, suppress warnings (maps to --quiet)
rulearrayAd-hoc rule overrides, e.g. ['no-console: error'] (maps to --rule)

format-check Prettier Check

Checks if files are formatted and returns a structured list of files needing formatting.

ParameterTypeDescription
cachebooleanCache formatted files for faster subsequent checks (maps to --cache)
compactbooleanPrefer compact output
configstringPath to a Prettier configuration file (maps to --config)
ignorePathstringPath to a custom ignore file (maps to --ignore-path)
ignoreUnknownbooleanIgnore files that cannot be parsed (maps to --ignore-unknown)
logLevelstringLog level to control output verbosity
noConfigbooleanDo not look for a configuration file (maps to --no-config)
parserstringForce a specific parser for ambiguous file types (maps to --parser)
pathstringProject root path
patternsarrayFile patterns to check (default: ['.'])
printWidthintegerThe line length where Prettier will try to wrap
singleQuotebooleanUse single quotes instead of double quotes where possible
tabWidthintegerNumber of spaces per indentation level (maps to --tab-width)
trailingCommastringPrint trailing commas wherever possible

prettier-format Prettier Format

Formats files with Prettier (--write) and returns a structured list of changed files.

ParameterTypeDescription
cachebooleanCache formatted files for faster subsequent runs (maps to --cache)
compactbooleanPrefer compact output
configstringPath to a Prettier configuration file (maps to --config)
endOfLinestringLine ending style override
ignoreUnknownbooleanIgnore files that cannot be parsed (maps to --ignore-unknown)
logLevelstringLog level to control output verbosity
noConfigbooleanDo not look for a configuration file (maps to --no-config)
pathstringProject root path
patternsarrayFile patterns to format (default: ['.'])
printWidthintegerThe line length where Prettier will try to wrap
singleQuotebooleanUse single quotes instead of double quotes where possible
tabWidthintegerNumber of spaces per indentation level (maps to --tab-width)
trailingCommastringPrint trailing commas wherever possible

biome-check Biome Check

Runs Biome check (lint + format) and returns structured diagnostics (file, line, rule, severity, message).

ParameterTypeDescription
applybooleanApply safe fixes automatically (maps to --apply)
applyUnsafebooleanApply safe and unsafe fixes automatically (maps to --apply-unsafe)
changedbooleanOnly check VCS-changed files (maps to --changed)
compactbooleanPrefer compact output
configPathstringPath to Biome configuration file (maps to --config-path)
diagnosticLevelstringMinimum diagnostic level to report
formatterEnabledbooleanEnable or disable the formatter (maps to --formatter-enabled)
linterEnabledbooleanEnable or disable the linter (maps to --linter-enabled)
maxDiagnosticsintegerMaximum number of diagnostics to display (maps to --max-diagnostics)
pathstringProject root path
patternsarrayFile patterns to check (default: ['.'])
sincestringOnly check files changed since this git ref (maps to --since)
skiparrayRules to skip (maps to --skip)
stagedbooleanOnly check staged files (maps to --staged)

biome-format Biome Format

Formats files with Biome (format --write) and returns a structured list of changed files.

ParameterTypeDescription
changedbooleanOnly format VCS-changed files (maps to --changed)
compactbooleanPrefer compact output
configPathstringPath to Biome configuration file (maps to --config-path)
indentStylestringIndent style override (tab or space)
lineEndingstringLine ending style
lineWidthnumberLine width override
pathstringProject root path
patternsarrayFile patterns to format (default: ['.'])
quoteStylestringQuote style override (single or double)
semicolonsstringSemicolon style (always or asNeeded)
sincestringOnly format files changed since this git ref (maps to --since)
stagedbooleanOnly format staged files (maps to --staged)

stylelint Stylelint Check

Runs Stylelint and returns structured diagnostics (file, line, column, rule, severity, message).

ParameterTypeDescription
allowEmptyInputbooleanPrevent errors when no files match the pattern (maps to --allow-empty-input)
cachebooleanCache lint results for faster subsequent runs (maps to --cache)
compactbooleanPrefer compact output
configstringPath to Stylelint configuration file (maps to --config)
fixbooleanAuto-fix problems
ignoreDisablesbooleanIgnore stylelint-disable comments and enforce all rules (maps to --ignore-disables)
ignorePathstringPath to a custom ignore file (maps to --ignore-path)
maxWarningsintegerMaximum number of warnings before failing (maps to --max-warnings)
pathstringProject root path
patternsarrayFile patterns to lint (default: ['.'])
quietbooleanReport errors only, suppress warnings (maps to --quiet)
reportNeedlessDisablesbooleanReport unnecessary stylelint-disable comments (maps to --report-needless-disables)

oxlint Oxlint Check

Runs Oxlint and returns structured diagnostics (file, line, column, rule, severity, message).

ParameterTypeDescription
allowarrayRules to allow (disable) (maps to -A)
compactbooleanPrefer compact output
configstringPath to Oxlint configuration file (maps to --config)
denyarrayRules to deny (error level) (maps to -D)
fixbooleanAuto-fix problems (maps to --fix)
fixSuggestionsbooleanApply suggestion-level fixes (maps to --fix-suggestions)
ignorePathstringPath to an alternate ignore file (maps to --ignore-path)
noIgnorebooleanDisable ignore patterns (maps to --no-ignore)
pathstringProject root path
patternsarrayFile patterns to lint (default: ['.'])
pluginsarrayPlugin categories to enable (e.g., 'import', 'jest', 'jsx-a11y') (maps to --<plugin>-plugin)
quietbooleanReport errors only, suppress warnings (maps to --quiet)
threadsnumberNumber of threads to use for parallel linting
tsconfigstringPath to tsconfig.json for type-aware rules (maps to --tsconfig)
warnarrayRules to warn on (maps to -W)

shellcheck ShellCheck

Runs ShellCheck (shell script linter) and returns structured diagnostics (file, line, column, rule, severity, message).

ParameterTypeDescription
checkSourcedbooleanCheck sourced/included files (maps to --check-sourced)
compactbooleanPrefer compact output
enablearrayOptional checks to enable, e.g. ['add-default-case', 'require-variable-braces'] (maps to --enable)
excludearrayCheck codes to exclude, e.g. ['SC2086', 'SC2034'] (maps to --exclude)
externalSourcesbooleanAllow following source statements to external files (maps to --external-sources)
includearrayOnly report these check codes (maps to --include)
norcbooleanDisable .shellcheckrc config file lookup (maps to --norc)
pathstringProject root path
patternsarrayFile paths or glob patterns to check (default: ['.']). Directories are automatically expanded to include *.sh, *.bash, *.zsh, *.ksh, *.dash files.
rcfilestringPath to a custom ShellCheck config file (maps to --rcfile)
severitystringMinimum severity level to report (default: style)
shellstringShell dialect to assume (maps to --shell)
sourcePathstringPath to resolve source commands (maps to --source-path)

hadolint Hadolint

Runs Hadolint (Dockerfile linter) and returns structured diagnostics (file, line, rule, severity, message).

ParameterTypeDescription
compactbooleanPrefer compact output
configstringPath to Hadolint configuration file (maps to --config)
errorRulesarrayRule codes to treat as errors (maps to --error)
failureThresholdstringMinimum severity to cause a non-zero exit code (maps to --failure-threshold)
ignoreRulesarrayRule codes to ignore (e.g., ['DL3008', 'DL3013'])
infoRulesarrayRule codes to treat as info (maps to --info)
noFailbooleanAlways exit with 0 for informational-only runs (maps to --no-fail)
pathstringProject root path
patternsarrayDockerfile paths to check (default: ['Dockerfile'])
requireLabelarrayRequired labels in Dockerfiles, e.g. ['maintainer:text'] (maps to --require-label)
shellstringDefault shell for RUN instruction linting, e.g. '/bin/bash' (maps to --shell)
strictLabelsbooleanEnforce strict label schema (maps to --strict-labels)
trustedRegistriesarrayTrusted Docker registries (e.g., ['docker.io', 'ghcr.io'])
verbosebooleanEnable verbose output (maps to --verbose)
warningRulesarrayRule codes to treat as warnings (maps to --warning)