Files
linea-monorepo/package.json
kyzooghost a5119c43b0 Feat/husky lint (#431)
* add poc husky lint script

* test commit change

* undo test change

* test change

* undo test change

* test

* test

* test

* test

* do

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* refactor to pre-commit to NodeJS script

* add logs for demo

* small refactor of pre-commit.js

* add shebang to pre-commit

* add other folders to husky script

* added postman to pre-commit

* remove test md change

* add comments for pre-commit.js

* adjust lint:fix scripts

* Update .husky/pre-commit.js

Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
Signed-off-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>

---------

Signed-off-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>
Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
2024-12-20 23:34:59 +11:00

35 lines
1.0 KiB
JSON

{
"name": "linea-monorepo",
"author": "Consensys Software Inc.",
"engines": {
"node": ">=20",
"pnpm": ">=9"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"lint:ts": "pnpm run -r --if-present lint:ts",
"lint:ts:fix": "pnpm run -r --if-present lint:ts:fix",
"prettier": "pnpm run -r --if-present prettier",
"prettier:fix": "pnpm run -r --if-present prettier:fix",
"lint:fix": "pnpm run -r --if-present lint:fix",
"clean": "pnpm run -r --if-present clean && rm -rf node_modules",
"test": "pnpm run -r --if-present test",
"build": "pnpm run -r --if-present build",
"prepare": "husky"
},
"devDependencies": {
"@types/node": "20.12.7",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.3",
"husky": "9.1.7",
"prettier": "3.2.5",
"rimraf": "5.0.5",
"ts-node": "10.9.2",
"typescript": "5.4.5"
},
"packageManager": "pnpm@9.14.4"
}