Skip to content

Instantly share code, notes, and snippets.

@davidcostadev
Created July 9, 2024 12:45
Show Gist options
  • Save davidcostadev/545f27b916e9f2959fce40392b19c784 to your computer and use it in GitHub Desktop.
Save davidcostadev/545f27b916e9f2959fce40392b19c784 to your computer and use it in GitHub Desktop.

Revisions

  1. davidcostadev created this gist Jul 9, 2024.
    10 changes: 10 additions & 0 deletions .prettierrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    {
    "printWidth": 120,
    "singleQuote": true,
    "plugins": ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
    "importOrder": ["^@(/.*|$)", "^[./]"],
    "importOrderParserPlugins": ["typescript", "jsx", "decorators"],
    "importOrderSeparation": true,
    "importOrderSortSpecifiers": true,
    "tailwindFunctions": ["clsx"]
    }
    46 changes: 46 additions & 0 deletions tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    {
    "compilerOptions": {
    /* Target and Module */
    "target": "es5",
    "module": "esnext",
    "lib": ["dom", "dom.iterable", "esnext"],
    "moduleResolution": "bundler",
    "jsx": "preserve",

    /* JavaScript Support */
    "allowJs": true,
    "resolveJsonModule": true,
    "downlevelIteration": true,

    /* Build Options */
    "noEmit": true,
    "incremental": true,

    /* Linting */
    "strict": true,
    "noUnusedLocals": false,
    "noUnusedParameters": false,
    "noFallthroughCasesInSwitch": true,
    "noImplicitOverride": true,
    "noImplicitReturns": true,
    "noPropertyAccessFromIndexSignature": false,
    "noUncheckedIndexedAccess": false,
    "strictNullChecks": true,

    /* Paths and Alias */
    "baseUrl": "./src",
    "paths": {
    "@/*": ["./src/*"]
    },

    /* Plugins */
    "types": ["@testing-library/jest-dom"],
    "plugins": [
    {
    "name": "next"
    }
    ]
    },
    "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
    "exclude": ["node_modules"]
    }