chore: add warning when running integrations
MODIFY
internal/core/server/commands/check.ts
internal/core/server/commands/check.ts
@@ -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();

chore: add warning when running integrations (#1584)