Skip to content

Commit

Permalink
Add prettier config file (#185)
Browse files Browse the repository at this point in the history
* Add prettierrc which mirrors current settings as closely as possible

* Bump prettier
  • Loading branch information
niik committed Aug 19, 2020
1 parent abe28b4 commit 9293e41
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .prettierrc.yml
@@ -0,0 +1,6 @@
singleQuote: false
trailingComma: es5
semi: true
proseWrap: always
endOfLine: auto
arrowParens: avoid
4 changes: 2 additions & 2 deletions lib/registry.ts
Expand Up @@ -36,7 +36,7 @@ export enum RegistryValueType {
REG_NONE = "REG_NONE",
REG_QWORD = "REG_QWORD",
REG_QWORD_LITTLE_ENDIAN = "REG_QWORD_LITTLE_ENDIAN",
REG_SZ = "REG_SZ"
REG_SZ = "REG_SZ",
}

export type RegistryStringEntry = {
Expand Down Expand Up @@ -64,7 +64,7 @@ export enum HKEY {
HKEY_PERFORMANCE_DATA = "HKEY_PERFORMANCE_DATA",
HKEY_PERFORMANCE_TEXT = "HKEY_PERFORMANCE_TEXT",
HKEY_PERFORMANCE_NLSTEXT = "HKEY_PERFORMANCE_NLSTEXT",
HKEY_USERS = "HKEY_USERS"
HKEY_USERS = "HKEY_USERS",
}

function mapToLong(key: HKEY): number {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -39,7 +39,7 @@
"jest": "^24.0.0",
"node-abi": "2.18.0",
"prebuild": "^10.0.0",
"prettier": "^1.14.2",
"prettier": "^2.0.5",
"ts-node": "^8.0.1",
"typescript": "^3.0.1"
},
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -3430,10 +3430,10 @@ prelude-ls@~1.1.2:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=

prettier@^1.14.2:
version "1.18.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==
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-format@^24.8.0:
version "24.8.0"
Expand Down

0 comments on commit 9293e41

Please sign in to comment.