Skip to content

Commit bcaaeb3

Browse files
committed
Update for PureScript 0.11
1 parent e5d01eb commit bcaaeb3

File tree

7 files changed

+42
-53
lines changed

7 files changed

+42
-53
lines changed

.eslintrc.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
}

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/.*
22
!/.gitignore
3-
!/.jscsrc
4-
!/.jshintrc
3+
!/.eslintrc.json
54
!/.travis.yml
65
bower_components/
76
node_modules/

.jscsrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

.jshintrc

Lines changed: 0 additions & 20 deletions
This file was deleted.

bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"package.json"
2828
],
2929
"dependencies": {
30-
"purescript-ace": "^3.0.0",
31-
"purescript-halogen": "^1.0.0",
32-
"purescript-now": "^2.0.0",
33-
"purescript-random": "^2.0.0",
34-
"purescript-refs": "^2.0.0"
30+
"purescript-ace": "^4.0.0",
31+
"purescript-halogen": "^2.0.0",
32+
"purescript-now": "^3.0.0",
33+
"purescript-random": "^3.0.0",
34+
"purescript-refs": "^3.0.0"
3535
}
3636
}

example/src/Main.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ ui =
6565
initEditor state editor = liftEff $ do
6666
session ← Editor.getSession editor
6767
Session.setMode "ace/mode/yaml" session
68-
Editor.setValue state.text Nothing editor
68+
_ ← Editor.setValue state.text Nothing editor
6969
pure unit
7070

7171
eval Query ~> MainDSL

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
"private": true,
33
"scripts": {
44
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "jshint src && jscs src && pulp build -- --censor-lib --strict",
6-
"example": "bower link && cd example && bower link purescript-ace-halogen && npm i --production && npm run -s build"
5+
"build": "eslint src && pulp build -- --censor-lib --strict",
6+
"example": "bower link && cd example && bower link purescript-ace-halogen && npm run -s build"
77
},
88
"devDependencies": {
9-
"jscs": "^3.0.7",
10-
"jshint": "^2.9.4",
11-
"pulp": "^10.0.0",
12-
"purescript": "^0.10.5",
13-
"purescript-psa": "^0.4.0",
14-
"rimraf": "^2.5.4"
9+
"eslint": "^3.19.0",
10+
"pulp": "^11.0.0",
11+
"purescript": "^0.11.4",
12+
"purescript-psa": "^0.5.1",
13+
"rimraf": "^2.6.1"
1514
}
1615
}

0 commit comments

Comments
 (0)