1
+ import reactX from '@eslint-react/eslint-plugin' ;
2
+ import markdown from '@eslint/markdown' ;
1
3
import typescriptEslint from '@typescript-eslint/eslint-plugin' ;
2
4
import tsParser from '@typescript-eslint/parser' ;
3
5
import vitest from '@vitest/eslint-plugin' ;
4
- import { defineConfig , globalIgnores } from 'eslint/config' ;
5
6
import jestDom from 'eslint-plugin-jest-dom' ;
6
7
import react from 'eslint-plugin-react' ;
7
8
import reactCompiler from 'eslint-plugin-react-compiler' ;
8
9
import reactHooks from 'eslint-plugin-react-hooks' ;
9
- import reactHooksExtra from 'eslint-plugin-react-hooks-extra' ;
10
10
import sonarjs from 'eslint-plugin-sonarjs' ;
11
11
import testingLibrary from 'eslint-plugin-testing-library' ;
12
- import markdown from '@ eslint/markdown ' ;
12
+ import { defineConfig , globalIgnores } from 'eslint/config ' ;
13
13
14
14
export default defineConfig ( [
15
15
globalIgnores ( [ '.cache' , '.nitro' , '.output' , '.tanstack' , 'coverage' , 'dist' , 'lib' ] ) ,
@@ -28,7 +28,7 @@ export default defineConfig([
28
28
react,
29
29
'react-compiler' : reactCompiler ,
30
30
'react-hooks' : reactHooks ,
31
- 'react-hooks-extra ' : reactHooksExtra ,
31
+ 'react-x ' : reactX ,
32
32
sonarjs,
33
33
'@typescript-eslint' : typescriptEslint
34
34
} ,
@@ -249,6 +249,7 @@ export default defineConfig([
249
249
'prefer-rest-params' : 1 ,
250
250
'prefer-spread' : 1 ,
251
251
'prefer-template' : 1 ,
252
+ 'preserve-caught-error' : 1 ,
252
253
radix : 1 ,
253
254
'require-await' : 0 , // replaced by @typescript -eslint/require-await
254
255
'require-unicode-regexp' : 0 ,
@@ -393,10 +394,10 @@ export default defineConfig([
393
394
394
395
// React Hooks Extra
395
396
// 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 ,
400
401
401
402
// SonarJS rules
402
403
// https://github.com/SonarSource/eslint-plugin-sonarjs#rules
@@ -606,6 +607,7 @@ export default defineConfig([
606
607
'vitest/consistent-test-filename' : 0 ,
607
608
'vitest/consistent-test-it' : 1 ,
608
609
'vitest/expect-expect' : 0 ,
610
+ 'vitest/hoisted-apis-on-top' : 1 ,
609
611
'vitest/max-expects' : 0 ,
610
612
'vitest/max-nested-describe' : 0 ,
611
613
'vitest/no-alias-methods' : 1 ,
@@ -755,7 +757,10 @@ export default defineConfig([
755
757
'markdown/no-missing-atx-heading-space' : 1 ,
756
758
'markdown/no-missing-label-refs' : 1 ,
757
759
'markdown/no-missing-link-fragments' : 1 ,
760
+ 'markdown/no-multiple-h1' : 1 ,
761
+ 'markdown/no-reference-like-urls' : 1 ,
758
762
'markdown/no-reversed-media-syntax' : 1 ,
763
+ 'markdown/no-space-in-emphasis' : 1 ,
759
764
'markdown/no-unused-definitions' : 1 ,
760
765
'markdown/require-alt-text' : 1 ,
761
766
'markdown/table-column-count' : 1
0 commit comments