Upgrade prettier to 1.13 (#335)
Release notes: https://prettier.io/blog/2018/05/27/1.13.0.html
This commit is contained in:
parent
754de16524
commit
3ac051b16c
|
@ -43,7 +43,7 @@
|
||||||
"object-assign": "4.1.1",
|
"object-assign": "4.1.1",
|
||||||
"postcss-flexbugs-fixes": "3.2.0",
|
"postcss-flexbugs-fixes": "3.2.0",
|
||||||
"postcss-loader": "2.0.8",
|
"postcss-loader": "2.0.8",
|
||||||
"prettier": "^1.10.2",
|
"prettier": "^1.13.4",
|
||||||
"promise": "8.0.1",
|
"promise": "8.0.1",
|
||||||
"raf": "3.4.0",
|
"raf": "3.4.0",
|
||||||
"react": "^16.2.0",
|
"react": "^16.2.0",
|
||||||
|
|
|
@ -15,7 +15,8 @@ process.on("unhandledRejection", (err) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
export default class CombineCommand extends Command {
|
export default class CombineCommand extends Command {
|
||||||
static description = "combine multiple contribution graphs into one big graph";
|
static description =
|
||||||
|
"combine multiple contribution graphs into one big graph";
|
||||||
|
|
||||||
// We disable strict-mode so that we can accept a variable number of
|
// We disable strict-mode so that we can accept a variable number of
|
||||||
// arguments. Although this is what the docs [1] suggest, it doesn't
|
// arguments. Although this is what the docs [1] suggest, it doesn't
|
||||||
|
@ -24,7 +25,8 @@ export default class CombineCommand extends Command {
|
||||||
// [1]: https://oclif.io/docs/commands.html
|
// [1]: https://oclif.io/docs/commands.html
|
||||||
static strict = false;
|
static strict = false;
|
||||||
|
|
||||||
static usage = "" +
|
static usage =
|
||||||
|
"" +
|
||||||
"combine [GRAPH]...\n" +
|
"combine [GRAPH]...\n" +
|
||||||
" where each GRAPH is a JSON file generated by plugin-graph";
|
" where each GRAPH is a JSON file generated by plugin-graph";
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,9 @@ export default class StartCommand extends Command {
|
||||||
};
|
};
|
||||||
|
|
||||||
async run() {
|
async run() {
|
||||||
const {flags: {"sourcecred-directory": sourcecredDirectory}} = this.parse(
|
const {
|
||||||
StartCommand
|
flags: {"sourcecred-directory": sourcecredDirectory},
|
||||||
);
|
} = this.parse(StartCommand);
|
||||||
startServer(sourcecredDirectory);
|
startServer(sourcecredDirectory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,7 +169,8 @@ class GitGraphCreator {
|
||||||
} else {
|
} else {
|
||||||
// One entry for each possible URL.
|
// One entry for each possible URL.
|
||||||
const urls = treeAndNameToSubmoduleUrls[tree.hash][name];
|
const urls = treeAndNameToSubmoduleUrls[tree.hash][name];
|
||||||
return urls.map((url): Node<SubmoduleCommitPayload> => ({
|
return urls.map(
|
||||||
|
(url): Node<SubmoduleCommitPayload> => ({
|
||||||
address: _makeAddress(
|
address: _makeAddress(
|
||||||
SUBMODULE_COMMIT_NODE_TYPE,
|
SUBMODULE_COMMIT_NODE_TYPE,
|
||||||
submoduleCommitId(entry.hash, url)
|
submoduleCommitId(entry.hash, url)
|
||||||
|
@ -178,7 +179,8 @@ class GitGraphCreator {
|
||||||
hash: entry.hash,
|
hash: entry.hash,
|
||||||
url,
|
url,
|
||||||
},
|
},
|
||||||
}));
|
})
|
||||||
|
);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
contentsNodes.forEach((contentsNode) => {
|
contentsNodes.forEach((contentsNode) => {
|
||||||
|
|
|
@ -182,7 +182,9 @@ describe("createGraph", () => {
|
||||||
expect.objectContaining({payload: expectedPayload})
|
expect.objectContaining({payload: expectedPayload})
|
||||||
);
|
);
|
||||||
|
|
||||||
const {payload: {childCommit, parentCommit, path}} = edge;
|
const {
|
||||||
|
payload: {childCommit, parentCommit, path},
|
||||||
|
} = edge;
|
||||||
expect(path).not.toHaveLength(0);
|
expect(path).not.toHaveLength(0);
|
||||||
expect(data.commits[childCommit].parentHashes).toEqual(
|
expect(data.commits[childCommit].parentHashes).toEqual(
|
||||||
expect.arrayContaining([parentCommit])
|
expect.arrayContaining([parentCommit])
|
||||||
|
|
|
@ -5356,9 +5356,9 @@ preserve@^0.2.0:
|
||||||
version "0.2.0"
|
version "0.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
|
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
|
||||||
|
|
||||||
prettier@^1.10.2:
|
prettier@^1.13.4:
|
||||||
version "1.10.2"
|
version "1.13.4"
|
||||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.10.2.tgz#1af8356d1842276a99a5b5529c82dd9e9ad3cc93"
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.4.tgz#31bbae6990f13b1093187c731766a14036fa72e6"
|
||||||
|
|
||||||
pretty-bytes@^4.0.2:
|
pretty-bytes@^4.0.2:
|
||||||
version "4.0.2"
|
version "4.0.2"
|
||||||
|
|
Loading…
Reference in New Issue