Standardize code format for web interface with prettier

Use husky, lint-staged to run prettier pre-commit
This commit is contained in:
Debanjum Singh Solanky
2024-07-15 00:34:54 +05:30
parent 6dd90931e8
commit 6f8f846086
4 changed files with 247 additions and 11 deletions

View File

@@ -1,3 +1,11 @@
{
"extends": "next/core-web-vitals"
"extends": [
"next",
"next/core-web-vitals",
"plugin:prettier/recommended"
],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error"
}
}