-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy path.oxlintrc.json
More file actions
131 lines (131 loc) · 4.02 KB
/
Copy path.oxlintrc.json
File metadata and controls
131 lines (131 loc) · 4.02 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"$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/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",
// Noisy/stylistic rules added in newer oxlint. Disabled while we triage them
// (see https://github.com/emdash-cms/emdash/issues — track follow-ups before
// re-enabling).
"no-underscore-dangle": "off",
"typescript/consistent-return": "off",
"typescript/no-unnecessary-type-conversion": "off",
"typescript/no-unnecessary-type-parameters": "off",
// The rule degrades to an unactionable error on configs without
// strictNullChecks (the test plugins under packages/plugins/*-test/).
"typescript/no-useless-default-assignment": "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",
"packages/atproto-test-utils/**/*.ts"
],
"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",
"packages/plugin-cli/src/bundle/api.ts",
"packages/plugin-cli/src/bundle/utils.ts",
"packages/plugin-cli/src/bundle/command.ts",
"packages/plugin-cli/src/bundle/types.ts",
"packages/plugin-cli/src/oauth.ts",
"packages/plugin-cli/src/publish/api.ts",
"packages/plugin-cli/src/commands/publish.ts",
"packages/registry-client/src/publishing/index.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",
"**/src/generated/**",
"skills/**/scaffold/**",
".agents/skills/**/scaffold/**",
".claude/skills/**/scaffold/**",
"scripts/query-dumps/**",
".flue/**"
]
}