forked from emdash-cms/emdash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
106 lines (106 loc) · 3.05 KB
/
Copy path.oxlintrc.json
File metadata and controls
106 lines (106 loc) · 3.05 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "import", "unicorn", "promise"],
"jsPlugins": ["@e18e/eslint-plugin"],
"categories": {
"correctness": "error",
"suspicious": "warn",
"perf": "warn"
},
"rules": {
"no-await-in-loop": "off",
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"unicorn/filename-case": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/no-null": "off",
"unicorn/prefer-add-event-listener": "off",
"typescript/no-unsafe-type-assertion": "warn",
"typescript/unbound-method": "off",
"typescript/no-unnecessary-boolean-literal-compare": "off",
"import/no-named-as-default": "off",
"import/no-unassigned-import": [
"warn",
{
"allow": ["**/*.css", "@testing-library/react", "vitest-browser-react"]
}
],
"e18e/prefer-array-at": "error",
"e18e/prefer-array-fill": "error",
"e18e/prefer-includes": "error",
"e18e/prefer-array-to-reversed": "error",
"e18e/prefer-array-to-sorted": "error",
"e18e/prefer-array-to-spliced": "error",
"e18e/prefer-nullish-coalescing": "error",
"e18e/prefer-object-has-own": "error",
"e18e/prefer-spread-syntax": "error",
"e18e/prefer-url-canparse": "error",
"e18e/ban-dependencies": "error",
"e18e/prefer-array-from-map": "error",
"e18e/prefer-timer-args": "error",
"e18e/prefer-date-now": "error",
"e18e/prefer-regex-test": "error",
"e18e/prefer-array-some": "error",
"e18e/prefer-static-regex": "error"
},
"overrides": [
{
"files": ["**/*.test.ts", "**/*.test.tsx", "**/tests/**/*.ts", "**/tests/**/*.tsx"],
"rules": {
"typescript/no-unsafe-type-assertion": "off",
"typescript/no-unnecessary-type-assertion": "off",
"unicorn/consistent-function-scoping": "off",
"e18e/prefer-static-regex": "off"
}
},
{
"files": [
"**/database/repositories/content.ts",
"**/database/repositories/comment.ts",
"**/database/repositories/user.ts",
"**/mcp/server.ts",
"**/client/index.ts",
"**/client/transport.ts",
"**/client/portable-text.ts",
"**/cli/**/*.ts",
"**/api/handlers/api-tokens.ts",
"**/api/handlers/device-flow.ts",
"**/api/handlers/oauth-authorization.ts",
"**/api/handlers/comments.ts",
"**/routes/api/oauth/token.ts",
"**/routes/api/comments/**/*.ts",
"**/routes/api/admin/comments/**/*.ts",
"**/routes/api/plugins/**/*.ts",
"**/plugins/hooks.ts",
"**/plugins/context.ts",
"**/plugins/cron.ts",
"**/plugins/define-plugin.ts",
"**/plugins/request-meta.ts",
"**/seed/load.ts",
"**/comments/notifications.ts",
"**/astro/integration/index.ts",
"packages/plugins/**/*.ts",
"packages/plugins/**/*.tsx",
"packages/blocks/**/*.tsx",
"packages/admin/**/*.tsx"
],
"rules": {
"typescript/no-unsafe-type-assertion": "off"
}
}
],
"ignorePatterns": [
"**/dist/**",
"**/node_modules/**",
"**/*.d.ts",
"skills/**/scaffold/**",
".agents/skills/**/scaffold/**",
".claude/skills/**/scaffold/**",
"scripts/query-dumps/**"
]
}