|
18 | 18 | "storybook": "start-storybook -p 6006 -s ./.storybook/images",
|
19 | 19 | "build-storybook": "build-storybook",
|
20 | 20 | "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 | + ] |
22 | 32 | },
|
23 | 33 | "license": "ISC",
|
24 | 34 | "main": "src/bootstrap.js",
|
|
68 | 78 | "css-loader": "^5.2.4",
|
69 | 79 | "css-minimizer-webpack-plugin": "^2.0.0",
|
70 | 80 | "detect-port": "^1.3.0",
|
71 |
| - "eslint": "^7.24.0", |
| 81 | + "eslint": "^8.11.0", |
72 | 82 | "eslint-config-airbnb-base": "^14.2.1",
|
73 | 83 | "eslint-config-prettier": "^8.2.0",
|
74 | 84 | "eslint-loader": "^4.0.2",
|
|
94 | 104 | "imagemin-optipng": "^8.0.0",
|
95 | 105 | "imagemin-svgo": "^9.0.0",
|
96 | 106 | "json-loader": "^0.5.7",
|
97 |
| - "lint-staged": "^10.5.4", |
| 107 | + "lint-staged": "^12.3.7", |
98 | 108 | "mini-css-extract-plugin": "^1.5.0",
|
99 | 109 | "opn": "^6.0.0",
|
100 | 110 | "ora": "^5.4.0",
|
|
108 | 118 | "sass-loader": "^11.0.1",
|
109 | 119 | "shelljs": "^0.8.4",
|
110 | 120 | "style-loader": "^2.0.0",
|
111 |
| - "stylelint": "^13.12.0", |
| 121 | + "stylelint": "^14.6.0", |
112 | 122 | "stylelint-config-prettier": "^8.0.2",
|
113 | 123 | "stylelint-config-recommended-scss": "^4.2.0",
|
114 | 124 | "stylelint-config-standard": "^21.0.0",
|
|
0 commit comments