From 34761b9a87201f583cfde0005a86c687251fb4cf Mon Sep 17 00:00:00 2001 From: Mark Pearce Date: Thu, 13 May 2021 13:03:26 -0300 Subject: [PATCH 1/2] Allow string diagnostic codes in bsconfig when specifying diagnostic filters by paths --- bsconfig.schema.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bsconfig.schema.json b/bsconfig.schema.json index e57651c54..1e1ec6d34 100644 --- a/bsconfig.schema.json +++ b/bsconfig.schema.json @@ -167,6 +167,10 @@ { "type": "number", "description": "A code of diagnostics that should be filtered out from the files matched in 'src'" + }, + { + "type": "string", + "description": "A file path relative to rootDir, an absolute path, or a file glob pointing to file(s) you wish to filter diagnostics from." } ] } From aff5084ed55601446853cba776104119957fb9ea Mon Sep 17 00:00:00 2001 From: Mark Pearce Date: Thu, 13 May 2021 13:09:00 -0300 Subject: [PATCH 2/2] Cleaner representation of actual codes types --- bsconfig.schema.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bsconfig.schema.json b/bsconfig.schema.json index 1e1ec6d34..41f659abe 100644 --- a/bsconfig.schema.json +++ b/bsconfig.schema.json @@ -165,12 +165,8 @@ "items": { "anyOf": [ { - "type": "number", + "type": ["number", "string"], "description": "A code of diagnostics that should be filtered out from the files matched in 'src'" - }, - { - "type": "string", - "description": "A file path relative to rootDir, an absolute path, or a file glob pointing to file(s) you wish to filter diagnostics from." } ] }