teableio/teable

View on GitHub
packages/eslint-config-bases/src/bases/mdx.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Opinionated config base for https://github.com/mdx-js/eslint-mdx
 * @see https://github.com/belgattitude/nextjs-monorepo-example/tree/main/packages/eslint-config-bases
 */

const mdxPatterns = {
  files: ['*.mdx'],
};

module.exports = {
  overrides: [
    {
      // For performance enable this only on mdx files
      files: mdxPatterns.files,
      extends: ['plugin:mdx/recommended', 'plugin:@typescript-eslint/disable-type-checked'],
      parser: 'eslint-mdx',
      parserOptions: {
        project: null,
      },
      rules: {
        '@typescript-eslint/consistent-type-exports': 'off',
      },
    },
  ],
};