Skip to content
Snippets Groups Projects
Unverified Commit 1f8740a8 authored by Konstantin Tsabolov's avatar Konstantin Tsabolov
Browse files

chore: add Husky and lint-staged to the root

parent 26eb127f
No related branches found
No related tags found
2 merge requests!9feat(ssi): Establish a trusted connection with yourself,!8Project house-keeping, refactoring and reorganizing
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no -- commitlint --edit ${1}
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm lint-staged
{
"apps/**/*.ts": ["npm run lint", "npm run format"]
}
module.exports = {
extends: ['@commitlint/config-conventional']
};
...@@ -12,9 +12,13 @@ ...@@ -12,9 +12,13 @@
"lint": "eslint --fix", "lint": "eslint --fix",
"lint:all": "npm run lint -- .", "lint:all": "npm run lint -- .",
"format": "prettier --write", "format": "prettier --write",
"format:all": "npm run format -- ." "format:all": "npm run format -- .",
"lint-staged": "lint-staged",
"prepare": "husky install"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^18.4.2",
"@commitlint/config-conventional": "^18.4.2",
"@typescript-eslint/eslint-plugin": "^6.11.0", "@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0", "@typescript-eslint/parser": "^6.11.0",
"eslint": "^8.54.0", "eslint": "^8.54.0",
...@@ -23,6 +27,8 @@ ...@@ -23,6 +27,8 @@
"eslint-plugin-import": "^2.29.0", "eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "^5.0.1", "eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-workspaces": "^0.9.0", "eslint-plugin-workspaces": "^0.9.0",
"husky": "^8.0.0",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0" "prettier": "^3.1.0"
} }
} }
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment