update: add test step to lint-staged
... | ... | @@ -13,6 +13,7 @@ |
"chart.js": "^2.9.3", | ||
"chartist": "^0.11.4", | ||
"classnames": "^2.2.6", | ||
"cross-env": "^7.0.2", | ||
"eslint": "^6.8.0", | ||
"eslint-config-airbnb": "^18.0.1", | ||
"eslint-config-prettier": "^6.10.0", | ||
... | ... | @@ -80,7 +81,8 @@ |
}, | ||
"lint-staged": { | ||
"*.{js,jsx}": [ | ||
"eslint --fix" | ||
"eslint --fix", | ||
"cross-env CI=true react-scripts test --findRelatedTests" | ||
] | ||
} | ||
} | ||
} | ||
\ No newline at end of file |
Please register or sign in to comment