|
2 | 2 |
|
3 | 3 | import url from 'node:url';
|
4 | 4 |
|
| 5 | +import { fixupConfigRules, fixupPluginRules } from '@eslint/compat'; |
5 | 6 | import { FlatCompat } from '@eslint/eslintrc';
|
6 | 7 | import eslint from '@eslint/js';
|
7 | 8 | import tseslintInternalPlugin from '@typescript-eslint/eslint-plugin-internal';
|
@@ -29,15 +30,20 @@ export default tseslint.config(
|
29 | 30 | plugins: {
|
30 | 31 | ['@typescript-eslint']: tseslint.plugin,
|
31 | 32 | ['@typescript-eslint/internal']: tseslintInternalPlugin,
|
32 |
| - ['deprecation']: deprecationPlugin, |
| 33 | + // https://github.com/gund/eslint-plugin-deprecation/issues/78 |
| 34 | + // https://github.com/typescript-eslint/typescript-eslint/issues/8988 |
| 35 | + ['deprecation']: fixupPluginRules(deprecationPlugin), |
33 | 36 | ['eslint-comments']: eslintCommentsPlugin,
|
34 | 37 | ['eslint-plugin']: eslintPluginPlugin,
|
35 |
| - ['import']: importPlugin, |
| 38 | + // https://github.com/import-js/eslint-plugin-import/issues/2948 |
| 39 | + ['import']: fixupPluginRules(importPlugin), |
36 | 40 | ['jest']: jestPlugin,
|
37 | 41 | ['jsdoc']: jsdocPlugin,
|
38 | 42 | ['jsx-a11y']: jsxA11yPlugin,
|
39 |
| - ['react-hooks']: reactHooksPlugin, |
40 |
| - ['react']: reactPlugin, |
| 43 | + // https://github.com/facebook/react/issues/28313 |
| 44 | + ['react-hooks']: fixupPluginRules(reactHooksPlugin), |
| 45 | + // https://github.com/jsx-eslint/eslint-plugin-react/issues/3699 |
| 46 | + ['react']: fixupPluginRules(reactPlugin), |
41 | 47 | ['simple-import-sort']: simpleImportSortPlugin,
|
42 | 48 | ['unicorn']: unicornPlugin,
|
43 | 49 | },
|
@@ -512,8 +518,8 @@ export default tseslint.config(
|
512 | 518 | files: ['packages/website/**/*.{ts,tsx,mts,cts,js,jsx}'],
|
513 | 519 | extends: [
|
514 | 520 | ...compat.config(jsxA11yPlugin.configs.recommended),
|
515 |
| - ...compat.config(reactPlugin.configs.recommended), |
516 |
| - ...compat.config(reactHooksPlugin.configs.recommended), |
| 521 | + ...fixupConfigRules(compat.config(reactPlugin.configs.recommended)), |
| 522 | + ...fixupConfigRules(compat.config(reactHooksPlugin.configs.recommended)), |
517 | 523 | ],
|
518 | 524 | rules: {
|
519 | 525 | '@typescript-eslint/internal/prefer-ast-types-enum': 'off',
|
|
0 commit comments