improve prettier support, add pre-commmit hook

pull/204/head
robinmoisson 2024-09-27 16:25:45 +02:00
rodzic 3dd49f054b
commit 70c11b4036
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 05C05FC1814FBF27
5 zmienionych plików z 1881 dodań i 398 usunięć

Wyświetl plik

@ -0,0 +1 @@
npx lint-staged

4
.prettierignore 100644
Wyświetl plik

@ -0,0 +1,4 @@
node_modules
example/encrypted
package-lock.json
index.html

1489
package-lock.json wygenerowano

Plik diff jest za duży Load Diff

Wyświetl plik

@ -28,7 +28,14 @@
],
"license": "MIT",
"scripts": {
"build": "bash ./scripts/build.sh"
"build": "bash ./scripts/build.sh",
"format": "prettier --write \"**/*.{js,json,html}\"",
"prepare": "husky"
},
"lint-staged": {
"**/*.{js,json,html}": [
"prettier --write"
]
},
"repository": {
"type": "git",
@ -49,6 +56,8 @@
},
"homepage": "https://github.com/robinmoisson/staticrypt",
"devDependencies": {
"prettier": "^2.8.7"
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"prettier": "^2.8.8"
}
}