Merge pull request #16 from Pustur/add-prettier
Add prettier and format script
This commit is contained in:
commit
dc8bb0eed7
3 changed files with 30 additions and 0 deletions
6
.prettierrc
Normal file
6
.prettierrc
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"trailingComma": "all",
|
||||
"endOfLine": "lf",
|
||||
"tabWidth": 2,
|
||||
"printWidth": 120
|
||||
}
|
22
package-lock.json
generated
22
package-lock.json
generated
|
@ -30,6 +30,7 @@
|
|||
"@types/ws": "^8.5.3",
|
||||
"chai": "^4.3.6",
|
||||
"mocha": "^10.0.0",
|
||||
"prettier": "^2.7.1",
|
||||
"sinon": "^14.0.0",
|
||||
"sinon-chai": "^3.7.0"
|
||||
}
|
||||
|
@ -1404,6 +1405,21 @@
|
|||
"url": "https://github.com/sponsors/jonschlinkert"
|
||||
}
|
||||
},
|
||||
"node_modules/prettier": {
|
||||
"version": "2.7.1",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz",
|
||||
"integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"prettier": "bin-prettier.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/prettier/prettier?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/pretty-format": {
|
||||
"version": "29.1.2",
|
||||
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.1.2.tgz",
|
||||
|
@ -2908,6 +2924,12 @@
|
|||
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
|
||||
"dev": true
|
||||
},
|
||||
"prettier": {
|
||||
"version": "2.7.1",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz",
|
||||
"integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==",
|
||||
"dev": true
|
||||
},
|
||||
"pretty-format": {
|
||||
"version": "29.1.2",
|
||||
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.1.2.tgz",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"bin": "./npx/bitburner-filesync.ts",
|
||||
"main": "./npx/bitburner-filesync.ts",
|
||||
"scripts": {
|
||||
"format": "prettier -w .",
|
||||
"test:all": "mocha --recursive test",
|
||||
"test:single": "mocha",
|
||||
"start": "npx/bitburner-filesync.ts"
|
||||
|
@ -34,6 +35,7 @@
|
|||
"ws": "^8.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^2.7.1",
|
||||
"@types/chai": "^4.3.3",
|
||||
"@types/convict": "^6.1.1",
|
||||
"@types/expect": "^24.3.0",
|
||||
|
|
Loading…
Add table
Reference in a new issue