-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #235 from ghiscoding/chore/eslint-prettier-write-fix
chore: execute prettier format on the entire project
- Loading branch information
Showing
209 changed files
with
3,401 additions
and
3,484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"recommendations": [ | ||
"editorconfig.editorconfig", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
"recommendations": ["editorconfig.editorconfig", "dbaeumer.vscode-eslint"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,4 @@ | |
"problemMatcher": [] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"use strict"; | ||
'use strict'; | ||
|
||
module.exports = "A"; | ||
module.exports = 'A'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
"use strict"; | ||
'use strict'; | ||
|
||
const fs = require("fs"); | ||
const path = require("path"); | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const distDir = path.resolve("dist"); | ||
const pkg = JSON.parse(fs.readFileSync(path.resolve("package.json"), "utf8")); | ||
const distDir = path.resolve('dist'); | ||
const pkg = JSON.parse(fs.readFileSync(path.resolve('package.json'), 'utf8')); | ||
|
||
delete pkg.private; | ||
delete pkg.scripts; | ||
delete pkg.publishConfig; | ||
|
||
pkg.description = "big important things to do"; | ||
pkg.main = "prepacked.js"; | ||
pkg.description = 'big important things to do'; | ||
pkg.main = 'prepacked.js'; | ||
|
||
fs.mkdirSync(distDir); | ||
fs.writeFileSync(path.join(distDir, "package.json"), JSON.stringify(pkg, null, 2)); | ||
fs.writeFileSync(path.join(distDir, "prepacked.js"), "module.exports = 'B';"); | ||
fs.writeFileSync(path.join(distDir, 'package.json'), JSON.stringify(pkg, null, 2)); | ||
fs.writeFileSync(path.join(distDir, 'prepacked.js'), "module.exports = 'B';"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"use strict"; | ||
'use strict'; | ||
|
||
const fs = require("fs"); | ||
const path = require("path"); | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
fs.writeFileSync(path.resolve("index.js"), "module.exports = 'C';"); | ||
fs.writeFileSync(path.resolve('index.js'), "module.exports = 'C';"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"use strict"; | ||
'use strict'; | ||
|
||
module.exports = "D"; | ||
module.exports = 'D'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"use strict"; | ||
'use strict'; | ||
|
||
console.log("postpack"); | ||
console.log('postpack'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
declare module '*'; | ||
declare module '*'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
"use strict"; | ||
'use strict'; | ||
|
||
const execa = require("execa"); | ||
const execa = require('execa'); | ||
|
||
module.exports.getCommitMessage = getCommitMessage; | ||
|
||
function getCommitMessage(cwd, format = "%B") { | ||
return execa("git", ["log", "-1", `--pretty=format:${format}`], { cwd }).then((result) => result.stdout); | ||
function getCommitMessage(cwd, format = '%B') { | ||
return execa('git', ['log', '-1', `--pretty=format:${format}`], { cwd }).then((result) => result.stdout); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
"use strict"; | ||
'use strict'; | ||
|
||
const execa = require("execa"); | ||
const execa = require('execa'); | ||
|
||
module.exports.gitCheckout = gitCheckout; | ||
|
||
function gitCheckout(cwd, args) { | ||
return execa("git", ["checkout", ...args], { cwd }); | ||
return execa('git', ['checkout', ...args], { cwd }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
"use strict"; | ||
'use strict'; | ||
|
||
const execa = require("execa"); | ||
const execa = require('execa'); | ||
|
||
module.exports.gitMerge = gitMerge; | ||
|
||
function gitMerge(cwd, args) { | ||
return execa("git", ["merge", ...args], { cwd }); | ||
return execa('git', ['merge', ...args], { cwd }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
"use strict"; | ||
'use strict'; | ||
|
||
const cp = require("child_process"); | ||
const cp = require('child_process'); | ||
|
||
module.exports.gitStatus = gitStatus; | ||
|
||
function gitStatus(cwd) { | ||
return cp.spawnSync("git", ["status", "--porcelain"], { cwd, encoding: "utf8" }); | ||
return cp.spawnSync('git', ['status', '--porcelain'], { cwd, encoding: 'utf8' }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
"use strict"; | ||
'use strict'; | ||
|
||
const execa = require("execa"); | ||
const execa = require('execa'); | ||
|
||
module.exports.gitTag = gitTag; | ||
|
||
function gitTag(cwd, tagName) { | ||
return execa("git", ["tag", tagName, "-m", tagName], { cwd }); | ||
return execa('git', ['tag', tagName, '-m', tagName], { cwd }); | ||
} |
Oops, something went wrong.