build: upgrade prettier and prettier config file

This commit is contained in:
satnaing
2025-02-25 20:01:12 +07:00
committed by Sat Naing
parent d167f6295d
commit bac762f981
4 changed files with 24 additions and 21 deletions
+1
View File
@@ -7,6 +7,7 @@
!/.github
!tsconfig.json
!astro.config.ts
!.prettierrc.mjs
!package.json
!.prettierrc
!eslint.config.js
-20
View File
@@ -1,20 +0,0 @@
{
"arrowParens": "avoid",
"semi": true,
"tabWidth": 2,
"printWidth": 80,
"singleQuote": false,
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"endOfLine": "lf",
"plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
}
]
}
+22
View File
@@ -0,0 +1,22 @@
/** @type {import("prettier").Config} */
export default {
arrowParens: "avoid",
semi: true,
tabWidth: 2,
printWidth: 80,
singleQuote: false,
jsxSingleQuote: false,
trailingComma: "es5",
bracketSpacing: true,
endOfLine: "lf",
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
tailwindStylesheet: "./src/styles/global.css",
overrides: [
{
files: "*.astro",
options: {
parser: "astro",
},
},
],
};
+1 -1
View File
@@ -38,7 +38,7 @@
"eslint-plugin-astro": "^1.3.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"globals": "^16.0.0",
"prettier": "^3.4.2",
"prettier": "^3.5.2",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.11",
"typescript": "^5.7.3",