Set up eslint with husky

This commit is contained in:
LFades 2022-01-13 05:07:10 -05:00
parent 1fb20ca2c9
commit b0de9241e4
5 changed files with 3805 additions and 9 deletions

3
.gitignore vendored
View File

@ -35,3 +35,6 @@ yarn-error.log*
# vercel
.vercel
# Turborepo
.turbo

3798
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -13,6 +13,7 @@
"^build"
],
"outputs": [
"dist/**",
".next/**"
]
},
@ -34,7 +35,13 @@
}
},
"devDependencies": {
"husky": "^7.0.4",
"prettier": "^2.5.1",
"turbo": "^1.0.12"
},
"husky": {
"hooks": {
"pre-commit": "turbo lint"
}
}
}

View File

@ -7,6 +7,8 @@
"build": "next build",
"start": "next start",
"analyze": "BUNDLE_ANALYZE=both next build",
"lint": "next lint",
"prettier-fix": "prettier --write .",
"find:unused": "npx next-unused"
},
"sideEffects": false,
@ -46,6 +48,10 @@
"@types/lodash.throttle": "^4.1.6",
"@types/node": "^15.12.4",
"@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-preset-env": "^6.7.0",
"typescript": "4.3.4"