kopia lustrzana https://github.com/robinmoisson/staticrypt
improve prettier support, add pre-commmit hook
rodzic
3dd49f054b
commit
70c11b4036
|
@ -0,0 +1 @@
|
||||||
|
npx lint-staged
|
|
@ -0,0 +1,4 @@
|
||||||
|
node_modules
|
||||||
|
example/encrypted
|
||||||
|
package-lock.json
|
||||||
|
index.html
|
Plik diff jest za duży
Load Diff
13
package.json
13
package.json
|
@ -28,7 +28,14 @@
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"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": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -49,6 +56,8 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/robinmoisson/staticrypt",
|
"homepage": "https://github.com/robinmoisson/staticrypt",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"prettier": "^2.8.7"
|
"husky": "^9.1.6",
|
||||||
|
"lint-staged": "^15.2.10",
|
||||||
|
"prettier": "^2.8.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue