# mdxBlock

`function` in `eslint-config` · v1.4.3-next.0

<https://docs.seedcord.org/packages/eslint-config/1.4.3-next.0/functions/mdx-block>

Builds the flat-config block that turns on MDX support.

Deliberately omits the `mdx/remark` rule and its remark processor: that bridge lints markdown *prose* via remark-lint, which overlaps with markdownlint and needs a separate remark config to do anything. Prose linting stays out of scope here.

```ts
mdxBlock(files: string[]): Linter.Config
```

Builds the flat-config block that turns on MDX support.

Deliberately omits the `mdx/remark` rule and its remark processor: that bridge lints markdown *prose* via remark-lint, which overlaps with markdownlint and needs a separate remark config to do anything. Prose linting stays out of scope here.

Parameters.

- `files` `string[]` — File globs the block applies to (typically every `.mdx` file).

Returns `Linter.Config`.
