yarn add --dev eslint eslint-config-prettier eslint-plugin-prettier lint-staged prettier lint-staged husky
Created
December 19, 2023 21:41
-
-
Save Badbird5907/9ed30f156cf3e00de1365880e7347047 to your computer and use it in GitHub Desktop.
Bootstrap NextJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": ["next/core-web-vitals", "plugin:prettier/recommended"], | |
"rules": { | |
"prettier/prettier": "error" | |
}, | |
"overrides": [ | |
{ | |
"files": ["**/*.ts", "**/*.tsx"], | |
"parser": "@typescript-eslint/parser" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
. "$(dirname -- "$0")/_/husky.sh" | |
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @type {import("prettier").Config} */ | |
const config = { | |
trailingComma: "es5", | |
tabWidth: 2, | |
semi: true, | |
singleQuote: false, | |
endOfLine: "auto", | |
}; | |
module.exports = config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment