mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Suppress eslint warnings (#4953)
This commit is contained in:
parent
953ddf1194
commit
a59731995b
3 changed files with 14 additions and 3 deletions
5
.changeset/tough-turkeys-teach.md
Normal file
5
.changeset/tough-turkeys-teach.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/mdx': patch
|
||||
---
|
||||
|
||||
Log markdown hints with console.info
|
|
@ -32,5 +32,11 @@ module.exports = {
|
|||
'no-console': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['packages/integrations/**/*.ts'],
|
||||
rules: {
|
||||
'no-console': ['error', { allow: ['warn', 'error', 'info', 'debug'] }],
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
@ -50,15 +50,15 @@ export default function mdx(mdxOptions: MdxOptions = {}): AstroIntegration {
|
|||
mdxOptions.extendPlugins === 'markdown' &&
|
||||
(config.markdown.rehypePlugins?.length || config.markdown.remarkPlugins?.length)
|
||||
) {
|
||||
console.log(
|
||||
console.info(
|
||||
blue(`[MDX] Now inheriting remark and rehype plugins from "markdown" config.`)
|
||||
);
|
||||
console.log(
|
||||
console.info(
|
||||
`If you applied a plugin to both your Markdown and MDX configs, we suggest ${bold(
|
||||
'removing the duplicate MDX entry.'
|
||||
)}`
|
||||
);
|
||||
console.log(`See "extendPlugins" option to configure this behavior.`);
|
||||
console.info(`See "extendPlugins" option to configure this behavior.`);
|
||||
}
|
||||
|
||||
const mdxPluginOpts: MdxRollupPluginOptions = {
|
||||
|
|
Loading…
Reference in a new issue