19 lines
623 B
Plaintext
19 lines
623 B
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.SourceDescriptionsNotEmpty = void 0;
|
|
const SourceDescriptionsNotEmpty = () => {
|
|
return {
|
|
SourceDescriptions: {
|
|
enter(sourceDescriptions, { report, location }) {
|
|
if (!sourceDescriptions?.length) {
|
|
report({
|
|
message: 'The `sourceDescriptions` list must have at least one entry.',
|
|
location,
|
|
});
|
|
}
|
|
},
|
|
},
|
|
};
|
|
};
|
|
exports.SourceDescriptionsNotEmpty = SourceDescriptionsNotEmpty;
|