monkeytype/package.json
Bruce Berrios 1384e9f81d
Add pretty check (#2990) bruception
* Add pretty check

* test

* test

* Add pretty check

* Add condition check

* Enforce style on code changes

* Update scripts

* Any src
2022-05-19 11:31:18 +02:00

51 lines
2.1 KiB
JSON

{
"name": "monkeytype",
"version": "1.14.3",
"license": "GPL-3.0",
"private": true,
"scripts": {
"lint": "eslint \"./backend/**/*.ts\" \"./frontend/src/ts/**/*.ts\"",
"install-all": "sh ./bin/install.sh",
"install-windows": ".\\bin\\install.cmd",
"docker": "cd backend && docker-compose up",
"test-backend": "cd backend && npm run test",
"dev": "concurrently --kill-others \"npm run dev-fe\" \"npm run dev-be\"",
"dev-be": "cd backend && npm run dev",
"dev-fe": "cd frontend && npm run dev",
"live": "concurrently --kill-others \"cd frontend && npm run live\" \"cd backend && npm run start\"",
"audit-fe": "cd frontend && npm run audit",
"deploy-live": "cd frontend && npm run deploy-live",
"build-fe": "cd ./frontend && npm run build-live",
"pretty": "prettier --check './backend/**/*.{ts,json,lua}' './frontend/**/*.{ts,js,scss}' './frontend/static/**/*.{json,html}'",
"pretty-code": "prettier --check './backend/**/*.{ts,js,json,lua}' './frontend/**/*.{ts,js}' './frontend/src/**/*.scss'",
"pretty-fix": "prettier --write './backend/**/*.{ts,json,lua}' './frontend/**/*.{ts,js,scss}' './frontend/static/**/*.{json,html}'",
"pr-check-lint-json": "cd frontend && npx gulp pr-check-lint-json",
"pr-check-quote-json": "cd frontend && npx gulp pr-check-quote-json",
"pr-check-language-json": "cd frontend && npx gulp pr-check-language-json",
"pr-check-other-json": "cd frontend && npx gulp pr-check-other-json",
"pr-check-ts": "cd frontend && npx gulp pr-check-ts",
"pr-check-build-be": "cd backend && npm run build"
},
"engines": {
"npm": "8.1.2"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "5.20.0",
"@typescript-eslint/parser": "5.20.0",
"concurrently": "5.3.0",
"eslint": "8.8.0",
"eslint-plugin-json": "2.1.2",
"eslint-plugin-require-path-exists": "1.1.9",
"husky": "4.3.0",
"jsonschema": "1.4.0",
"prettier": "2.5.1",
"pretty-quick": "3.1.0",
"typescript": "4.5.5"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && npm run lint"
}
}
}