1+ import reactX from '@eslint-react/eslint-plugin' ;
2+ import markdown from '@eslint/markdown' ;
13import typescriptEslint from '@typescript-eslint/eslint-plugin' ;
24import tsParser from '@typescript-eslint/parser' ;
35import vitest from '@vitest/eslint-plugin' ;
4- import { defineConfig , globalIgnores } from 'eslint/config' ;
56import jestDom from 'eslint-plugin-jest-dom' ;
67import react from 'eslint-plugin-react' ;
78import reactCompiler from 'eslint-plugin-react-compiler' ;
89import reactHooks from 'eslint-plugin-react-hooks' ;
9- import reactHooksExtra from 'eslint-plugin-react-hooks-extra' ;
1010import sonarjs from 'eslint-plugin-sonarjs' ;
1111import testingLibrary from 'eslint-plugin-testing-library' ;
12- import markdown from '@ eslint/markdown ' ;
12+ import { defineConfig , globalIgnores } from 'eslint/config ' ;
1313
1414export default defineConfig ( [
1515 globalIgnores ( [ '.cache' , '.nitro' , '.output' , '.tanstack' , 'coverage' , 'dist' , 'lib' ] ) ,
@@ -28,7 +28,7 @@ export default defineConfig([
2828 react,
2929 'react-compiler' : reactCompiler ,
3030 'react-hooks' : reactHooks ,
31- 'react-hooks-extra ' : reactHooksExtra ,
31+ 'react-x ' : reactX ,
3232 sonarjs,
3333 '@typescript-eslint' : typescriptEslint
3434 } ,
@@ -249,6 +249,7 @@ export default defineConfig([
249249 'prefer-rest-params' : 1 ,
250250 'prefer-spread' : 1 ,
251251 'prefer-template' : 1 ,
252+ 'preserve-caught-error' : 1 ,
252253 radix : 1 ,
253254 'require-await' : 0 , // replaced by @typescript -eslint/require-await
254255 'require-unicode-regexp' : 0 ,
@@ -393,10 +394,10 @@ export default defineConfig([
393394
394395 // React Hooks Extra
395396 // https://eslint-react.xyz/
396- 'react-hooks-extra /no-unnecessary-use-callback' : 1 ,
397- 'react-hooks-extra /no-unnecessary-use-memo' : 1 ,
398- 'react-hooks-extra /no-unnecessary-use-prefix' : 1 ,
399- 'react-hooks-extra /prefer-use-state-lazy-initialization' : 1 ,
397+ 'react-x /no-unnecessary-use-callback' : 1 ,
398+ 'react-x /no-unnecessary-use-memo' : 1 ,
399+ 'react-x /no-unnecessary-use-prefix' : 1 ,
400+ 'react-x /prefer-use-state-lazy-initialization' : 1 ,
400401
401402 // SonarJS rules
402403 // https://github.com/SonarSource/eslint-plugin-sonarjs#rules
@@ -606,6 +607,7 @@ export default defineConfig([
606607 'vitest/consistent-test-filename' : 0 ,
607608 'vitest/consistent-test-it' : 1 ,
608609 'vitest/expect-expect' : 0 ,
610+ 'vitest/hoisted-apis-on-top' : 1 ,
609611 'vitest/max-expects' : 0 ,
610612 'vitest/max-nested-describe' : 0 ,
611613 'vitest/no-alias-methods' : 1 ,
@@ -755,7 +757,10 @@ export default defineConfig([
755757 'markdown/no-missing-atx-heading-space' : 1 ,
756758 'markdown/no-missing-label-refs' : 1 ,
757759 'markdown/no-missing-link-fragments' : 1 ,
760+ 'markdown/no-multiple-h1' : 1 ,
761+ 'markdown/no-reference-like-urls' : 1 ,
758762 'markdown/no-reversed-media-syntax' : 1 ,
763+ 'markdown/no-space-in-emphasis' : 1 ,
759764 'markdown/no-unused-definitions' : 1 ,
760765 'markdown/require-alt-text' : 1 ,
761766 'markdown/table-column-count' : 1
0 commit comments