From db9d6399dd89ff292a3835909ef9993bfa786858 Mon Sep 17 00:00:00 2001 From: Dmytro Stanchiev Date: Tue, 7 Apr 2026 08:09:09 -0400 Subject: [PATCH] style(config): standardize configuration file formatting --- components.json | 40 ++++++++++++++++++------------------- drizzle.config.ts | 30 ++++++++++++++-------------- eslint.config.mjs | 4 ++-- postcss.config.mjs | 2 +- tsconfig.json | 50 +++++++++++++++++++++++----------------------- 5 files changed, 63 insertions(+), 63 deletions(-) diff --git a/components.json b/components.json index ffe928f..5bcedb3 100644 --- a/components.json +++ b/components.json @@ -1,21 +1,21 @@ { - "$schema": "https://ui.shadcn.com/schema.json", - "style": "new-york", - "rsc": true, - "tsx": true, - "tailwind": { - "config": "", - "css": "src/app/globals.css", - "baseColor": "neutral", - "cssVariables": true, - "prefix": "" - }, - "aliases": { - "components": "@/components", - "utils": "@/lib/utils", - "ui": "@/components/ui", - "lib": "@/lib", - "hooks": "@/hooks" - }, - "iconLibrary": "lucide" -} \ No newline at end of file + "$schema": "https://ui.shadcn.com/schema.json", + "style": "new-york", + "rsc": true, + "tsx": true, + "tailwind": { + "config": "", + "css": "src/app/globals.css", + "baseColor": "neutral", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + }, + "iconLibrary": "lucide" +} diff --git a/drizzle.config.ts b/drizzle.config.ts index 61aed93..af08104 100644 --- a/drizzle.config.ts +++ b/drizzle.config.ts @@ -1,21 +1,21 @@ -import { defineConfig } from 'drizzle-kit'; -import * as dotenv from 'dotenv'; +import { defineConfig } from "drizzle-kit"; +import * as dotenv from "dotenv"; if (!process.env.DATABASE_URL) { - if (process.env.NODE_ENV === "production") { - dotenv.config({ path: '.env.production' }); - } else { - dotenv.config({ path: '.env.local' }); - } + if (process.env.NODE_ENV === "production") { + dotenv.config({ path: ".env.production" }); + } else { + dotenv.config({ path: ".env.local" }); + } } export default defineConfig({ - dialect: 'postgresql', - schema: './src/db/schema.ts', - out: './drizzle', - dbCredentials: { - url: process.env.DATABASE_URL!, - }, - verbose: true, - strict: true, + dialect: "postgresql", + schema: "./src/db/schema.ts", + out: "./drizzle", + dbCredentials: { + url: process.env.DATABASE_URL!, + }, + verbose: true, + strict: true, }); diff --git a/eslint.config.mjs b/eslint.config.mjs index c85fb67..1a9ff38 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -6,11 +6,11 @@ const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const compat = new FlatCompat({ - baseDirectory: __dirname, + baseDirectory: __dirname, }); const eslintConfig = [ - ...compat.extends("next/core-web-vitals", "next/typescript"), + ...compat.extends("next/core-web-vitals", "next/typescript"), ]; export default eslintConfig; diff --git a/postcss.config.mjs b/postcss.config.mjs index c7bcb4b..f50127c 100644 --- a/postcss.config.mjs +++ b/postcss.config.mjs @@ -1,5 +1,5 @@ const config = { - plugins: ["@tailwindcss/postcss"], + plugins: ["@tailwindcss/postcss"], }; export default config; diff --git a/tsconfig.json b/tsconfig.json index c133409..7df89e7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,27 +1,27 @@ { - "compilerOptions": { - "target": "ES2017", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": ["./src/*"] - } - }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "compilerOptions": { + "target": "ES2017", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] }