File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 73
73
"c8" : " ^7.13.0" ,
74
74
"chalk" : " ^5.2.0" ,
75
75
"enquirer" : " ^2.3.6" ,
76
- "eslint" : " ^8.38 .0" ,
76
+ "eslint" : " ^8.40 .0" ,
77
77
"eslint-ava-rule-tester" : " ^4.0.0" ,
78
78
"eslint-doc-generator" : " ^1.4.3" ,
79
79
"eslint-plugin-eslint-plugin" : " ^5.0.8" ,
118
118
" test/integration/{fixtures,fixtures-local}/**"
119
119
],
120
120
"rules" : {
121
+ "unicorn/expiring-todo-comments" : " off" ,
121
122
"unicorn/no-null" : " error" ,
122
123
"unicorn/prefer-array-flat" : [
123
124
" error" ,
Original file line number Diff line number Diff line change @@ -286,14 +286,11 @@ const create = context => {
286
286
// Since we have priority, we leave only the comments that we didn't use.
287
287
const fakeContext = {
288
288
...context ,
289
- getSourceCode ( ) {
290
- return {
291
- ...sourceCode ,
292
- getAllComments ( ) {
293
- return options . allowWarningComments ? [ ] : unusedComments ;
294
- } ,
295
- } ;
289
+ sourceCode : {
290
+ ...sourceCode ,
291
+ getAllComments : ( ) => options . allowWarningComments ? [ ] : unusedComments ,
296
292
} ,
293
+ getSourceCode : ( ) => fakeContext . sourceCode ,
297
294
} ;
298
295
const rules = baseRule . create ( fakeContext ) ;
299
296
You can’t perform that action at this time.
0 commit comments