Skip to content

Commit 8404168

Browse files
committed
Fix eslint issues
1 parent b034788 commit 8404168

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.eslintrc.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ rules:
7171
max-nested-callbacks:
7272
- error
7373
- max: 7
74-
new-cap:
75-
- error
76-
- newIsCap: true
77-
capIsNew: true
78-
properties: true
7974
new-parens:
8075
- error
8176
no-lonely-if:

JavaScript/6-do-maybe.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

3-
const { Just, Nothing } = require('./helpers/maybe');
3+
const { Just } = require('./helpers/maybe');
4+
45
const doMonad = require('./helpers/do-notation');
56

67
Just(5).then(x => (
@@ -10,8 +11,8 @@ Just(5).then(x => (
1011
)).then(console.log));
1112

1213
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);
1617
console.log((a + b) * c);
1718
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy