From 9aae0d7968212dc9a73d6e4592cbf6e0a2219a14 Mon Sep 17 00:00:00 2001 From: novellac <38117965+novellac@users.noreply.github.com> Date: Thu, 2 Mar 2023 20:48:33 -0500 Subject: [PATCH] chore: Add custom Prettier rules --- .eslintrc.cjs | 8 ++++---- .prettierrc.json | 7 ++++++- tailwind.config.js | 4 ++-- vite.config.js | 6 +++--- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 05077e7..80e1c27 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -3,12 +3,12 @@ require('@rushstack/eslint-patch/modern-module-resolution') module.exports = { root: true, - 'extends': [ + extends: [ 'plugin:vue/vue3-essential', 'eslint:recommended', - '@vue/eslint-config-prettier' + '@vue/eslint-config-prettier', ], parserOptions: { - ecmaVersion: 'latest' - } + ecmaVersion: 'latest', + }, } diff --git a/.prettierrc.json b/.prettierrc.json index 9e26dfe..fa51da2 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1 +1,6 @@ -{} \ No newline at end of file +{ + "trailingComma": "es5", + "tabWidth": 2, + "semi": false, + "singleQuote": true +} diff --git a/tailwind.config.js b/tailwind.config.js index d6963e8..9a4a444 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,8 +1,8 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx,vue}"], + content: ['./index.html', './src/**/*.{js,ts,jsx,tsx,vue}'], theme: { extend: {}, }, plugins: [], -}; +} diff --git a/vite.config.js b/vite.config.js index de5cb31..228f6e0 100644 --- a/vite.config.js +++ b/vite.config.js @@ -8,7 +8,7 @@ export default defineConfig({ plugins: [vue()], resolve: { alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } + '@': fileURLToPath(new URL('./src/', import.meta.url)), + }, + }, })