config husky

This commit is contained in:
Jyotirmoy Bandyopadhayaya 2023-04-20 13:46:15 +05:30
parent edb2544e60
commit 2544ce8031
Signed by: bravo68web
GPG Key ID: F5671FD7BCB9917A
5 changed files with 39 additions and 8515 deletions

21
.eslintrc Normal file
View File

@ -0,0 +1,21 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "off"
},
"env": {
"browser": true,
"es2021": true
}
}

3
.gitignore vendored
View File

@ -132,3 +132,6 @@ dist
**/jwtRS256.key
**/jwtRS256.key.pub
**/yarn.lock
.husky

View File

@ -1,4 +0,0 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx lint-staged

View File

@ -7,16 +7,27 @@
"license": "MIT",
"private": true,
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.7.0",
"husky": "^8.0.2",
"lerna": "^6.1.0",
"lint-staged": "^13.0.4",
"turbo": "^1.6.3"
"lint-staged": "^13.0.4"
},
"scripts": {
"prepare": "husky install"
"configure-husky": "npx husky install && npx husky add .husky/pre-commit \"npx --no-install lint-staged\""
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
"**/*.{js,json,ts,css}": [
"eslint --fix",
"prettier --write \"**/*.{ts,tsx,js,jsx,json,css,scss,md}\""
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"workspaces": [
"packages/*"

8507
yarn.lock

File diff suppressed because it is too large Load Diff