-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
46 lines (44 loc) · 1.06 KB
/
Copy patheslint.config.js
File metadata and controls
46 lines (44 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import tsParser from "@typescript-eslint/parser";
import { defineConfig, globalIgnores } from "eslint/config";
import jsdocPlugin from "eslint-plugin-jsdoc";
import tsdoc from "eslint-plugin-tsdoc";
const allowedTags = [
"ai",
"codex",
"openai",
"remarks",
"param",
"typeParam",
"returns",
"throws",
"example",
"see",
"deprecated",
];
export default defineConfig([
globalIgnores([
"node_modules/**",
"dist/**",
"build/**",
".turbo/**",
"opensrc/**",
"packages/codex-app-server-protocol/src/generated/**",
"tools/codex-schemas/**",
"tools/.trash/**",
]),
{
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",
},
plugins: { jsdoc: jsdocPlugin, tsdoc },
rules: {
"tsdoc/syntax": "error",
"jsdoc/check-tag-names": ["error", { definedTags: allowedTags }],
"jsdoc/sort-tags": ["error", { tagSequence: [{ tags: allowedTags }] }],
"jsdoc/require-hyphen-before-param-description": "error",
},
},
]);