Skip to content

Commit bf0b4bf

Browse files
florian-lefebvreastrobot-houston
authored andcommitted
[ci] format
1 parent 4cd3fe4 commit bf0b4bf

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

packages/astro/src/cli/add/index.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ export async function add(names: string[], { flags }: AddOptions) {
154154
const logger = createLoggerFromFlags(flags);
155155
const integrationNames = names.map((name) => (ALIASES.has(name) ? ALIASES.get(name)! : name));
156156
const integrations = await validateIntegrations(integrationNames, flags, logger);
157-
const hasCloudflareIntegration = integrations.some((integration) => integration.id === 'cloudflare');
157+
const hasCloudflareIntegration = integrations.some(
158+
(integration) => integration.id === 'cloudflare',
159+
);
158160
let installResult = await tryToInstallIntegrations({ integrations, cwd, flags, logger });
159161
const rootPath = resolveRoot(cwd);
160162
const root = pathToFileURL(rootPath);
@@ -1066,10 +1068,13 @@ async function updateTSConfig(
10661068
// Every major framework, apart from Vue and Svelte requires different `jsxImportSource`, as such it's impossible to config
10671069
// all of them in the same `tsconfig.json`. However, Vue only need `"jsx": "preserve"` for template intellisense which
10681070
// can be compatible with some frameworks (ex: Solid)
1069-
const conflictingIntegrations: string[] = Array.from(presets.keys()).filter((config) => config !== 'vue');
1071+
const conflictingIntegrations: string[] = Array.from(presets.keys()).filter(
1072+
(config) => config !== 'vue',
1073+
);
10701074
const hasConflictingIntegrations =
10711075
integrations.filter((integration) => presets.has(integration)).length > 1 &&
1072-
integrations.filter((integration) => conflictingIntegrations.includes(integration)).length > 0;
1076+
integrations.filter((integration) => conflictingIntegrations.includes(integration)).length >
1077+
0;
10731078

10741079
if (hasConflictingIntegrations) {
10751080
logger.info(

0 commit comments

Comments
 (0)