Skip to content

Instantly share code, notes, and snippets.

@Badbird5907
Created December 19, 2023 21:41
Show Gist options
  • Save Badbird5907/9ed30f156cf3e00de1365880e7347047 to your computer and use it in GitHub Desktop.
Save Badbird5907/9ed30f156cf3e00de1365880e7347047 to your computer and use it in GitHub Desktop.
Bootstrap NextJS
{
"extends": ["next/core-web-vitals", "plugin:prettier/recommended"],
"rules": {
"prettier/prettier": "error"
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser"
}
]
}
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx lint-staged

Initial Setup

  1. yarn add --dev eslint eslint-config-prettier eslint-plugin-prettier lint-staged prettier lint-staged husky
/** @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