Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: trpc/examples-next-prisma-websockets-starter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e9a7ed93f746add8fffb8adcce2cd957e3415299
Choose a base ref
..
head repository: trpc/examples-next-prisma-websockets-starter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f601d87bfd54ad49f2c49462358952487a3c0d85
Choose a head ref
Showing with 138 additions and 62 deletions.
  1. +18 −4 .eslintrc
  2. +2 −2 package.json
  3. +109 −50 pnpm-lock.yaml
  4. +2 −2 src/server/context.ts
  5. +0 −1 src/server/prodServer.ts
  6. +7 −3 src/server/routers/post.ts
22 changes: 18 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"parser": "@typescript-eslint/parser", // Specifies the ESLint parser
"extends": [
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended"
@@ -13,11 +14,24 @@
},
"rules": {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"@typescript-eslint/no-explicit-any": "off"

// Consider removing these rule disables for more type safety in your app ✨
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-declaration-merging": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/restrict-plus-operands": "off"
},
// "overrides": [
// {
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -62,8 +62,8 @@
"@types/node": "^18.16.16",
"@types/react": "^18.2.8",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"@typescript-eslint/eslint-plugin": "6.0.0-alpha.158",
"@typescript-eslint/parser": "6.0.0-alpha.158",
"autoprefixer": "^10.4.7",
"cross-env": "^7.0.3",
"eslint": "^8.40.0",
159 changes: 109 additions & 50 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/server/context.ts
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@ import ws from 'ws';
*/
export const createContext = async (
opts:
| trpcNext.CreateNextContextOptions
| NodeHTTPCreateContextFnOptions<IncomingMessage, ws>,
| NodeHTTPCreateContextFnOptions<IncomingMessage, ws>
| trpcNext.CreateNextContextOptions,
) => {
const session = await getSession(opts);

1 change: 0 additions & 1 deletion src/server/prodServer.ts
Original file line number Diff line number Diff line change
@@ -35,7 +35,6 @@ void app.prepare().then(() => {
});
server.listen(port);

// tslint:disable-next-line:no-console
console.log(
`> Server listening at http://localhost:${port} as ${
dev ? 'development' : process.env.NODE_ENV
Loading