Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Add prettier
James Cole966ddf8b8259
diff --git a/.prettierignore b/.prettierignorenew file mode 100644index 0000000000..ca4a7d9db1--- /dev/null+++ b/.prettierignore@@ -0,0 +1,14 @@+# Ignore artifacts:+app+bootstrap+config+database+public+resources/assets/v1+resources/lang+resources/locales+resources/views+routes+storage+tests+vendordiff --git a/.prettierrc b/.prettierrcnew file mode 100644index 0000000000..0967ef424b--- /dev/null+++ b/.prettierrc@@ -0,0 +1 @@+{}diff --git a/package-lock.json b/package-lock.jsonindex 3341c005d3..44b250c8c8 100644--- a/package-lock.json+++ b/package-lock.json@@ -2953,6 +2953,22 @@"node": ">= 0.8.0"}},+ "node_modules/prettier": {+ "version": "3.9.6",+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.6.tgz",+ "integrity": "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "prettier": "bin/prettier.cjs"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/prettier/prettier?sponsor=1"+ }+ },"node_modules/proxy-from-env": {"version": "2.1.0","resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz",@@ -3634,6 +3650,7 @@"concurrently": "^10","laravel-vite-plugin": "^3.1","postcss": "^8.5.14",+ "prettier": "3.9.6","sass": "^1","tailwindcss": "^4.0.0","vite": "^8.0.0",diff --git a/resources/assets/v3/package.json b/resources/assets/v3/package.jsonindex b8a13de9e5..32440fc601 100644--- a/resources/assets/v3/package.json+++ b/resources/assets/v3/package.json@@ -34,6 +34,7 @@"concurrently": "^10","laravel-vite-plugin": "^3.1","postcss": "^8.5.14",+ "prettier": "3.9.6","sass": "^1","tailwindcss": "^4.0.0","vite": "^8.0.0",diff --git a/resources/assets/v3/vite.config.js b/resources/assets/v3/vite.config.jsindex a841acbe5a..63524afcc9 100644--- a/resources/assets/v3/vite.config.js+++ b/resources/assets/v3/vite.config.js@@ -18,91 +18,94 @@* along with this program. If not, see <https://www.gnu.org/licenses/>.*/-import {defineConfig} from 'vite';-import laravel from 'laravel-vite-plugin';-import manifestSRI from 'vite-plugin-manifest-sri';+import { defineConfig } from "vite";+import laravel from "laravel-vite-plugin";+import manifestSRI from "vite-plugin-manifest-sri";import fs from "fs";-export default defineConfig(({command}) => {+export default defineConfig(({ command }) => {let https = null;- if (command === 'serve') {+ if (command === "serve") {https = {- key: fs.readFileSync(`/vagrant/tls-certificates/wildcard.sd.internal.key`),- cert: fs.readFileSync(`/vagrant/tls-certificates/wildcard.sd.internal.crt`),+ key: fs.readFileSync(+ `/vagrant/tls-certificates/wildcard.sd.internal.key`,+ ),+ cert: fs.readFileSync(+ `/vagrant/tls-certificates/wildcard.sd.internal.crt`,+ ),};}return {- base: './',+ base: "./",plugins: [laravel({input: [// CSS for entire app- 'sass/app.scss',+ "sass/app.scss",// dashboard- 'js/pages/dashboard/boxes.js',- 'js/pages/dashboard/dashboard.js',+ "js/pages/dashboard/boxes.js",+ "js/pages/dashboard/dashboard.js",// generic- 'js/pages/generic.js',- 'js/pages/generic-nodates.js',- 'js/pages/blank.js', // small bootstrap- 'js/pages/flush.js',+ "js/pages/generic.js",+ "js/pages/generic-nodates.js",+ "js/pages/blank.js", // small bootstrap+ "js/pages/flush.js",// accounts- 'js/pages/accounts/create.js',- 'js/pages/accounts/edit.js',+ "js/pages/accounts/create.js",+ "js/pages/accounts/edit.js",// administrations- 'js/pages/administrations/index.js',- 'js/pages/administrations/edit.js',+ "js/pages/administrations/index.js",+ "js/pages/administrations/edit.js",// categories// budgets// exchange rates- 'js/pages/exchange-rates/index.js',- 'js/pages/exchange-rates/rates.js',+ "js/pages/exchange-rates/index.js",+ "js/pages/exchange-rates/rates.js",// export// object groups// piggy banks- 'js/pages/piggy-banks/show.js',+ "js/pages/piggy-banks/show.js",// profile- 'js/pages/profile/oauth.js',+ "js/pages/profile/oauth.js",// rules// recurring transactions- 'js/pages/recurring/create.js',- 'js/pages/recurring/edit.js',+ "js/pages/recurring/create.js",+ "js/pages/recurring/edit.js",// subscriptions// transaction currencies// transactions- 'js/pages/transactions/create.js',- 'js/pages/transactions/edit.js',- 'js/pages/transactions/bulk-edit.js',- 'js/pages/transactions/mass-edit.js',- 'js/pages/transactions/show.js',+ "js/pages/transactions/create.js",+ "js/pages/transactions/edit.js",+ "js/pages/transactions/bulk-edit.js",+ "js/pages/transactions/mass-edit.js",+ "js/pages/transactions/show.js",// tags// webhooks- 'js/pages/webhooks/create.js',- 'js/pages/webhooks/edit.js',- 'js/pages/webhooks/show.js',- 'js/pages/webhooks/index.js',-+ "js/pages/webhooks/create.js",+ "js/pages/webhooks/edit.js",+ "js/pages/webhooks/show.js",+ "js/pages/webhooks/index.js",],- buildDirectory: '../../../../public/build',+ buildDirectory: "../../../../public/build",// publicDirectory: '../../../public',refresh: true,fonts: [],@@ -111,12 +114,12 @@ export default defineConfig(({command}) => {],server: {watch: {- ignored: ['**/storage/framework/views/**'],+ ignored: ["**/storage/framework/views/**"],usePolling: true,},cors: true,// make sure this IP matches the IP of the dev machine.- origin: 'https://192.168.96.169:5173',+ origin: "https://192.168.96.169:5173",port: 5173,host: true,// hmr: {@@ -124,5 +127,5 @@ export default defineConfig(({command}) => {// },https: https,},- }+ };});