Skip to content

Commit

Permalink
build: add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
olehan committed Mar 2, 2021
1 parent 985b04d commit 1eddc85
Show file tree
Hide file tree
Showing 69 changed files with 1,364 additions and 17 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
678 changes: 678 additions & 0 deletions .pnp.js

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
23 changes: 21 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,29 @@
"packages/*"
],
"scripts": {
"lint": "yarn eslint --cache --max-warnings 0 packages",
"postinstall": "yarn husky install",
"lint": "yarn lint:files packages",
"lint:files": "yarn eslint --cache --max-warnings 0",
"test": "yarn packages/tests test"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"packages/**/*.[jt]s?(x)": [
"yarn lint:files"
]
},
"eslintConfig": {
"extends": [
"@azimutlabs/eslint-config"
"@azimutlabs"
]
},
"eslintIgnore": [
"**/lib"
],
"devDependencies": {
"@azimutlabs/eslint-config": "file:packages/eslint-config",
"@azimutlabs/eslint-config-core": "file:packages/eslint-config-core",
Expand All @@ -42,6 +57,8 @@
"@azimutlabs/eslint-config-prettier": "file:packages/eslint-config-typescript",
"@azimutlabs/eslint-config-react": "file:packages/eslint-config-react",
"@azimutlabs/eslint-config-typescript": "file:packages/eslint-config-typescript",
"@commitlint/cli": "^12.0.1",
"@commitlint/config-conventional": "^12.0.1",
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",
"eslint": "^7.21.0",
Expand All @@ -52,7 +69,9 @@
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"husky": "^5.1.3",
"lerna": "^3.20.2",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1",
"react": "^17.0.1",
"typescript": "4.1.5"
Expand Down
Loading

0 comments on commit 1eddc85

Please sign in to comment.