Skip to content

Commit 47fbf81

Browse files
committed
PR Feedback: introduce lint-cmd.schema.json
1 parent b0b66da commit 47fbf81

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

‎core-build/gulp-core-build-typescript/src/LintCmdTask.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class LintCmdTask extends RSCTask<ILintCmdTaskConfig> {
3434
}
3535

3636
public loadSchema(): Object {
37-
return JsonFile.load(path.resolve(__dirname, 'schemas', 'tslint-cmd.schema.json'));
37+
return JsonFile.load(path.resolve(__dirname, 'schemas', 'lint-cmd.schema.json'));
3838
}
3939

4040
public executeTask(): Promise<void> {
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
4+
"title": "Lint Task configuration",
5+
"description": "Defines configuration options for the lint task which supports both ESLint or TSLint",
6+
7+
"type": "object",
8+
"additionalProperties": false,
9+
"properties": {
10+
"$schema": {
11+
"description": "Part of the JSON Schema standard, this optional keyword declares the URL of the schema that the file conforms to. Editors may download the schema and use it to perform syntax highlighting.",
12+
"type": "string"
13+
},
14+
"buildDirectory": {
15+
"description": "The directory in which TSLint or ESLint should be invoked.",
16+
"type": "string"
17+
},
18+
"displayAsError": {
19+
"description": "If true, displays warnings as errors. Defaults to false.",
20+
"type": "boolean"
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)