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.
Project lint configs
{
"printWidth": 120,
"singleQuote": true,
"plugins": ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
"importOrder": ["^@(/.*|$)", "^[./]"],
"importOrderParserPlugins": ["typescript", "jsx", "decorators"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"tailwindFunctions": ["clsx"]
}
{
"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"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment