Prettier (#93)

* 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 <96387156+balzack@users.noreply.github.com>
This commit is contained in:
Lucian I. Last 2024-04-25 22:22:11 +02:00 committed by GitHub
parent 04b00e02be
commit 5b2e42bc6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 14 additions and 1 deletions

2
.gitignore vendored
View File

@ -16,4 +16,4 @@
# vendor/
node_modules
.DS_Store
dist
dist

5
net/web/.prettierrc Normal file
View File

@ -0,0 +1,5 @@
{
"singleQuote": true,
"printWidth": 120,
"singleAttributePerLine": true
}

View File

@ -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",
@ -27,6 +28,8 @@
"scripts": {
"start": "vite",
"build": "vite build",
"lint": "prettier -c .",
"lint:write": "prettier -w .",
"test": "jest"
},
"eslintConfig": {

View File

@ -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"