Skip to content

Commit 1072c76

Browse files
ematipicoastrobot-houston
authored andcommitted
[ci] format
1 parent ea603ae commit 1072c76

4 files changed

Lines changed: 28 additions & 12 deletions

File tree

packages/integrations/preact/src/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,16 @@ export default function ({ include, exclude, compat, devtools }: Options = {}):
7373
},
7474
'astro:config:done': ({ logger, config }) => {
7575
const knownJsxRenderers = ['@astrojs/react', '@astrojs/preact', '@astrojs/solid-js'];
76-
const enabledKnownJsxRenderers = config.integrations.filter((renderer) => knownJsxRenderers.includes(renderer.name));
76+
const enabledKnownJsxRenderers = config.integrations.filter((renderer) =>
77+
knownJsxRenderers.includes(renderer.name),
78+
);
7779

7880
if (enabledKnownJsxRenderers.length > 1 && !include && !exclude) {
79-
logger.warn('More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/preact/#combining-multiple-jsx-frameworks for more information.');
81+
logger.warn(
82+
'More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/preact/#combining-multiple-jsx-frameworks for more information.',
83+
);
8084
}
81-
}
85+
},
8286
},
8387
};
8488
}

packages/integrations/react/src/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,16 @@ export default function ({
102102
},
103103
'astro:config:done': ({ logger, config }) => {
104104
const knownJsxRenderers = ['@astrojs/react', '@astrojs/preact', '@astrojs/solid-js'];
105-
const enabledKnownJsxRenderers = config.integrations.filter((renderer) => knownJsxRenderers.includes(renderer.name));
105+
const enabledKnownJsxRenderers = config.integrations.filter((renderer) =>
106+
knownJsxRenderers.includes(renderer.name),
107+
);
106108

107109
if (enabledKnownJsxRenderers.length > 1 && !include && !exclude) {
108-
logger.warn('More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/react/#combining-multiple-jsx-frameworks for more information.');
110+
logger.warn(
111+
'More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/react/#combining-multiple-jsx-frameworks for more information.',
112+
);
109113
}
110-
}
114+
},
111115
},
112116
};
113117
}

packages/integrations/solid/src/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,16 @@ export default function (options: Options = {}): AstroIntegration {
110110
},
111111
'astro:config:done': ({ logger, config }) => {
112112
const knownJsxRenderers = ['@astrojs/react', '@astrojs/preact', '@astrojs/solid-js'];
113-
const enabledKnownJsxRenderers = config.integrations.filter((renderer) => knownJsxRenderers.includes(renderer.name));
113+
const enabledKnownJsxRenderers = config.integrations.filter((renderer) =>
114+
knownJsxRenderers.includes(renderer.name),
115+
);
114116

115117
if (enabledKnownJsxRenderers.length > 1 && !options.include && !options.exclude) {
116-
logger.warn('More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/solid-js/#combining-multiple-jsx-frameworks for more information.');
118+
logger.warn(
119+
'More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/solid-js/#combining-multiple-jsx-frameworks for more information.',
120+
);
117121
}
118-
}
122+
},
119123
},
120124
};
121125
}

packages/integrations/vue/src/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,17 @@ export default function (options?: Options): AstroIntegration {
162162
if (!options?.jsx) return;
163163

164164
const knownJsxRenderers = ['@astrojs/react', '@astrojs/preact', '@astrojs/solid-js'];
165-
const enabledKnownJsxRenderers = config.integrations.filter((renderer) => knownJsxRenderers.includes(renderer.name));
165+
const enabledKnownJsxRenderers = config.integrations.filter((renderer) =>
166+
knownJsxRenderers.includes(renderer.name),
167+
);
166168

167169
// This error can only be thrown from here since Vue is an optional JSX renderer
168170
if (enabledKnownJsxRenderers.length > 1 && !options?.include && !options?.exclude) {
169-
logger.warn('More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/solid-js/#combining-multiple-jsx-frameworks for more information.');
171+
logger.warn(
172+
'More than one JSX renderer is enabled. This will lead to unexpected behavior unless you set the `include` or `exclude` option. See https://docs.astro.build/en/guides/integrations-guide/solid-js/#combining-multiple-jsx-frameworks for more information.',
173+
);
170174
}
171-
}
175+
},
172176
},
173177
};
174178
}

0 commit comments

Comments
 (0)