Skip to content

Commit

Permalink
feat: Add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
steezplusplus committed Sep 9, 2023
1 parent d801e1a commit a921ec0
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 53 deletions.
22 changes: 2 additions & 20 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
{
"extends": [
"eslint:recommended",
"plugin:tailwindcss/recommended",
"next/core-web-vitals"
],
"rules": {
"semi": [
"error",
"always"
],
"quotes": [
"error",
"single"
],
"jsx-quotes": [
"error",
"prefer-double"
]
}
}
"extends": ["next/core-web-vitals", "prettier"]
}
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"trailingComma": "es5",
"semi": true,
"tabWidth": 2,
"singleQuote": true,
"jsxSingleQuote": false,
"plugins": ["prettier-plugin-tailwindcss"]
}
12 changes: 0 additions & 12 deletions .vscode/settings.json

This file was deleted.

119 changes: 102 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
"lint": "next lint",
"lint:fix": "next lint --fix",
"prettier": "prettier --check --ignore-path .gitignore .",
"prettier:fix": "prettier --write --ignore-path .gitignore ."
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "6.4.0",
Expand Down Expand Up @@ -36,6 +38,8 @@
"devDependencies": {
"@tailwindcss/forms": "^0.5.4",
"@tailwindcss/typography": "0.5.9",
"eslint-plugin-tailwindcss": "3.12.1"
"eslint-config-prettier": "^9.0.0",
"prettier": "^3.0.2",
"prettier-plugin-tailwindcss": "^0.5.3"
}
}
}

0 comments on commit a921ec0

Please sign in to comment.