Skip to content
You are viewing the v1 archive. For current setup guidance, use the v3 docs; the v2 release is preserved at /v2/.

Formats

The formats option enables linting for non-code or mixed-content file formats.

FormatEnumUse It When
MarkdownFormat.MarkdownThe project contains Markdown content that should be linted.
MDXFormat.MdxThe project contains MDX files.
JSONCFormat.JsoncThe project uses JSON with comments.
YAMLFormat.YamlThe project contains YAML configuration files.
TOMLFormat.TomlThe project contains TOML configuration files.
GraphQLFormat.GraphqlThe project contains GraphQL documents.
import { eslintConfig, Format } from '@santi020k/eslint-config-basic'
export default eslintConfig({
formats: [Format.Markdown, Format.Mdx, Format.Yaml]
})
  • Format integrations are always explicit.
  • Markdown and MDX are especially useful when the repository includes docs, content, or developer guides that should follow the same standards as source code.

Did this page help?

One click helps us spot documentation that needs another pass. No personal data is sent.