UNPKG

@nju33/json-schema

Version:

[![@nju33/json-schema](https://badgen.net/npm/v/@nju33/json-schema?icon=npm)](https://www.npmjs.com/package/@nju33/json-schema)

50 lines (49 loc) 1.6 kB
{ "$schema": "http://json-schema.org/draft-07/schema", "title": "JSON schema for .lintstagedrc", "type": "object", "properties": { "concurrent": { "description": "runs linters for each glob pattern simultaneously. If you don’t want this, you can set ", "type": "boolean", "default": true }, "chunkSize": { "description": "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", "type": "number" }, "globOptions": { "description": "micromatch options to customize how glob patterns match files", "type": "object", "properties": { "matchBase": { "type": "boolean", "default": true }, "dot": { "type": "boolean", "default": true } } }, "linters": { "type": "object", "additionalProperties": { "$ref": "../alias.json#/definitions/types/stringOrStringArray" } }, "subTaskConcurrency": { "description": "Controls concurrency for processing chunks generated for each linter. This option is only applicable on Windows. Execution is not concurrent by default", "type": "number", "default": 1 }, "relative": { "description": "if true it will give the relative path from your package.json directory to your linter", "type": "boolean", "default": false } }, "additionalProperties": { "$ref": "../alias.json#/definitions/types/stringOrStringArray" } }