Skip to content

Commit

Permalink
chore(package): update prettier to version 2.0.5
Browse files Browse the repository at this point in the history
Closes #91
  • Loading branch information
greenkeeper[bot] authored and sharvit committed Aug 8, 2020
1 parent cb2a509 commit ff8fdb4
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"jest": "^24.1.0",
"prettier": "^1.15.3",
"prettier": "^2.0.5",
"rimraf": "^3.0.0",
"semantic-release": "^17.0.2",
"watch": "^1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/app/generators/project/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class extends BaseGenerator {

configuring() {
if (path.basename(this.destinationRoot()) !== this.options.projectName) {
return makeDir(this.options.projectName).then(path => {
return makeDir(this.options.projectName).then((path) => {
this.destinationRoot(path);
this.log(chalk`\nGenerating a new project in {green ${path}}\n`);
});
Expand Down
2 changes: 1 addition & 1 deletion src/app/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ test('default files with --noDefaults', async () => {
test('remove .yo-rc.json if exists', async () => {
await runAppGenerator()
.withPrompts(requiredPrompts)
.inTmpDir(function(dir) {
.inTmpDir(function (dir) {
// `dir` is the path to the new temporary directory
fs.writeFileSync(path.join(dir, '.yo-rc.json'), '{}');
});
Expand Down
6 changes: 3 additions & 3 deletions src/app/lib/__mocks__/github.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Github = jest.fn(function({ on2Fa }) {
const Github = jest.fn(function ({ on2Fa }) {
this._on2Fa = () => {
if (Github.use2fa && !this._on2FaCalled) {
this._on2FaCalled = true;
Expand All @@ -9,15 +9,15 @@ const Github = jest.fn(function({ on2Fa }) {

Github.use2fa = false;

Github.prototype.createRepository = jest.fn(async function() {
Github.prototype.createRepository = jest.fn(async function () {
await this._on2Fa();

return {
data: { html_url: 'some-html-url' },
};
});

Github.prototype.authenticate = jest.fn(async function() {
Github.prototype.authenticate = jest.fn(async function () {
await this._on2Fa();

return 'some-token';
Expand Down
2 changes: 1 addition & 1 deletion src/app/lib/commander.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('Commander', () => {

commander._parseCommand = jest
.fn()
.mockImplementation(command => ({ main, args }));
.mockImplementation((command) => ({ main, args }));
commander._logCommand = jest.fn();

commander._runCommand(command);
Expand Down
2 changes: 1 addition & 1 deletion src/app/prompter.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export default class Prompter {
};

if (prompt.required) {
result.validate = input => {
result.validate = (input) => {
if (
input === undefined ||
(typeof input === 'string' &&
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8041,10 +8041,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@^1.15.3:
version "1.19.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
prettier@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4"
integrity sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==

pretty-bytes@^5.2.0:
version "5.3.0"
Expand Down

0 comments on commit ff8fdb4

Please sign in to comment.