Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support eslint-define-config #527

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: support eslint-define-config
Shinigami92 committed Jan 22, 2024
commit f14339a8f54d220114ff81328a39cd60a5dea720
26 changes: 26 additions & 0 deletions packages/eslint-plugin-mdx/src/define-config-support.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export interface Extends {
'plugin:mdx/base': void
'plugin:mdx/code-blocks': void
'plugin:mdx/codeBlocks': void
'plugin:mdx/flat': void
'plugin:mdx/flatCodeBlocks': void
'plugin:mdx/overrides': void
'plugin:mdx/recommended': void
}

export interface Plugins {
mdx: void
}

export interface RuleOptions {
/**
* Linter integration with remark plugins
*/
'mdx/remark': []
}

declare module 'eslint-define-config' {
export interface CustomExtends extends Extends {}
export interface CustomPlugins extends Plugins {}
export interface CustomRuleOptions extends RuleOptions {}
}