File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,6 @@ rules:
71
71
max-nested-callbacks :
72
72
- error
73
73
- max : 7
74
- new-cap :
75
- - error
76
- - newIsCap : true
77
- capIsNew : true
78
- properties : true
79
74
new-parens :
80
75
- error
81
76
no-lonely-if :
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const { Just, Nothing } = require ( './helpers/maybe' ) ;
3
+ const { Just } = require ( './helpers/maybe' ) ;
4
+
4
5
const doMonad = require ( './helpers/do-notation' ) ;
5
6
6
7
Just ( 5 ) . then ( x => (
@@ -10,8 +11,8 @@ Just(5).then(x => (
10
11
) ) . then ( console . log ) ) ;
11
12
12
13
doMonad ( function * ( ) {
13
- let a = yield Just ( 5 ) ;
14
- let b = yield Just ( 3 ) ;
15
- let c = yield Just ( 4 ) ;
14
+ const a = yield Just ( 5 ) ;
15
+ const b = yield Just ( 3 ) ;
16
+ const c = yield Just ( 4 ) ;
16
17
console . log ( ( a + b ) * c ) ;
17
18
} ) ;
You can’t perform that action at this time.
0 commit comments