chore(prettier): update config

This commit is contained in:
Pihkaal
2024-05-30 15:53:44 +02:00
parent 3832a7ca52
commit af5fc8cb35
3 changed files with 5 additions and 12 deletions

3
.prettierignore Normal file
View File

@@ -0,0 +1,3 @@
.env.example
.idea
pnpm-lock.yaml

View File

@@ -1,18 +1,8 @@
// @ts-check // @ts-check
/** @type {import("prettier").Options & import("prettier-plugin-tailwindcss").PluginOptions} */ /** @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions} */
const config = { const config = {
plugins: ["prettier-plugin-tailwindcss"], plugins: ["prettier-plugin-tailwindcss"],
arrowParens: "avoid",
bracketSpacing: true,
quoteProps: "consistent",
jsxSingleQuote: false,
printWidth: 80,
semi: true,
singleQuote: false,
tabWidth: 2,
trailingComma: "all",
useTabs: false,
}; };
module.exports = config; module.exports = config;

View File

@@ -8,7 +8,7 @@
"dev": "vite", "dev": "vite",
"lint": "eslint src --cache --fix --max-warnings 0", "lint": "eslint src --cache --fix --max-warnings 0",
"preview": "vite preview", "preview": "vite preview",
"format": "prettier --cache --write '**/*.{md,json,css,scss,js,mjs,cjs,ts,tsx}'" "format": "prettier --cache --write ."
}, },
"dependencies": { "dependencies": {
"axios": "^1.6.7", "axios": "^1.6.7",