Skip to content

Commit

Permalink
add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
krzkaczor committed Dec 7, 2017
1 parent f32d1a6 commit 3139560
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .npmignore
Expand Up @@ -3,4 +3,6 @@ test
typings
scripts
tsconfig.json
.travis.yml
.travis.yml
.prettierrc
.prettierignore
1 change: 1 addition & 0 deletions .prettierignore
@@ -0,0 +1 @@
dist/
8 changes: 8 additions & 0 deletions .prettierrc
@@ -0,0 +1,8 @@
{
"printWidth": 100,
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"trailingComma": "all",
"parser": "typescript"
}
7 changes: 6 additions & 1 deletion package.json
Expand Up @@ -21,6 +21,7 @@
"chai-as-promised": "^7.1.1",
"ganache-cli": "^6.0.3",
"mocha": "^4.0.1",
"prettier": "1.9.1",
"ts-node": "^3.3.0",
"typescript": "^2.6.1",
"web3": "0.20.2",
Expand All @@ -39,7 +40,11 @@
"scripts": {
"build": "rm -rf ./dist && tsc -p ./tsconfig.production.json",
"postbuild": "chmod +x ./dist/cli.js",
"test": "./scripts/test.sh",
"lint": "yarn formatting",
"lint:fix": "yarn formatting:fix",
"formatting": "prettier --list-different **/*.ts",
"formatting:fix": "prettier --write **/*.ts",
"test": "yarn lint && ./scripts/test.sh",
"test:unit": "NODE_ENV=test mocha --require ts-node/register.js 'test/unit/**/*.spec.ts'",
"test:integration": "NODE_ENV=test mocha --require ts-node/register.js 'test/integration/web3.ts' 'test/integration/**/*.spec.ts'",
"test:generateContracts": "NODE_ENV=development ts-node ./lib/cli.ts"
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Expand Up @@ -1692,6 +1692,10 @@ preserve@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"

prettier@1.9.1:
version "1.9.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.9.1.tgz#41638a0d47c1efbd1b7d5a742aaa5548eab86d70"

process-nextick-args@~1.0.6:
version "1.0.7"
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3"
Expand Down

0 comments on commit 3139560

Please sign in to comment.