persona-community-5/.pnpm-store/v3/files/d4/009dd40d4b2fd3a5bc3d75cde8c02bf53395e12b8499df9bf1739120eb939030b0f64aa58c09c4ebc6b07bd24e2b3d8d09da84bc26afddb716dabb27bb2957
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

28 lines
849 B
Plaintext

import { readFileSync } from 'fs';
import { join as pathJoin, resolve as pathResolve } from 'path';
import { lintDocument } from '../../lint';
import { BaseResolver } from '../../resolve';
import { parseYamlToDocument, makeConfigForRuleset } from '../utils';
import type { StyleguideConfig } from '../../config';
export const name = 'Validate with no rules';
export const count = 10;
const rebillyDefinitionRef = pathResolve(pathJoin(__dirname, 'rebilly.yaml'));
const rebillyDocument = parseYamlToDocument(
readFileSync(rebillyDefinitionRef, 'utf-8'),
rebillyDefinitionRef
);
let config: StyleguideConfig;
export async function setupAsync() {
config = await makeConfigForRuleset({});
}
export function measureAsync() {
return lintDocument({
externalRefResolver: new BaseResolver(),
document: rebillyDocument,
config,
});
}