Repository navigation
Expand file tree
/
Copy path.oxlintrc.json
More file actions
108 lines (108 loc) · 3.21 KB
/
Copy path.oxlintrc.json
File metadata and controls
108 lines (108 loc) · 3.21 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "unicorn", "oxc", "jsx-a11y"],
"jsPlugins": ["./packages/cli/lint-rules/cli-oxlint-plugin.js"],
"categories": {
"correctness": "error"
},
"ignorePatterns": [
"apps/cli-docs/**",
"**/worker-configuration.d.ts",
"**/tsconfig*.json",
"packages/mcp-server-mocks/src/fixtures/**"
],
"rules": {
"no-unused-vars": "off",
"jsx-a11y/interactive-supports-focus": "off"
},
"overrides": [
{
"files": ["packages/mcp-cloudflare/src/client/**/*.tsx"],
"rules": {
"jsx-a11y/no-static-element-interactions": "off"
}
},
{
"files": [
"packages/cli/src/**/*.{ts,tsx}",
"packages/cli/test/**/*.{ts,tsx}"
],
"rules": {
"sentry-cli/no-silent-catch": "error",
"sentry-cli/no-stdout-write-in-commands": "error",
"sentry-cli/no-process-stdout-in-commands": "error",
"sentry-cli/no-stderr-write-in-commands": "error",
"sentry-cli/no-raw-metadata-queries": "error",
"sentry-cli/no-manual-transactions": "error",
"sentry-cli/no-inline-touch-cache": "error",
"sentry-cli/no-args-join-in-release": "error",
"sentry-cli/no-direct-target-resolution": "error",
"sentry-cli/no-generic-is-record": "error",
"sentry-cli/prefer-paginate-helper": "error",
"sentry-cli/no-namespace-import": "error",
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "@stricli/core",
"importNames": ["buildCommand", "buildRouteMap"],
"message": "Import the CLI command and route-map wrappers instead; they provide telemetry and standard aliases."
}
]
}
],
"no-bitwise": "error",
"max-params": ["error", 5],
"sentry-cli/no-skipped-tests": "error"
}
},
{
"files": ["packages/cli/src/**/*.{ts,tsx}"],
"rules": {
"typescript/no-explicit-any": "error",
"typescript/no-non-null-assertion": "error"
}
},
{
"files": [
"packages/cli/src/lib/command.ts",
"packages/cli/src/lib/route-map.ts"
],
"rules": {
"no-restricted-imports": "off"
}
},
{
"files": ["packages/cli/src/commands/**/*.{ts,tsx}"],
"rules": {
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "@stricli/core",
"importNames": ["buildCommand", "buildRouteMap"],
"message": "Import the CLI command and route-map wrappers instead; they provide telemetry and standard aliases."
},
{
"name": "chalk",
"message": "Use colorTag() from formatters/markdown.js so plain output works."
}
]
}
]
}
},
{
"files": [
"packages/cli/src/lib/build/zip-writer.ts",
"packages/cli/src/lib/build/index.ts",
"packages/cli/test/lib/build/zip-writer.test.ts"
],
"rules": {
"no-bitwise": "off"
}
}
]
}