chore(prettier): update config
This commit is contained in:
3
.prettierignore
Normal file
3
.prettierignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.env.example
|
||||||
|
.idea
|
||||||
|
pnpm-lock.yaml
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user