Skip to content
This repository was archived by the owner on Jul 24, 2021. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 25bf58f

Browse files
authoredMar 24, 2020
Install Lint-Staged (#42)
1 parent f27bad6 commit 25bf58f

File tree

5 files changed

+332
-181
lines changed

5 files changed

+332
-181
lines changed
 

‎.huskyrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "lint-staged"
4+
}
5+
}

‎.lintstagedrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"*.{js,ts}": "xo --fix",
3+
"*.{js,jsx,ts,tsx,md,html,css}": "prettier --write"
4+
}

‎.vscode/settings.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"dist": false
55
},
66
"files.associations": {
7-
".all-contributorsrc": "json"
7+
".all-contributorsrc": "json",
8+
".lintstagedrc": "json",
9+
".huskyrc": "json"
810
},
911
"search.exclude": {
1012
"dist": true

‎package.json

+2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@
4040
"clean-webpack-plugin": "^3.0.0",
4141
"codecov": "^3.6.5",
4242
"eslint-plugin-jest": "^23.8.2",
43+
"husky": "^4.2.3",
4344
"jest": "^25.1.0",
4445
"jest-raw-loader": "^1.0.1",
46+
"lint-staged": "^10.0.9",
4547
"raw-loader": "^4.0.0",
4648
"shx": "^0.3.2",
4749
"terser-webpack-plugin": "^2.3.5",

‎yarn.lock

+318-180
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
This repository has been archived.