Skip to content

Commit

Permalink
prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
silasbw committed Sep 27, 2022
1 parent 3c97477 commit 7dc73d2
Show file tree
Hide file tree
Showing 5 changed files with 3,035 additions and 79 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.firebase/
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ignore since running yarn add package will rewrite it
package.json

build
submodules
.docusaurus
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc"
"typecheck": "tsc",
"format": "prettier --loglevel error --write .",
"format:check": "prettier --check ."
},
"dependencies": {
"@docusaurus/core": "2.1.0",
Expand All @@ -26,6 +28,9 @@
"devDependencies": {
"@docusaurus/module-type-aliases": "2.1.0",
"@tsconfig/docusaurus": "^1.0.5",
"@valora/prettier-config": "^0.0.1",
"firebase-tools": "^11.11.0",
"prettier": "^2.7.1",
"typescript": "^4.7.4"
},
"browserslist": {
Expand All @@ -42,5 +47,6 @@
},
"engines": {
"node": ">=16.14"
}
},
"prettier": "@valora/prettier-config"
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"extends": "@tsconfig/docusaurus/tsconfig.json",
"compilerOptions": {
"baseUrl": "."
}
},
"exclude": ["submodules"]
}
Loading

0 comments on commit 7dc73d2

Please sign in to comment.