Skip to content

Commit

Permalink
Add Prettier as formatter via npm
Browse files Browse the repository at this point in the history
Prettier is one of the most (if not THE most) popular formatters
for JavaScript-based projects.
  • Loading branch information
JanCVanB committed May 23, 2022
1 parent 1e48e4a commit 41d3c2d
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@
/install
/dist
/MANIFEST

# third-party libraries:
/node_modules
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
html5/js/lib
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
39 changes: 39 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "HTML5 client for Xpra",
"main": "html5/index.html",
"scripts": {
"format": "npx prettier --write .",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand All @@ -15,5 +16,8 @@
"bugs": {
"url": "https://github.com/Xpra-org/xpra-html5/issues"
},
"homepage": "https://github.com/Xpra-org/xpra-html5#readme"
"homepage": "https://github.com/Xpra-org/xpra-html5#readme",
"devDependencies": {
"prettier": "2.6.2"
}
}

0 comments on commit 41d3c2d

Please sign in to comment.