Skip to content

Commit

Permalink
fix prettier violations
Browse files Browse the repository at this point in the history
  • Loading branch information
schnogz committed Jul 13, 2018
1 parent 4bd136f commit 0c71e95
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ We follow all standard rules that are provided by Prettier. The following comman
* `yarn prettier:components` Runs Prettier against only [blockchain-info-components](./packages/blockchain-info-components)
* `yarn prettier:core` Runs Prettier against only [blockchain-wallet-v4](./packages/blockchain-wallet-v4)
* `yarn prettier:frontend` Runs Prettier against only [blockchain-wallet-v4-frontend](./packages/blockchain-wallet-v4-frontend)
* `yarn prettier:fix` Will run Prettier against all packages and save changes

It is recommended to setup a Prettier plugin for your IDE plugins/packages that will automatically prettify your files on save.
* [Atom](https://atom.io/packages/prettier-atom)
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,16 @@
"coverage:components": "yarn workspace blockchain-info-components coverage",
"coverage:core": "yarn workspace blockchain-wallet-v4 coverage",
"coverage:frontend": "yarn workspace blockchain-wallet-v4-frontend coverage",
"fix": "cross-env yarn lint:fix && yarn prettier:fix && yarn test:components:update && test:frontend:update",
"fix": "cross-env yarn lint:fix && yarn prettier && yarn test:components:update && test:frontend:update",
"lint": "eslint --cache './packages/*/src/**/*.js'",
"lint:components": "eslint './packages/blockchain-info-components/src/**/*.js'",
"lint:core": "eslint './packages/blockchain-wallet-v4/src/**/*.js'",
"lint:fix": "eslint './packages/*/src/**/*.js' --fix",
"lint:frontend": "eslint './packages/blockchain-wallet-v4-frontend/src/**/*.js'",
"prettier": "prettier './packages/*/src/**/*.js' --list-different",
"prettier:components": "prettier './packages/blockchain-info-components/src/**/*.js' --list-different",
"prettier:core": "prettier './packages/blockchain-wallet-v4/src/**/*.js' --list-different",
"prettier:fix": "prettier './packages/*/src/**/*.js' --list-different --write",
"prettier:frontend": "prettier './packages/blockchain-wallet-v4-frontend/src/**/*.js' --list-different",
"prettier": "prettier './packages/*/src/**/*.js' --list-different --write",
"prettier:components": "prettier './packages/blockchain-info-components/src/**/*.js' --list-different --write",
"prettier:core": "prettier './packages/blockchain-wallet-v4/src/**/*.js' --list-different --write",
"prettier:frontend": "prettier './packages/blockchain-wallet-v4-frontend/src/**/*.js' --list-different --write",
"start": "yarn workspace blockchain-wallet-v4-frontend start:dev",
"start:dev": "yarn workspace blockchain-wallet-v4-frontend start:dev",
"start:prod": "yarn workspace blockchain-wallet-v4-frontend start:prod",
Expand Down
2 changes: 0 additions & 2 deletions packages/blockchain-wallet-v4/src/pairing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const decode = (data, passphrase) => {
.chain(getCredentials);
};


// encode :: String -> String -> String -> String -> Task Error String
const encode = (guid, sharedKey, password, pairingPassword) => {
const passwordHex = Buffer.from(password, "utf8").toString("hex");
Expand All @@ -57,5 +56,4 @@ const encode = (guid, sharedKey, password, pairingPassword) => {
.map(encrypted => `${VERSION}|${guid}|${encrypted}`);
};


export { parseQRcode, decode, encode };

0 comments on commit 0c71e95

Please sign in to comment.