|
1 | 1 | import eslintReact from '@eslint-react/eslint-plugin'; |
2 | 2 | import markdown from '@eslint/markdown'; |
3 | 3 | import vitest from '@vitest/eslint-plugin'; |
4 | | -import jestDom from 'eslint-plugin-jest-dom'; |
5 | 4 | import reactHooks from 'eslint-plugin-react-hooks'; |
6 | 5 | import sonarjs from 'eslint-plugin-sonarjs'; |
7 | | -import testingLibrary from 'eslint-plugin-testing-library'; |
8 | 6 | import { defineConfig, globalIgnores } from 'eslint/config'; |
9 | 7 | import tseslint from 'typescript-eslint'; |
10 | 8 |
|
@@ -896,9 +894,7 @@ copy( |
896 | 894 | files: ['test/**/*'], |
897 | 895 |
|
898 | 896 | plugins: { |
899 | | - vitest, |
900 | | - 'jest-dom': jestDom, |
901 | | - 'testing-library': testingLibrary |
| 897 | + vitest |
902 | 898 | }, |
903 | 899 |
|
904 | 900 | rules: { |
@@ -1018,51 +1014,7 @@ copy( |
1018 | 1014 | 'vitest/valid-expect': [1, { alwaysAwait: true }], |
1019 | 1015 | 'vitest/valid-expect-in-promise': 1, |
1020 | 1016 | 'vitest/valid-title': 1, |
1021 | | - 'vitest/warn-todo': 1, |
1022 | | - |
1023 | | - // https://github.com/testing-library/eslint-plugin-jest-dom#supported-rules |
1024 | | - 'jest-dom/prefer-checked': 1, |
1025 | | - 'jest-dom/prefer-empty': 1, |
1026 | | - 'jest-dom/prefer-enabled-disabled': 1, |
1027 | | - 'jest-dom/prefer-focus': 1, |
1028 | | - 'jest-dom/prefer-in-document': 1, |
1029 | | - 'jest-dom/prefer-required': 1, |
1030 | | - 'jest-dom/prefer-to-have-attribute': 1, |
1031 | | - 'jest-dom/prefer-to-have-class': 1, |
1032 | | - 'jest-dom/prefer-to-have-style': 1, |
1033 | | - 'jest-dom/prefer-to-have-text-content': 1, |
1034 | | - 'jest-dom/prefer-to-have-value': 1, |
1035 | | - |
1036 | | - // eslint-plugin-testing-library Rules |
1037 | | - // https://github.com/testing-library/eslint-plugin-testing-library#supported-rules |
1038 | | - 'testing-library/await-async-events': 0, |
1039 | | - 'testing-library/await-async-queries': 0, |
1040 | | - 'testing-library/await-async-utils': 0, |
1041 | | - 'testing-library/consistent-data-testid': 0, |
1042 | | - 'testing-library/no-await-sync-events': 0, |
1043 | | - 'testing-library/no-await-sync-queries': 0, |
1044 | | - 'testing-library/no-container': 1, |
1045 | | - 'testing-library/no-debugging-utils': 1, |
1046 | | - 'testing-library/no-dom-import': 1, |
1047 | | - 'testing-library/no-global-regexp-flag-in-query': 1, |
1048 | | - 'testing-library/no-manual-cleanup': 0, |
1049 | | - 'testing-library/no-node-access': 0, |
1050 | | - 'testing-library/no-promise-in-fire-event': 0, |
1051 | | - 'testing-library/no-render-in-lifecycle': 0, |
1052 | | - 'testing-library/no-test-id-queries': 0, |
1053 | | - 'testing-library/no-unnecessary-act': 1, |
1054 | | - 'testing-library/no-wait-for-multiple-assertions': 1, |
1055 | | - 'testing-library/no-wait-for-side-effects': 1, |
1056 | | - 'testing-library/no-wait-for-snapshot': 0, |
1057 | | - 'testing-library/prefer-explicit-assert': 1, |
1058 | | - 'testing-library/prefer-find-by': 1, |
1059 | | - 'testing-library/prefer-implicit-assert': 0, |
1060 | | - 'testing-library/prefer-presence-queries': 0, |
1061 | | - 'testing-library/prefer-query-by-disappearance': 1, |
1062 | | - 'testing-library/prefer-query-matchers': 0, |
1063 | | - 'testing-library/prefer-screen-queries': 0, |
1064 | | - 'testing-library/prefer-user-event': 1, |
1065 | | - 'testing-library/render-result-naming-convention': 0 |
| 1017 | + 'vitest/warn-todo': 1 |
1066 | 1018 | } |
1067 | 1019 | }, |
1068 | 1020 |
|
|
0 commit comments