Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
chore: add warning when running integrations (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Jun 22, 2021
1 parent c1d65c3 commit e32182c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions internal/core/server/commands/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,23 @@ export default createServerCommand<Flags>({
suppressionExplanation: cachedSuppressionExplanation,
args,
};
const project = await req.server.projectManager.findProject(
req.client.flags.cwd,
);
if (project) {
if (project.config.integrations.eslint.enabled) {
reporter.warn(
markup`ESlint integration is enabled. Beware that not all the settings are supported. To turn it off run`,
);
reporter.command("rome config disable integrations.eslint");
}
if (project.config.integrations.prettier.enabled) {
reporter.warn(
markup`Prettier integration is enabled. Beware that not all the settings are supported. To turn it off run`,
);
reporter.command("rome config disable integrations.prettier");
}
}
const linter = new Checker(req, opts);
if (req.query.requestFlags.watch) {
await linter.runWatch();
Expand Down

0 comments on commit e32182c

Please sign in to comment.