Skip to content

Commit 14d6c30

Browse files
authored
Merge pull request #108 from js-accounts/typescript-next
Setup typescript
2 parents 3a0efae + 3ad8287 commit 14d6c30

File tree

97 files changed

+5137
-11136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+5137
-11136
lines changed

.eslintrc

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

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
lib/
2-
lib-es6/
32
node_modules/
43
coverage/
54
npm-debug.log

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"lerna": "2.0.0-beta.38",
2+
"lerna": "2.0.0",
33
"packages": [
44
"packages/*"
55
],

package.json

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55
"link": "lerna exec -- npm link",
66
"clean": "lerna run clean",
77
"compile": "lerna run compile",
8-
"lint": "eslint packages/*/src",
9-
"flow:check": "lerna run flow:check",
8+
"lint": "tslint packages/*/{src,__tests__}/**/*.ts",
109
"prebootstrap": "npm install",
1110
"postinstall": "lerna bootstrap",
1211
"publish": "lerna publish",
1312
"publish:canary": "npm run publish -- --canary",
14-
"pretest": "npm run compile",
1513
"test": "npm run testonly",
1614
"posttest": "npm run lint",
1715
"testonly": "lerna run testonly",
16+
"format": "prettier --single-quote --trailing-comma es5 --parser typescript --write \"packages/*/{src,__tests__}/**/*.ts\"",
1817
"coverage": "lerna run coverage",
1918
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
2019
},
@@ -24,17 +23,15 @@
2423
},
2524
"license": "MIT",
2625
"devDependencies": {
27-
"babel-eslint": "^7.1.1",
28-
"eslint": "^3.15.0",
29-
"eslint-config-airbnb": "^14.1.0",
30-
"eslint-config-airbnb-base": "^11.1.0",
31-
"eslint-plugin-flowtype": "^2.30.0",
32-
"eslint-plugin-import": "^2.2.0",
33-
"eslint-plugin-jsdoc": "^2.4.0",
34-
"eslint-plugin-jsx-a11y": "^3.0.2",
35-
"eslint-plugin-react": "^6.9.0",
36-
"eslint-plugin-require-jsdoc": "^1.0.4",
37-
"lerna": "2.0.0-beta.38",
38-
"flow-bin": "0.41.0"
26+
"@types/jest": "^20.0.2",
27+
"@types/node": "^8.0.10",
28+
"flow-bin": "0.41.0",
29+
"jest": "^20.0.4",
30+
"lerna": "^2.0.0",
31+
"prettier": "^1.5.2",
32+
"ts-jest": "^20.0.7",
33+
"tslint": "^5.6.0",
34+
"tslint-config-accounts": "^0.0.3",
35+
"typescript": "^2.4.1"
3936
}
4037
}

packages/client/.babelrc

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

packages/client/.flowconfig

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

packages/client/.gitignore

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

packages/client/.npmignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
__tests__
12
src/
23
coverage/
3-
wallaby.js
4-
webpack.config.js
5-
.babelrc
6-
.eslintrc
7-
.flowconfig
4+
node_modules
5+
tsconfig.json
6+
.npmignore
7+
yarn.lock

0 commit comments

Comments
 (0)