Skip to content

Commit

Permalink
address more linting files
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Oct 7, 2024
1 parent 92ea49e commit 9664125
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/astro-rss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const rssOptionsValidator = z.object({
.or(globResultValidator)
.transform((items) => {
if (!Array.isArray(items)) {
// eslint-disable-next-line
console.warn(
yellow(
'[RSS] Passing a glob result directly has been deprecated. Please migrate to the `pagesGlobToRssItems()` helper: https://docs.astro.build/en/guides/rss/',
Expand Down
1 change: 0 additions & 1 deletion packages/astro/src/content/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,6 @@ export async function renderEntry(
renderEntryImport,
});
} catch (e) {
// eslint-disable-next-line
console.error(e);
}
}
Expand Down
1 change: 0 additions & 1 deletion packages/astro/src/jsx/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ export default function astroJSX(): PluginObj {
if (t.isJSXAttribute(attr)) {
const name = jsxAttributeToString(attr);
if (name.startsWith('client:')) {
// eslint-disable-next-line
console.warn(
`You are attempting to render <${displayName} ${name} />, but ${displayName} is an Astro component. Astro components do not render in the client and should not have a hydration directive. Please use a framework component for client rendering.`,
);
Expand Down
1 change: 0 additions & 1 deletion packages/astro/src/jsx/rehype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const rehypeAnalyzeAstroMetadata: RehypePlugin = () => {
(attr) => attr.type === 'mdxJsxAttribute' && attr.name.startsWith('client:'),
) as MdxJsxAttribute | undefined;
if (clientAttribute) {
// eslint-disable-next-line
console.warn(
`You are attempting to render <${node.name!} ${
clientAttribute.name
Expand Down
1 change: 0 additions & 1 deletion packages/astro/src/runtime/server/render/astro/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ function validateComponentProps(props: any, displayName: string) {
if (props != null) {
for (const prop of Object.keys(props)) {
if (prop.startsWith('client:')) {
// eslint-disable-next-line
console.warn(
`You are attempting to render <${displayName} ${prop} />, but ${displayName} is an Astro component. Astro components do not render in the client and should not have a hydration directive. Please use a framework component for client rendering.`,
);
Expand Down

0 comments on commit 9664125

Please sign in to comment.