Skip to content

Commit

Permalink
Merge pull request #484 from the-draupnir-project/gnuxie/prettier-3 A…
Browse files Browse the repository at this point in the history
…dd prettier

This is probably going to be the best opportunity that we have to add and run prettier given that we just added typescript-eslint strict and we're coming out of a huge refactor.
  • Loading branch information
Gnuxie authored Jul 22, 2024
2 parents 7bed134 + 20150c4 commit 96889fb
Show file tree
Hide file tree
Showing 132 changed files with 16,390 additions and 10,968 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
indent_size = 2

[{LICENSE,NOTICE,*.{md,yml,yaml,json}}]
trim_trailing_whitespace = false
Expand Down
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# The first time that we ran prettier.
3b2036c2db205e7f9a10a6b4fef2ec1760b8f51b
8 changes: 8 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# SPDX-FileCopyrightText: 2024 Gnuxie <Gnuxie@protonmail.com>
#
# SPDX-License-Identifier: CC0-1.0

tabWidth: 2
useTabs: false
semi: true
trailingComma: "es5"
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"postbuild": "corepack yarn describe-version",
"describe-version": "(git describe > version.txt.tmp && mv version.txt.tmp version.txt) || true && rm -f version.txt.tmp",
"remove-tests-from-lib": "rm -rf lib/test/ && cp -r lib/src/* lib/ && rm -rf lib/src/",
"lint": "corepack yarn eslint src test",
"lint": "corepack yarn eslint src test && corepack yarn prettier --check src test",
"start:dev": "corepack yarn build && node --async-stack-traces lib/index.js",
"test": "ts-mocha --project ./tsconfig.json test/commands/**/*.ts",
"test:integration": "NODE_ENV=harness ts-mocha --async-stack-traces --forbid-only --require test/integration/fixtures.ts --timeout 300000 --project ./tsconfig.json \"test/integration/**/*Test.ts\"",
Expand Down Expand Up @@ -43,6 +43,7 @@
"eslint": "^9.7.0",
"expect": "^29.7.0",
"mocha": "^10.7.0",
"prettier": "^3.3.3",
"ts-mocha": "^10.0.0",
"typescript": "^5.5.3",
"typescript-eslint": "^7.16.1",
Expand Down
Loading

0 comments on commit 96889fb

Please sign in to comment.