|
1 | | -import devupUIEslintPlugin from '@devup-ui/eslint-plugin' |
2 | | -import { configs } from 'eslint-plugin-devup' |
| 1 | +import devupUi from '@devup-ui/eslint-plugin' |
| 2 | +import devup from 'eslint-plugin-devup' |
3 | 3 | import eslintPlugin from 'eslint-plugin-eslint-plugin' |
4 | 4 | import jsonc from 'eslint-plugin-jsonc' |
5 | | -import * as mdx from 'eslint-plugin-mdx' |
6 | 5 | import globals from 'globals' |
| 6 | + |
7 | 7 | export default [ |
8 | 8 | { |
9 | 9 | ignores: [ |
10 | | - '**/coverage', |
11 | | - 'target', |
12 | 10 | 'benchmark/next-panda-css/styled-system', |
13 | 11 | 'bindings/devup-ui-wasm/pkg', |
14 | 12 | ], |
15 | 13 | }, |
16 | 14 | // eslint-plugin-devup |
17 | | - ...configs.recommended, |
| 15 | + ...devup.configs.recommended.filter( |
| 16 | + (config) => !('plugins' in config && '@devup-ui' in config.plugins), |
| 17 | + ), |
18 | 18 | // eslint-plugin-jsonc |
19 | 19 | ...jsonc.configs['flat/recommended-with-json'], |
20 | 20 | ...jsonc.configs['flat/recommended-with-jsonc'], |
@@ -52,31 +52,13 @@ export default [ |
52 | 52 | 'react/no-children-prop': 'off', |
53 | 53 | }, |
54 | 54 | }, |
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 | 55 | // eslint-plugin rule |
74 | 56 | { |
75 | 57 | ...eslintPlugin.configs.recommended, |
76 | | - // files: ['packages/eslint-plugin/**/*.{js,jsx,ts,tsx}'], |
| 58 | + files: ['packages/eslint-plugin/**/*.{js,jsx,ts,tsx}'], |
77 | 59 | }, |
78 | 60 | { |
79 | | - ignores: ['**/*.md'], |
| 61 | + ignores: ['packages/eslint-plugin/**/*.md'], |
80 | 62 | }, |
81 | | - ...devupUIEslintPlugin.configs.recommended, |
| 63 | + ...devupUi.configs.recommended, |
82 | 64 | ] |
0 commit comments