File tree Expand file tree Collapse file tree 9 files changed +47
-55
lines changed Expand file tree Collapse file tree 9 files changed +47
-55
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "parserOptions" : {
3
+ "ecmaVersion" : 5
4
+ },
5
+ "extends" : " eslint:recommended" ,
6
+ "env" : {
7
+ "commonjs" : true
8
+ },
9
+ "rules" : {
10
+ "strict" : [2 , " global" ],
11
+ "block-scoped-var" : 2 ,
12
+ "consistent-return" : 2 ,
13
+ "eqeqeq" : [2 , " smart" ],
14
+ "guard-for-in" : 2 ,
15
+ "no-caller" : 2 ,
16
+ "no-extend-native" : 2 ,
17
+ "no-loop-func" : 2 ,
18
+ "no-new" : 2 ,
19
+ "no-param-reassign" : 2 ,
20
+ "no-return-assign" : 2 ,
21
+ "no-unused-expressions" : 2 ,
22
+ "no-use-before-define" : 2 ,
23
+ "radix" : [2 , " always" ],
24
+ "indent" : [2 , 2 ],
25
+ "quotes" : [2 , " double" ],
26
+ "semi" : [2 , " always" ]
27
+ }
28
+ }
Original file line number Diff line number Diff line change 1
1
/. *
2
2
! /.gitignore
3
- ! /.jscsrc
4
- ! /.jshintrc
3
+ ! /.eslintrc.json
5
4
! /.travis.yml
6
5
/bower_components /
7
6
/node_modules /
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
dist : trusty
3
3
sudo : required
4
- node_js : 6
4
+ node_js : stable
5
5
env :
6
6
- PATH=$HOME/purescript:$PATH
7
7
install :
Original file line number Diff line number Diff line change 17
17
" package.json"
18
18
],
19
19
"dependencies" : {
20
- "purescript-partial" : " ^1.1.2 " ,
21
- "purescript-tuples" : " ^3 .0.0"
20
+ "purescript-partial" : " ^1.2.0 " ,
21
+ "purescript-tuples" : " ^4 .0.0"
22
22
},
23
23
"devDependencies" : {
24
- "purescript-assert" : " ^2 .0.0" ,
25
- "purescript-console" : " ^2 .0.0"
24
+ "purescript-assert" : " ^3 .0.0" ,
25
+ "purescript-console" : " ^3 .0.0"
26
26
}
27
27
}
Original file line number Diff line number Diff line change 2
2
"private" : true ,
3
3
"scripts" : {
4
4
"clean" : " rimraf output && rimraf .pulp-cache" ,
5
- "build" : " jshint src && jscs src && psa \" src/**/*.purs \" \" bower_components/purescript-*/src/**/*.purs \" --censor-lib --strict" ,
6
- "test" : " psc \" src/**/*.purs \" \" bower_components/purescript-*/src/**/*.purs \" \" test/**/*.purs \" && psc-bundle \" output/**/*.js \" --module Test.Main --main Test.Main | node "
5
+ "build" : " eslint src && pulp build -- --censor-lib --strict" ,
6
+ "test" : " pulp test"
7
7
},
8
8
"devDependencies" : {
9
- "jscs" : " ^2.8.0" ,
10
- "jshint" : " ^2.9.1" ,
11
- "pulp" : " ^8.2.0" ,
12
- "purescript-psa" : " ^0.3.8" ,
13
- "rimraf" : " ^2.5.0"
9
+ "eslint" : " ^3.17.1" ,
10
+ "pulp" : " ^10.0.4" ,
11
+ "purescript-psa" : " ^0.5.0-rc.1" ,
12
+ "rimraf" : " ^2.6.1"
14
13
}
15
14
}
Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ exports.unfoldrArrayImpl = function (isNothing) {
7
7
return function ( f ) {
8
8
return function ( b ) {
9
9
var result = [ ] ;
10
- while ( true ) {
11
- var maybe = f ( b ) ;
10
+ var value = b ;
11
+ while ( true ) { // eslint-disable-line no-constant-condition
12
+ var maybe = f ( value ) ;
12
13
if ( isNothing ( maybe ) ) return result ;
13
14
var tuple = fromJust ( maybe ) ;
14
15
result . push ( fst ( tuple ) ) ;
15
- b = snd ( tuple ) ;
16
+ value = snd ( tuple ) ;
16
17
}
17
18
} ;
18
19
} ;
Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ replicate n v = unfoldr step n
62
62
-- | Perform an Applicative action `n` times, and accumulate all the results.
63
63
replicateA
64
64
:: forall m f a
65
- . (Applicative m , Unfoldable f , Traversable f )
65
+ . Applicative m
66
+ => Unfoldable f
67
+ => Traversable f
66
68
=> Int
67
69
-> m a
68
70
-> m (f a )
You can’t perform that action at this time.
0 commit comments