mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
parent
68a9a26ed9
commit
81eb175001
1 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
const JSON5 = require('json5');
|
||||
const { migrateAndValidate } = require('../../../config/migrate-validate');
|
||||
const { configFileNames } = require('../../../config/app-strings');
|
||||
const { appName, appSlug } = require('../../../config/app-strings');
|
||||
|
@ -40,7 +41,12 @@ async function validatePrs(config) {
|
|||
}
|
||||
let parsed;
|
||||
try {
|
||||
// istanbul ignore if
|
||||
if (file.endsWith('.json5')) {
|
||||
parsed = JSON5.parse(content);
|
||||
} else {
|
||||
parsed = JSON.parse(content);
|
||||
}
|
||||
} catch (err) {
|
||||
validations.push({
|
||||
file,
|
||||
|
|
Loading…
Reference in a new issue