From b717f74e495138e295611a6ca2b262d068a693e2 Mon Sep 17 00:00:00 2001 From: Xevion Date: Fri, 24 Feb 2023 20:39:12 -0600 Subject: [PATCH] Update target to ES2016, ignore .vscode, switch to 2 space tabs --- .gitignore | 1 + .prettierrc | 13 +++++++++++-- tsconfig.json | 45 +++++++++++++++++++++++---------------------- 3 files changed, 35 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index 3c60fa6..d560286 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. vercel.json *.env* +.vscode # dependencies /node_modules diff --git a/.prettierrc b/.prettierrc index 222861c..19f5944 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,13 @@ { - "tabWidth": 2, - "useTabs": false + "singleQuote": true, + "printWidth": 80, + "editor.formatOnSave": true, + "proseWrap": "always", + "tabWidth": 2, + "requireConfig": false, + "useTabs": true, + "trailingComma": "none", + "bracketSpacing": true, + "jsxBracketSameLine": false, + "semi": true } diff --git a/tsconfig.json b/tsconfig.json index 2159bf4..828190b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,24 +1,25 @@ { - "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "baseUrl": ".", - "paths": { - "@/*": ["./src/*"] - } - }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] + "compilerOptions": { + "target": "ES2016", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "strictNullChecks": true, + "forceConsistentCasingInFileNames": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "exclude": ["node_modules"] }