forked from RhysSullivan/executor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.jsonc
More file actions
125 lines (125 loc) · 4.36 KB
/
Copy path.oxlintrc.jsonc
File metadata and controls
125 lines (125 loc) · 4.36 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
{
"plugins": ["react"],
"jsPlugins": [{ "name": "executor", "specifier": "./scripts/oxlint-plugin-executor.js" }],
"rules": {
"typescript/no-explicit-any": "error",
"executor/no-vitest-import": "error",
"executor/no-conditional-tests": "error",
"executor/no-double-cast": "error",
"executor/no-cross-package-relative-imports": "error",
"executor/no-direct-cloud-executor-schema-import": "error",
"executor/require-reactivity-keys": "error",
"executor/no-effect-escape-hatch": "error",
"executor/no-effect-internal-tags": "error",
"executor/no-error-constructor": "error",
"executor/no-inline-schema-compile": "error",
"executor/no-instanceof-error": "error",
"executor/no-instanceof-tagged-error": "error",
"executor/no-json-parse": "error",
"executor/no-manual-tag-check": "error",
"executor/no-match-orelse": "error",
"executor/no-promise-catch": "error",
"executor/no-promise-reject": "error",
"executor/no-raw-fetch": "error",
"executor/no-redundant-primitive-cast": "error",
"executor/no-redundant-error-factory": "error",
"executor/no-schema-class-http-payload": "error",
"executor/no-switch-statement": "error",
"executor/no-ts-nocheck": "error",
"executor/no-try-catch-or-throw": "error",
"executor/no-unknown-error-message": "error",
"executor/no-unsupported-effect-api": "error",
"executor/prefer-schema-inferred-types": "error",
"executor/prefer-value-inferred-extension-types": "error",
"executor/prefer-yield-tagged-error": "error",
"react/forbid-elements": [
"error",
{
"forbid": [
{ "element": "button", "message": "Use <Button> from @executor/react" },
{ "element": "input", "message": "Use <Input> from @executor/react" },
{ "element": "textarea", "message": "Use <Textarea> from @executor/react" },
{ "element": "select", "message": "Use <Select> or <NativeSelect> from @executor/react" },
{ "element": "table", "message": "Use <Table> from @executor/react" },
{ "element": "label", "message": "Use <Label> from @executor/react" },
],
},
],
},
"overrides": [
{
"files": [
"apps/cli/src/**/*.{ts,tsx}",
"apps/desktop/src/main.ts",
"scripts/**/*.{ts,js}",
"packages/kernel/runtime-*/src/**/*.{ts,tsx,js,mjs}",
],
"rules": {
"executor/no-effect-escape-hatch": "off",
"executor/no-error-constructor": "off",
"executor/no-instanceof-error": "off",
"executor/no-json-parse": "off",
"executor/no-promise-catch": "off",
"executor/no-promise-reject": "off",
"executor/no-switch-statement": "off",
"executor/no-try-catch-or-throw": "off",
"executor/no-unknown-error-message": "off",
},
},
{
"files": ["apps/marketing/src/**/*.astro"],
"rules": {
"executor/no-effect-escape-hatch": "off",
"executor/no-error-constructor": "off",
"executor/no-instanceof-error": "off",
"executor/no-json-parse": "off",
"executor/no-try-catch-or-throw": "off",
"executor/no-unknown-error-message": "off",
},
},
{
"files": ["packages/core/vite-plugin/src/**/*.{ts,tsx}"],
"rules": {
"executor/no-try-catch-or-throw": "off",
},
},
{
"files": ["packages/kernel/core/src/code-recovery.ts"],
"rules": {
"executor/no-switch-statement": "off",
},
},
{
"files": ["packages/react/src/components/**/*.{ts,tsx}"],
"rules": {
"executor/no-error-constructor": "off",
"executor/no-try-catch-or-throw": "off",
},
},
{
"files": ["packages/plugins/workos-vault/src/**/*.{ts,tsx}"],
"rules": {
"executor/no-inline-object-type-assertion": "error",
"executor/no-instanceof-tagged-error": "error",
"executor/no-manual-tag-check": "error",
"executor/no-promise-client-surface": "error",
"executor/no-raw-error-throw": "error",
"executor/no-redundant-error-factory": "error",
"executor/no-unknown-shape-probing": "error",
},
},
],
"ignorePatterns": [
".astro/",
".reference/",
".references/",
".turbo/",
".worktrees/",
"dist/",
"node_modules/",
"bun.lock",
"*.tsbuildinfo",
"executor-*.tgz",
"**/routeTree.gen.ts",
],
}