File tree 5 files changed +65
-12
lines changed 5 files changed +65
-12
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import globals from "globals" ;
2
+ import babelParser from "@babel/eslint-parser" ;
3
+ import jest from "eslint-plugin-jest" ;
4
+ import jestDom from "eslint-plugin-jest-dom" ;
5
+ import testingLibraryReact from "eslint-plugin-testing-library/react" ;
6
+ import vkBansalConfig from "eslint-config-vkbansal" ;
7
+ import vkBansalReactConfig from "eslint-config-vkbansal/react" ;
8
+
9
+ export default [
10
+ {
11
+ ignores : [ "examples/bundle.js" ] ,
12
+ } ,
13
+ vkBansalConfig ,
14
+ vkBansalReactConfig ,
15
+ {
16
+ languageOptions : {
17
+ parser : babelParser ,
18
+ globals : {
19
+ ...globals . browser ,
20
+ } ,
21
+ } ,
22
+ rules : {
23
+ "react/no-array-index-key" : "off" ,
24
+ } ,
25
+ settings : {
26
+ react : {
27
+ version : "detect" ,
28
+ } ,
29
+ } ,
30
+ } ,
31
+ {
32
+ files : [ "**/tests/*.js" ] ,
33
+ plugins : {
34
+ jest,
35
+ "jest-dom" : jestDom ,
36
+ "testing-library" : testingLibraryReact ,
37
+ } ,
38
+ languageOptions : {
39
+ globals : {
40
+ ...globals . jest ,
41
+ } ,
42
+ } ,
43
+ rules : {
44
+ ...jest . configs [ 'flat/recommended' ] . rules ,
45
+ ...jestDom . configs [ 'flat/recommended' ] . rules ,
46
+ "prefer-arrow-callback" : "off" ,
47
+ "no-mixed-requires" : "off" ,
48
+ // This disallows using direct Node properties (eg: firstChild), but we
49
+ // have legitimate uses:
50
+ "testing-library/no-node-access" : "off" ,
51
+ }
52
+ } ,
53
+ ] ;
Original file line number Diff line number Diff line change 60
60
"@babel/preset-env" : " ^7.24.3" ,
61
61
"@babel/preset-react" : " ^7.24.1" ,
62
62
"@babel/preset-stage-2" : " ^7.8.3" ,
63
+ "@eslint/js" : " ^9.1.1" ,
63
64
"@testing-library/dom" : " ^10.0.0" ,
64
65
"@testing-library/jest-dom" : " ^6.4.2" ,
65
66
"@testing-library/react" : " ^14.3.0" ,
76
77
"eslint-plugin-jest-dom" : " ^5.2.0" ,
77
78
"eslint-plugin-react" : " ~7.34.1" ,
78
79
"eslint-plugin-testing-library" : " ^6.2.0" ,
80
+ "globals" : " ^15.0.0" ,
79
81
"history" : " ~5.3.0" ,
80
82
"html-webpack-plugin" : " ~5.6.0" ,
81
83
"jest" : " ~29.7.0" ,
Original file line number Diff line number Diff line change 1090
1090
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.0.0.tgz#1a9e4b4c96d8c7886e0110ed310a0135144a1691"
1091
1091
integrity sha512-RThY/MnKrhubF6+s1JflwUjPEsnCEmYCWwqa/aRISKWNXGZ9epUwft4bUMM35SdKF9xvBrLydAM1RDHd1Z//ZQ==
1092
1092
1093
+ " @eslint/js@^9.1.1 " :
1094
+ version "9.1.1"
1095
+ resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.1.1.tgz#eb0f82461d12779bbafc1b5045cde3143d350a8a"
1096
+ integrity sha512-5WoDz3Y19Bg2BnErkZTp0en+c/i9PvgFS7MBe1+m60HjFr0hrphlAGp4yzI7pxpt4xShln4ZyYp4neJm8hmOkQ==
1097
+
1093
1098
" @humanwhocodes/config-array@^0.12.3 " :
1094
1099
version "0.12.3"
1095
1100
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.12.3.tgz#a6216d90f81a30bedd1d4b5d799b47241f318072"
@@ -3991,6 +3996,11 @@ globals@^14.0.0:
3991
3996
resolved "https://registry.yarnpkg.com/globals/-/globals-14.0.0.tgz#898d7413c29babcf6bafe56fcadded858ada724e"
3992
3997
integrity sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==
3993
3998
3999
+ globals@^15.0.0 :
4000
+ version "15.0.0"
4001
+ resolved "https://registry.yarnpkg.com/globals/-/globals-15.0.0.tgz#9c6cd4e54327ceaab563b4c17ee5e9d181c03fd2"
4002
+ integrity sha512-m/C/yR4mjO6pXDTm9/R/SpYTAIyaUB4EOzcaaMEl7mds7Mshct9GfejiJNQGjHHbdMPey13Kpu4TMbYi9ex1pw==
4003
+
3994
4004
globalthis@^1.0.3 :
3995
4005
version "1.0.3"
3996
4006
resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.3.tgz#5852882a52b80dc301b0660273e1ed082f0b6ccf"
You can’t perform that action at this time.
0 commit comments