Skip to content

Commit 814ad1c

Browse files
pre commit added
1 parent 2dfe054 commit 814ad1c

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
. "$(dirname "$0")/_/husky.sh"
33

44
npm test
5-
npm test

package.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,17 @@
1818
"storybook": "start-storybook -p 6006 -s ./.storybook/images",
1919
"build-storybook": "build-storybook",
2020
"prepare": "husky install",
21-
"test": ""
21+
"test": "lint-staged"
22+
},
23+
"lint-staged": {
24+
"src/**/*.{js,jsx}": [
25+
"eslint . --fix",
26+
"git add"
27+
],
28+
"style/**/*.scss": [
29+
"stylelint --syntax scss --fix",
30+
"git add"
31+
]
2232
},
2333
"license": "ISC",
2434
"main": "src/bootstrap.js",
@@ -68,7 +78,7 @@
6878
"css-loader": "^5.2.4",
6979
"css-minimizer-webpack-plugin": "^2.0.0",
7080
"detect-port": "^1.3.0",
71-
"eslint": "^7.24.0",
81+
"eslint": "^8.11.0",
7282
"eslint-config-airbnb-base": "^14.2.1",
7383
"eslint-config-prettier": "^8.2.0",
7484
"eslint-loader": "^4.0.2",
@@ -94,7 +104,7 @@
94104
"imagemin-optipng": "^8.0.0",
95105
"imagemin-svgo": "^9.0.0",
96106
"json-loader": "^0.5.7",
97-
"lint-staged": "^10.5.4",
107+
"lint-staged": "^12.3.7",
98108
"mini-css-extract-plugin": "^1.5.0",
99109
"opn": "^6.0.0",
100110
"ora": "^5.4.0",
@@ -108,7 +118,7 @@
108118
"sass-loader": "^11.0.1",
109119
"shelljs": "^0.8.4",
110120
"style-loader": "^2.0.0",
111-
"stylelint": "^13.12.0",
121+
"stylelint": "^14.6.0",
112122
"stylelint-config-prettier": "^8.0.2",
113123
"stylelint-config-recommended-scss": "^4.2.0",
114124
"stylelint-config-standard": "^21.0.0",

0 commit comments

Comments
 (0)