Skip to content

Commit

Permalink
Merge pull request #100 from niracler/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
niracler authored Oct 21, 2024
2 parents ab20113 + 6c93fcc commit 4b46677
Show file tree
Hide file tree
Showing 26 changed files with 11,376 additions and 2,403 deletions.
27 changes: 27 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"indent": [
"error",
4
], // 4 个空格缩进
"semi": [
"error",
"always"
], // 强制使用分号
"quotes": [
"error",
"single"
], // 可选:强制使用单引号
"no-console": "off" // 可选:允许使用 console.log
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,5 @@ dist
.dev.vars
.wrangler/
wrangler.toml

drizzle/
17 changes: 17 additions & 0 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import 'dotenv/config';
import { defineConfig } from 'drizzle-kit';

export default defineConfig({
out: './drizzle',
schema: [
"./src/llm/schema.ts",
// "./src/core/schema.ts",
],
dialect: 'sqlite',
driver: "d1-http",
dbCredentials: {
accountId: process.env.CLOUDFLARE_ACCOUNT_ID!,
databaseId: process.env.CLOUDFLARE_DATABASE_ID!,
token: process.env.CLOUDFLARE_D1_TOKEN!,
},
});
11 changes: 11 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";


export default [
{files: ["**/*.{js,mjs,cjs,ts}"]},
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];
Loading

0 comments on commit 4b46677

Please sign in to comment.