build: skip license check on json files (#11937)

This commit is contained in:
Alex Rudenko 2024-02-19 13:19:09 +01:00 committed by GitHub
parent 84ad6de2e6
commit 8dfe9d75ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,6 +65,10 @@ const enforceLicenseRule = createRule<[], 'licenseRule'>({
return {
Program(node) {
if (context.filename.endsWith('.json')) {
return;
}
if (
header &&
(header.value.includes('@license') ||