Skip to content

Commit

Permalink
chore(deps, lint): add lint with husky and lint-staged (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x authored Sep 29, 2021
1 parent 1d43efa commit 987d76a
Show file tree
Hide file tree
Showing 3 changed files with 316 additions and 19 deletions.
7 changes: 7 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"


yarn run lint-staged
yarn run build
yarn run test
46 changes: 32 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"author": "ri7nz <hi@rin.rocks>",
"license": "MIT",
"homepage": "https://rescript-chakra.vercel.app/",
"publishConfig": {
"access": "public"
},
"files": [
"src/**/*.re",
"src/**/*.rei",
Expand All @@ -32,32 +35,47 @@
"semantic-release": "semantic-release",
"ci": "yarn install --immutable",
"pretest": "yarn build",
"test": "jest"
"test": "jest",
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable"
},
"publishConfig": {
"access": "public"
"jest": {
"verbose": true,
"testPathIgnorePatterns": [
"/node_modules/",
"/testUtils/"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/testUtils/"
]
},
"prettier": {
"trailingComma": "all"
},
"lint-staged": {
"*.{md,json,js}": [
"prettier --write"
],
"*.{res,resi}": [
"bsrefmt --in-place"
]
},
"devDependencies": {
"@glennsl/bs-jest": "0.7.0",
"@rescript/react": "0.10.3",
"husky": "7.0.2",
"jest": "26.6.3",
"lint-staged": "11.1.2",
"pinst": "2.1.6",
"prettier": "2.4.1",
"rescript": "9.1.4",
"semantic-release": "17.4.4",
"semantic-release-npm-github-publish": "1.4.0"
},
"peerDependencies": {
"@chakra-ui/react": ">=1.6.3",
"@rescript/react": "0.10.3"
},
"jest": {
"verbose": true,
"testPathIgnorePatterns": [
"/node_modules/",
"/testUtils/"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/testUtils/"
]
}
}
Loading

0 comments on commit 987d76a

Please sign in to comment.