mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 15:36:58 +00:00
Set up eslint with husky
This commit is contained in:
parent
1fb20ca2c9
commit
b0de9241e4
3
.gitignore
vendored
3
.gitignore
vendored
@ -35,3 +35,6 @@ yarn-error.log*
|
|||||||
|
|
||||||
# vercel
|
# vercel
|
||||||
.vercel
|
.vercel
|
||||||
|
|
||||||
|
# Turborepo
|
||||||
|
.turbo
|
||||||
|
3798
package-lock.json
generated
3798
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -13,6 +13,7 @@
|
|||||||
"^build"
|
"^build"
|
||||||
],
|
],
|
||||||
"outputs": [
|
"outputs": [
|
||||||
|
"dist/**",
|
||||||
".next/**"
|
".next/**"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -34,7 +35,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"husky": "^7.0.4",
|
||||||
"prettier": "^2.5.1",
|
"prettier": "^2.5.1",
|
||||||
"turbo": "^1.0.12"
|
"turbo": "^1.0.12"
|
||||||
|
},
|
||||||
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "turbo lint"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"analyze": "BUNDLE_ANALYZE=both next build",
|
"analyze": "BUNDLE_ANALYZE=both next build",
|
||||||
|
"lint": "next lint",
|
||||||
|
"prettier-fix": "prettier --write .",
|
||||||
"find:unused": "npx next-unused"
|
"find:unused": "npx next-unused"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
@ -46,6 +48,10 @@
|
|||||||
"@types/lodash.throttle": "^4.1.6",
|
"@types/lodash.throttle": "^4.1.6",
|
||||||
"@types/node": "^15.12.4",
|
"@types/node": "^15.12.4",
|
||||||
"@types/react": "^17.0.8",
|
"@types/react": "^17.0.8",
|
||||||
|
"eslint": "^8.6.0",
|
||||||
|
"eslint-config-next": "^12.0.8",
|
||||||
|
"eslint-config-prettier": "^8.3.0",
|
||||||
|
"lint-staged": "^12.1.7",
|
||||||
"postcss-flexbugs-fixes": "^5.0.2",
|
"postcss-flexbugs-fixes": "^5.0.2",
|
||||||
"postcss-preset-env": "^6.7.0",
|
"postcss-preset-env": "^6.7.0",
|
||||||
"typescript": "4.3.4"
|
"typescript": "4.3.4"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user