Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require("path");
const path = require('path')

/** @type {import("eslint").Linter.Config} */
const config = {
overrides: [
{
extends: [
"plugin:@typescript-eslint/recommended-requiring-type-checking",
'plugin:@typescript-eslint/recommended-requiring-type-checking'
],
files: ["*.ts", "*.tsx"],
files: ['*.ts', '*.tsx'],
parserOptions: {
project: path.join(__dirname, "tsconfig.json"),
},
},
project: path.join(__dirname, 'tsconfig.json')
}
}
],
parser: "@typescript-eslint/parser",
parser: '@typescript-eslint/parser',
parserOptions: {
project: path.join(__dirname, "tsconfig.json"),
project: path.join(__dirname, 'tsconfig.json')
},
plugins: ["@typescript-eslint"],
extends: ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
plugins: ['@typescript-eslint'],
extends: ['next/core-web-vitals', 'plugin:@typescript-eslint/recommended'],
rules: {
"@typescript-eslint/consistent-type-imports": [
"warn",
'@typescript-eslint/consistent-type-imports': [
'warn',
{
prefer: "type-imports",
fixStyle: "inline-type-imports",
},
prefer: 'type-imports',
fixStyle: 'inline-type-imports'
}
],
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-misused-promises": [
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-misused-promises': [
2,
{
checksVoidReturn: { attributes: false },
},
],
},
};
checksVoidReturn: { attributes: false }
}
]
}
}

module.exports = config;
module.exports = config
2 changes: 1 addition & 1 deletion convex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function handleButtonPress() {
// OR
// use the result once the mutation has completed
mutation({ first: "Hello!", second: "me" }).then((result) =>
console.log(result)
console.log(result),
);
}
```
Expand Down
12 changes: 6 additions & 6 deletions convex/chats.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { query } from "./_generated/server";

export const get = query({
args: {},
handler: async (ctx) => {
const data = await ctx.db.query("chats").collect();
return data
},
});
args: {},
handler: async (ctx) => {
const data = await ctx.db.query("chats").collect();
return data;
},
});
8 changes: 4 additions & 4 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "./src/env.mjs";
import './src/env.mjs'

/** @type {import("next").NextConfig} */
const config = {
experimental: { serverActions: true },
};
export default config;
experimental: { serverActions: true }
}
export default config
Loading