Skip to content

Commit 818fa05

Browse files
committed
style: Add prettier configuration & script.
1 parent 73f077b commit 818fa05

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"author": "Ayfri",
33
"description": "The argument parser used in the Advanced-Command-Handler.",
44
"devDependencies": {
5+
"prettier": "^2.3.2",
56
"typescript": "^4.3.5"
67
},
78
"keywords": [
@@ -12,10 +13,20 @@
1213
],
1314
"license": "GNU",
1415
"main": "index.js",
16+
"prettier": {
17+
"arrowParens": "avoid",
18+
"bracketSpacing": false,
19+
"printWidth": 160,
20+
"singleQuote": true,
21+
"tabWidth": 4,
22+
"trailingComma": "es5",
23+
"useTabs": true
24+
},
1525
"name": "argument-parser",
1626
"scripts": {
1727
"build": "tsc",
18-
"prepublishOnly": "npm run build"
28+
"prepublishOnly": "npm run prettier && npm run build",
29+
"prettier": "prettier --write *.ts *.json README.md"
1930
},
2031
"version": "0.1.0"
2132
}

0 commit comments

Comments
 (0)