85 lines
2.1 KiB
JSON
Executable file
85 lines
2.1 KiB
JSON
Executable file
{
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"title": "ESLint Target",
|
|
"description": "ESLint target options for Build Facade.",
|
|
"type": "object",
|
|
"properties": {
|
|
"eslintConfig": {
|
|
"type": "string",
|
|
"description": "The name of the ESLint configuration file."
|
|
},
|
|
"fix": {
|
|
"type": "boolean",
|
|
"description": "Fixes linting errors (may overwrite linted files).",
|
|
"default": false
|
|
},
|
|
"cache": {
|
|
"type": "boolean",
|
|
"description": "Only check changed files.",
|
|
"default": false
|
|
},
|
|
"cacheLocation": {
|
|
"type": "string",
|
|
"description": "Path to the cache file or directory."
|
|
},
|
|
"force": {
|
|
"type": "boolean",
|
|
"description": "Succeeds even if there was linting errors.",
|
|
"default": false
|
|
},
|
|
"quiet": {
|
|
"type": "boolean",
|
|
"description": "Report errors only.",
|
|
"default": false
|
|
},
|
|
"maxWarnings": {
|
|
"type": "number",
|
|
"description": "Number of warnings to trigger nonzero exit code.",
|
|
"default": -1
|
|
},
|
|
"silent": {
|
|
"type": "boolean",
|
|
"description": "Hide output text.",
|
|
"default": false
|
|
},
|
|
"lintFilePatterns": {
|
|
"type": "array",
|
|
"description": "One or more files/dirs/globs to pass directly to ESLint's lintFiles() method.",
|
|
"default": [],
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"format": {
|
|
"type": "string",
|
|
"description": "ESLint Output formatter (https://eslint.org/docs/user-guide/formatters).",
|
|
"default": "stylish",
|
|
"anyOf": [
|
|
{
|
|
"enum": [
|
|
"stylish",
|
|
"compact",
|
|
"codeframe",
|
|
"unix",
|
|
"visualstudio",
|
|
"table",
|
|
"checkstyle",
|
|
"html",
|
|
"jslint-xml",
|
|
"json",
|
|
"json-with-metadata",
|
|
"junit",
|
|
"tap"
|
|
]
|
|
},
|
|
{ "minLength": 1 }
|
|
]
|
|
},
|
|
"ignorePath": {
|
|
"type": "string",
|
|
"description": "The path of the .eslintignore file."
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["lintFilePatterns"]
|
|
}
|