DEV Community

Rahul
Rahul

Posted on

vite.config.ts

import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";

export default defineConfig({
  plugins: [react()],
  server: {
    host: "127.0.0.1",
    port: 3000,
  },
  preview: {
    host: "127.0.0.1",
    port: 3000,
  },
});






ts.config.json


{
  "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": "react-jsx",
    "types": ["vite/client"],
    "incremental": true,
    "paths": {
      "@/*": ["./*"]
    }
  },
  "include": [
    "**/*.ts",
    "**/*.tsx",
    "**/*.mts",
    "vite.config.ts"
  ],
  "exclude": ["node_modules"]
}








postcss.config.mjs


const config = {
  plugins: {
    "@tailwindcss/postcss": {},
  },
};

export default config;





eslint.config,mjs


import { defineConfig, globalIgnores } from "eslint/config";

const eslintConfig = defineConfig([
  globalIgnores([
    "build/**",
    ".venv/**",
    ".runtime/**",
    "backend/.mypy-*/**",
    "backend/.pytest-*/**",
    "backend/.pytest_cache/**",
    "backend/.ruff_cache/**",
  ]),
]);

export default eslintConfig;

Enter fullscreen mode Exit fullscreen mode

Top comments (0)