Skip to content

Commit

Permalink
Install prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jewei committed Oct 23, 2024
1 parent 302fc96 commit b2c9487
Show file tree
Hide file tree
Showing 3 changed files with 1,027 additions and 27 deletions.
25 changes: 25 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"arrowParens": "avoid",
"bracketSameLine": false,
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"requirePragma": false,
"printWidth": 120,
"proseWrap": "preserve",
"semi": true,
"singleAttributePerLine": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "all",
"useTabs": false,
"vueIndentScriptAndStyle": false,
"plugins": ["prettier-plugin-blade", "prettier-plugin-tailwindcss"],
"overrides": [
{
"files": "*.blade.php",
"options": { "parser": "blade", "singleAttributePerLine": false }
}
]
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"concurrently": "^9.0.1",
"laravel-vite-plugin": "^1.0.5",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"prettier-plugin-blade": "^2.1.19",
"prettier-plugin-tailwindcss": "^0.6.8",
"tailwindcss": "^3.4.14",
"vite": "^5.4.10"
}
Expand Down
Loading

0 comments on commit b2c9487

Please sign in to comment.