Skip to content

Commit

Permalink
Prettier (#93)
Browse files Browse the repository at this point in the history
* Add ignore dsstore node_modules

* Rename to typescript

rnr -r '(.*)\.js$' '$1.ts' ./src ./test
rnr -rf '(.*)\.jsx$' '$1.tsx' ./src ./test

* Remove package lock

* Fix extension of tsx at context

* init typescript

* .

* Compiles, moved to vite

* lint new files

* Move to prettier

---------

Co-authored-by: Pierre Balzack <[email protected]>
  • Loading branch information
lil5 and balzack committed Apr 25, 2024
1 parent 04b00e0 commit 5b2e42b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
# vendor/
node_modules
.DS_Store
dist
dist
5 changes: 5 additions & 0 deletions net/web/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"printWidth": 120,
"singleAttributePerLine": true
}
3 changes: 3 additions & 0 deletions net/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"crypto-js": "^4.1.1",
"dompurify": "^3.0.1",
"jsencrypt": "^2.3.1",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-color": "^2.19.3",
"react-dom": "^18.2.0",
Expand All @@ -27,6 +28,8 @@
"scripts": {
"start": "vite",
"build": "vite build",
"lint": "prettier -c .",
"lint:write": "prettier -w .",
"test": "jest"
},
"eslintConfig": {
Expand Down
5 changes: 5 additions & 0 deletions net/web/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4630,6 +4630,11 @@ prelude-ls@~1.1.2:
resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz"
integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==

prettier@^3.2.5:
version "3.2.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==

pretty-format@^27.0.2:
version "27.5.1"
resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz"
Expand Down

0 comments on commit 5b2e42b

Please sign in to comment.