@forge/bundler
7.0.2-next.3-experimental-bd3d8127.0.2-next.3-experimental-c6a3916
out/lint.js~
out/lint.jsModified+12−1
Index: package/out/lint.js
===================================================================
--- package/out/lint.js
+++ package/out/lint.js
@@ -17,10 +17,21 @@
fileSystemReader.recursiveReadDir('./src', exclude),
...UIKitDirectories.map((directory) => fileSystemReader.recursiveReadDir(directory, exclude))
]);
const UIKitFilesToLint = UIKitFilesByDirectory.reduce((allFiles, directoryFiles) => allFiles.concat(directoryFiles), []);
+ const ui = new cli_shared_1.CommandLineUI(() => false, undefined, undefined, undefined, () => false);
+ const createGraphQLClient = (auth) => {
+ const minimalGraphQLRunner = new cli_shared_1.MinimalGraphQLRunner(auth, graphqlGateway, undefined);
+ const graphQLRunner = new cli_shared_1.DebuggingGraphqlRunner(minimalGraphQLRunner, graphqlGateway, ui);
+ return new cli_shared_1.MutationAwareGraphQLClient(graphQLRunner);
+ };
+ const userRepository = new cli_shared_1.UserRepositoryImpl(createGraphQLClient, ui);
+ const credentialStore = (0, cli_shared_1.getCredentialStore)(ui, userRepository);
+ const authenticator = new cli_shared_1.PersonalTokenAuthenticator(credentialStore);
+ const graphqlGateway = (0, cli_shared_1.getGraphqlGateway)();
+ const graphQLClient = createGraphQLClient(authenticator);
try {
- const lintResults = await (0, lint_1.lint)([...filesToLint, ...UIKitFilesToLint], manifest, 'development', logger, statsigService);
+ const lintResults = await (0, lint_1.lint)([...filesToLint, ...UIKitFilesToLint], manifest, 'development', logger, statsigService, graphQLClient);
if (lintResults.some((result) => result.size())) {
logger.info('');
(0, lint_1.reportLintResults)(logger, lintResults);
}