Add linting and precommits (#295)

* chore: prefer yarn

* dx: linting configurations, and pre-commit hook
This commit is contained in:
Femi Odugbesan authored and GitHub committed 2021-06-21 12:34:01 -05:00
1 parent b0d00e4c70
commit bc8f2980d3
8 files changed
+1106 -3981

No files matched your search

+22 -3
View File
@@ -6,7 +6,10 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"postinstall": "prisma generate"
"postinstall": "prisma generate",
"pre-commit": "lint-staged",
"lint": "eslint . --ext .ts,.js,.tsx,.jsx",
"prepare": "husky install"
},
"dependencies": {
"@headlessui/react": "^1.0.0",
@@ -34,10 +37,26 @@
"devDependencies": {
"@types/node": "^14.14.33",
"@types/react": "^17.0.3",
"autoprefixer": "^10.2.6",
"postcss": "^8.3.5",
"@typescript-eslint/eslint-plugin": "^4.27.0",
"@typescript-eslint/parser": "^4.27.0",
"autoprefixer": "^10.2.5",
"eslint": "^7.29.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"husky": "^6.0.0",
"lint-staged": "^11.0.0",
"postcss": "^8.2.8",
"prettier": "^2.3.1",
"prisma": "^2.23.0",
"tailwindcss": "^2.2.2",
"typescript": "^4.2.3"
},
"lint-staged": {
"./{*,{pages,components,lib}/**/*}.{js,ts,jsx,tsx}": [
"prettier --write",
"eslint"
]
}
}