Skip to content

Commit

Permalink
feat: add base tslint (#317)
Browse files Browse the repository at this point in the history
* chore(app): version bumps

* feat: add base linter for ts

* fix: test ignoring base

* fix: test setting root

* fix: test add parser

* fix: test disabling exclude

* chore: changeset
  • Loading branch information
juliusmarminge authored Aug 15, 2022
1 parent 143af66 commit 7a76c95
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-chefs-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": minor
---

feat(app): add lint config for typescript
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 7a76c95

Please sign in to comment.