File tree 2 files changed +24
-26
lines changed
2 files changed +24
-26
lines changed Original file line number Diff line number Diff line change
1
+ import eslint from '@eslint/js' ;
2
+ import importPlugin from 'eslint-plugin-import' ;
3
+ import jest from 'eslint-plugin-jest' ;
4
+ import tseslint from 'typescript-eslint' ;
5
+
6
+ export default tseslint . config (
7
+ eslint . configs . recommended ,
8
+ tseslint . configs . recommended ,
9
+ importPlugin . flatConfigs . errors ,
10
+ importPlugin . flatConfigs . typescript ,
11
+ {
12
+ plugins : { jest } ,
13
+ rules : {
14
+ '@typescript-eslint/no-unsafe-function-type' : 'off' ,
15
+ '@typescript-eslint/no-explicit-any' : 'warn' ,
16
+ } ,
17
+ } ,
18
+ ) ;
Original file line number Diff line number Diff line change 45
45
},
46
46
"homepage" : " https://github.com/abraham/reflection#readme" ,
47
47
"devDependencies" : {
48
- "pkg-ok " : " ^3 .0.0" ,
48
+ "@eslint/js " : " ^9 .0.0" ,
49
49
"@types/jest" : " ^29.0.0" ,
50
- "@typescript-eslint/eslint-plugin" : " ^8.0.0" ,
51
- "@typescript-eslint/parser" : " ^8.0.0" ,
52
- "eslint" : " ^8.0.0" ,
50
+ "eslint" : " ^9.0.0" ,
53
51
"eslint-plugin-import" : " ^2.0.0" ,
54
52
"eslint-plugin-jest" : " ^28.0.0" ,
55
53
"jest" : " ^29.0.0" ,
54
+ "pkg-ok" : " ^3.0.0" ,
56
55
"prettier" : " ^3.0.0" ,
57
- "rimraf" : " ^6.0.0 " ,
56
+ "rimraf" : " ^6.0.1 " ,
58
57
"rollup" : " ^4.0.0" ,
59
58
"ts-jest" : " ^29.0.0" ,
60
- "typescript" : " ^5.0.0"
59
+ "typescript" : " ^5.0.0" ,
60
+ "typescript-eslint" : " ^8.0.0"
61
61
},
62
62
"jest" : {
63
63
"collectCoverage" : true ,
77
77
" node"
78
78
]
79
79
},
80
- "eslintConfig" : {
81
- "root" : true ,
82
- "parser" : " @typescript-eslint/parser" ,
83
- "plugins" : [
84
- " @typescript-eslint" ,
85
- " jest"
86
- ],
87
- "extends" : [
88
- " eslint:recommended" ,
89
- " plugin:@typescript-eslint/eslint-recommended" ,
90
- " plugin:@typescript-eslint/recommended" ,
91
- " plugin:jest/recommended" ,
92
- " plugin:import/errors" ,
93
- " plugin:import/typescript"
94
- ],
95
- "rules" : {
96
- "@typescript-eslint/no-unsafe-function-type" : " off" ,
97
- "@typescript-eslint/no-explicit-any" : " warn"
98
- }
99
- },
100
80
"prettier" : {
101
81
"singleQuote" : true ,
102
82
"trailingComma" : " all"
You can’t perform that action at this time.
0 commit comments