feat: add lint staged and husky

pull/242/head
金伟强 3 years ago
parent 9173e57a39
commit ad4552b15c

@ -0,0 +1,4 @@
export default {
'**/*.js?(x)': ['next lint --fix'],
'**/*.ts?(x)': ['next lint --fix'],
}

@ -78,6 +78,8 @@
"@types/qs": "^6.9.7",
"autoprefixer": "^10.4.14",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"miragejs": "^0.1.47",
"postcss": "^8.4.21",
"tailwindcss": "^3.2.7"

Loading…
Cancel
Save