Skip to content

Commit

Permalink
feat(app): add base tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Aug 15, 2022
1 parent 0cb9685 commit d9fff96
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions template/addons/prisma/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { PrismaClient } from "@prisma/client";
import { env } from "../../env/server.mjs";

declare global {
// eslint-disable-next-line no-var
var prisma: PrismaClient | undefined;
}

Expand Down
7 changes: 6 additions & 1 deletion template/base/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"extends": ["next/core-web-vitals"]
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"]
}
10 changes: 6 additions & 4 deletions template/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@
"lint": "next lint"
},
"dependencies": {
"next": "12.2.3",
"next": "12.2.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"zod": "^3.17.3"
"zod": "^3.18.0"
},
"devDependencies": {
"@types/node": "18.0.0",
"@types/react": "18.0.14",
"@types/react-dom": "18.0.5",
"eslint": "8.18.0",
"eslint-config-next": "12.2.3",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"eslint": "8.22.0",
"eslint-config-next": "12.2.5",
"typescript": "4.7.4"
}
}

0 comments on commit d9fff96

Please sign in to comment.