File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ module.exports = {
30
30
'@typescript-eslint/ban-ts-ignore' : 'warn' ,
31
31
'@typescript-eslint/ban-types' : 'error' ,
32
32
'no-else-return' : 'error' ,
33
+ 'no-negated-condition' : 'error' ,
33
34
eqeqeq : [ 'error' , 'smart' ] ,
34
35
strict : 'error' ,
35
36
'prefer-template' : 'warn' ,
Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ export default {
54
54
'CallExpression[callee.name=/^(it|test)$/][arguments.1.body.body]' ( node ) {
55
55
const testFuncBody = node . arguments [ 1 ] . body . body ;
56
56
57
- if ( ! isFirstLineExprStmt ( testFuncBody ) ) {
58
- reportMsg ( context , node ) ;
59
- } else {
57
+ if ( isFirstLineExprStmt ( testFuncBody ) ) {
60
58
const testFuncFirstLine = getFunctionFirstLine ( testFuncBody ) ;
61
59
if ( ! isExpectAssertionsOrHasAssertionsCall ( testFuncFirstLine ) ) {
62
60
reportMsg ( context , node ) ;
63
61
}
62
+ } else {
63
+ reportMsg ( context , node ) ;
64
64
}
65
65
} ,
66
66
} ;
You can’t perform that action at this time.
0 commit comments