Skip to content

Commit

Permalink
Add prettier config to package.json (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
kassens committed Sep 28, 2018
1 parent 01bdc78 commit 232e077
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 4 deletions.
13 changes: 11 additions & 2 deletions package.json
Expand Up @@ -5,18 +5,27 @@
"devDependencies": {
"babel-eslint": "^7.2.3",
"eslint": "^4.2.0",
"eslint-plugin-babel": "^4.1.1",
"eslint-config-fbjs": "0.0.0",
"eslint-plugin-babel": "^4.1.1",
"eslint-plugin-flowtype": "^2.35.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.1.0",
"eslint-plugin-relay": "0.0.8"
"eslint-plugin-relay": "0.0.8",
"prettier": "^1.14.3"
},
"scripts": {
"prettier": "find . -name node_modules -prune -or -name dist -prune -or -name '*.js' -print | xargs prettier --write",
"lint": "eslint .",
"fbjs:build": "cd packages/fbjs && yarn && yarn run build",
"fbjs:test": "cd packages/fbjs && yarn && yarn run test",
"fbjs:flow": "cd packages/fbjs && yarn && yarn run flow",
"preset:test": "cd packages/babel-preset-fbjs && yarn && yarn run test"
},
"prettier": {
"requirePragma": true,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": false,
"jsxBracketSameLine": true
}
}
7 changes: 5 additions & 2 deletions packages/signedsource/index.js
@@ -1,9 +1,12 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/

'use strict';

const crypto = require('crypto');
Expand Down Expand Up @@ -79,7 +82,7 @@ const SignedSource = {
if (!matches) {
throw new Error(
'SignedSource.verifySignature(...): Cannot verify signature of an ' +
'unsigned file.'
'unsigned file.'
);
}
const actual = matches[1];
Expand Down

0 comments on commit 232e077

Please sign in to comment.