Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

1.3 KB
Raw Blame
{
  "compilerOptions": {
    "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",
    "incremental": true,
    "allowArbitraryExtensions": true,
    "noImplicitReturns": true,
    "plugins": [
      {
        "name": "next"
      }
      // this breaks autoimports/intellisense in VS Code now https://github.com/lazarv/typescript-plugin-directives/issues/2
      // TODO: reinstall this package when the issue is fixed `pnpm -D typescript-plugin-directives`
      // {
      //   "name": "typescript-plugin-directives"
      // },
    ],
    "paths": {
      "@/*": ["./src/*"]
    },
    "target": "es2022"
  },
  "include": [
    "next-env.d.ts",
    // must come before any file importing `next/root-params`: TypeScript takes the
    // first declaration it sees, and the one shipped in node_modules is a shorthand
    // (`any`) - see src/types/next-root-params.d.ts
    "src/types/next-root-params.d.ts",
    "**/*.ts",
    "**/*.tsx",
    ".next/types/**/*.ts",
    "trigger.config.ts",
    ".next/dev/types/**/*.ts"
  ],
  "exclude": ["node_modules"]
}