|
1 | | -import devupUIEslintPlugin from '@devup-ui/eslint-plugin' |
2 | 1 | import { configs } from 'eslint-plugin-devup' |
3 | 2 | import eslintPlugin from 'eslint-plugin-eslint-plugin' |
4 | 3 | import jsonc from 'eslint-plugin-jsonc' |
5 | | -import * as mdx from 'eslint-plugin-mdx' |
6 | 4 | import globals from 'globals' |
7 | 5 | export default [ |
8 | 6 | { |
9 | 7 | ignores: [ |
10 | | - '**/coverage', |
11 | | - 'target', |
12 | 8 | 'benchmark/next-panda-css/styled-system', |
13 | 9 | 'bindings/devup-ui-wasm/pkg', |
14 | 10 | ], |
@@ -52,31 +48,9 @@ export default [ |
52 | 48 | 'react/no-children-prop': 'off', |
53 | 49 | }, |
54 | 50 | }, |
55 | | - // md, mdx rules |
56 | | - { |
57 | | - ...mdx.flat, |
58 | | - files: ['**/*.{md,mdx}'], |
59 | | - processor: mdx.createRemarkProcessor({ |
60 | | - lintCodeBlocks: true, |
61 | | - }), |
62 | | - }, |
63 | | - // md, mdx code blocks rules |
64 | | - { |
65 | | - ...mdx.flatCodeBlocks, |
66 | | - files: ['**/*.{md,mdx}/*.{js,jsx,ts,tsx}'], |
67 | | - rules: { |
68 | | - ...mdx.flatCodeBlocks.rules, |
69 | | - 'react/jsx-no-undef': 'off', |
70 | | - 'react/jsx-tag-spacing': ['error', { beforeClosing: 'never' }], |
71 | | - }, |
72 | | - }, |
73 | 51 | // eslint-plugin rule |
74 | 52 | { |
75 | 53 | ...eslintPlugin.configs.recommended, |
76 | 54 | // files: ['packages/eslint-plugin/**/*.{js,jsx,ts,tsx}'], |
77 | 55 | }, |
78 | | - { |
79 | | - ignores: ['**/*.md'], |
80 | | - }, |
81 | | - ...devupUIEslintPlugin.configs.recommended, |
82 | 56 | ] |
0 commit comments