Skip to content

Commit cc92d8f

Browse files
committed
chore: add project config files
1 parent 6517e77 commit cc92d8f

3 files changed

Lines changed: 65 additions & 0 deletions

File tree

config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"root_dir": "",
3+
"route_file": "src/main/typesense_server.cpp",
4+
"source_branch": "v30",
5+
"output_path": "./output/typesense_api_spec.json",
6+
"diagnostics_output_path": "./output/typesense_api_diagnostics.json",
7+
"max_call_depth": 4,
8+
"fail_on_unresolved": false,
9+
"blacklist": {
10+
"paths": ["/proxy", "/proxy_sse", "/operations/reset_peers", "/limits"],
11+
"params": ["_ArraySize_"]
12+
},
13+
"overrides": []
14+
}

eslint.config.mjs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
4+
export default tseslint.config(
5+
eslint.configs.recommended,
6+
...tseslint.configs.recommendedTypeChecked,
7+
{
8+
ignores: ["**/dist/**"],
9+
},
10+
{
11+
languageOptions: {
12+
parserOptions: {
13+
projectService: true,
14+
tsconfigRootDir: import.meta.dirname,
15+
},
16+
},
17+
rules: {
18+
"@typescript-eslint/consistent-type-imports": [
19+
"error",
20+
{ prefer: "type-imports", fixStyle: "separate-type-imports" },
21+
],
22+
"@typescript-eslint/no-explicit-any": "error",
23+
"@typescript-eslint/no-unused-vars": [
24+
"error",
25+
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
26+
],
27+
},
28+
},
29+
{
30+
files: ["**/*.js", "**/*.mjs"],
31+
...tseslint.configs.disableTypeChecked,
32+
},
33+
);

tsconfig.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2022",
4+
"module": "Node16",
5+
"moduleResolution": "Node16",
6+
"strict": true,
7+
"noImplicitOverride": true,
8+
"noUncheckedIndexedAccess": true,
9+
"exactOptionalPropertyTypes": true,
10+
"esModuleInterop": true,
11+
"skipLibCheck": true,
12+
"declaration": true,
13+
"outDir": "dist",
14+
"rootDir": "src",
15+
"resolveJsonModule": true
16+
},
17+
"include": ["src"]
18+
}

0 commit comments

Comments
 (0)