mirror of
https://github.com/status-im/js-waku.git
synced 2025-02-22 18:08:14 +00:00
chore: setup husky/lint-staged at root
This commit is contained in:
parent
2f8eb0fbcc
commit
dc4089a1dd
31944
package-lock.json
generated
Normal file
31944
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@ -4,7 +4,23 @@
|
|||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
|
"scripts": {
|
||||||
|
"prepare": "husky install"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lerna": "^6.0.1"
|
"husky": "^8.0.1",
|
||||||
|
"lerna": "^6.0.1",
|
||||||
|
"lint-staged": "^13.0.3"
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"*.ts": [
|
||||||
|
"eslint --fix"
|
||||||
|
],
|
||||||
|
"*.{ts,json,conf*.*js}": [
|
||||||
|
"prettier --write"
|
||||||
|
],
|
||||||
|
"./*.*js": [
|
||||||
|
"prettier --write"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,6 @@
|
|||||||
"dapps"
|
"dapps"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "husky install",
|
|
||||||
"build": "run-s build:**",
|
"build": "run-s build:**",
|
||||||
"build:esm": "tsc && node build-scripts/fix-imports.js",
|
"build:esm": "tsc && node build-scripts/fix-imports.js",
|
||||||
"build:bundle": "rollup --config rollup.config.js",
|
"build:bundle": "rollup --config rollup.config.js",
|
||||||
@ -157,7 +156,6 @@
|
|||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"fast-check": "^2.14.0",
|
"fast-check": "^2.14.0",
|
||||||
"gh-pages": "^3.2.3",
|
"gh-pages": "^3.2.3",
|
||||||
"husky": "^7.0.4",
|
|
||||||
"ignore-loader": "^0.1.2",
|
"ignore-loader": "^0.1.2",
|
||||||
"isomorphic-fetch": "^3.0.0",
|
"isomorphic-fetch": "^3.0.0",
|
||||||
"jsdom": "^19.0.0",
|
"jsdom": "^19.0.0",
|
||||||
@ -166,7 +164,6 @@
|
|||||||
"karma-chrome-launcher": "^3.1.0",
|
"karma-chrome-launcher": "^3.1.0",
|
||||||
"karma-mocha": "^2.0.1",
|
"karma-mocha": "^2.0.1",
|
||||||
"karma-webpack": "^5.0.0",
|
"karma-webpack": "^5.0.0",
|
||||||
"lint-staged": "^13.0.3",
|
|
||||||
"mocha": "^9.1.3",
|
"mocha": "^9.1.3",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"p-timeout": "^6.0.0",
|
"p-timeout": "^6.0.0",
|
||||||
@ -194,16 +191,5 @@
|
|||||||
"CHANGELOG.md",
|
"CHANGELOG.md",
|
||||||
"LICENSE",
|
"LICENSE",
|
||||||
"README.md"
|
"README.md"
|
||||||
],
|
]
|
||||||
"lint-staged": {
|
|
||||||
"*.ts": [
|
|
||||||
"eslint --fix"
|
|
||||||
],
|
|
||||||
"*.{ts,json,conf*.*js}": [
|
|
||||||
"prettier --write"
|
|
||||||
],
|
|
||||||
"./*.*js": [
|
|
||||||
"prettier --write"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user