Type advancedConfig | basicConfig
File match .lintstagedrc .lintstagedrc.json .lintstagedrc.yaml .lintstagedrc.yml
Schema URL https://catalog.lintel.tools/schemas/schemastore/lint-staged-lintstagedrc/latest.json
Source https://www.schemastore.org/lintstagedrc.schema.json

Validate with Lintel

npx @lintel/lintel check

Any of

1. advancedConfig object
2. basicConfig object

Definitions

$schemaProperty string
linter string | array
lintersMap Record<string, string | array>

keys (String) are glob patterns, values (Array | String) are commands to execute.

globOptions object

micromatch options to customize how glob patterns match files.

matchBase boolean
Default: true
dot boolean
Default: true
advancedConfig object
$schema string
concurrent boolean

Controls if linters are run simultaneously for each glob pattern.

Default: true
chunkSize number

Max allowed chunk size based on number of files for glob pattern. This option is only applicable on Windows based systems to avoid command length limitations

min=1
globOptions object

micromatch options to customize how glob patterns match files.

2 nested properties
matchBase boolean
Default: true
dot boolean
Default: true
linters Record<string, string | array>

keys (String) are glob patterns, values (Array | String) are commands to execute.

ignore string[]

array of glob patterns to entirely ignore from any task.

Default: "['**/docs/**/*.js']"
subTaskConcurrency integer

Controls concurrency for processing chunks generated for each linter. This option is only applicable on Windows. Execution is not concurrent by default.

Default: 1
min=1
renderer enum
Default: "update"
Values: "update" "verbose"
relative boolean

If true it will give the relative path from your package.json directory to your linter arguments.

Default: false
basicConfig Record<string, string | array>
$schema string