This repository was archived by the owner on Aug 10, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.oxlintrc.json
More file actions
224 lines (224 loc) · 9.2 KB
/
Copy path.oxlintrc.json
File metadata and controls
224 lines (224 loc) · 9.2 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["unicorn", "typescript", "oxc"],
"jsPlugins": [
"./lint-plugins/react-component-complexity.mjs",
"./lint-plugins/react-hooks-separation.mjs",
"./lint-plugins/test-file-location.mjs",
"./lint-plugins/compozy-design-system.mjs",
"./lint-plugins/ui-primitive-reuse.mjs",
"./lint-plugins/data-boundaries.mjs",
{ "name": "react-doctor", "specifier": "oxlint-plugin-react-doctor" }
],
"categories": {},
"rules": {
"no-unassigned-vars": "warn",
"for-direction": "warn",
"no-async-promise-executor": "warn",
"no-caller": "warn",
"no-class-assign": "warn",
"no-compare-neg-zero": "warn",
"no-cond-assign": "warn",
"no-const-assign": "warn",
"no-constant-binary-expression": "warn",
"no-constant-condition": "warn",
"no-control-regex": "warn",
"no-debugger": "warn",
"no-delete-var": "warn",
"no-dupe-class-members": "warn",
"no-dupe-else-if": "warn",
"no-dupe-keys": "warn",
"no-duplicate-case": "warn",
"no-empty-character-class": "warn",
"no-empty-pattern": "warn",
"no-empty-static-block": "warn",
"no-eval": "warn",
"no-ex-assign": "warn",
"no-extra-boolean-cast": "warn",
"no-func-assign": "warn",
"no-global-assign": "warn",
"no-import-assign": "warn",
"no-invalid-regexp": "warn",
"no-irregular-whitespace": "warn",
"no-loss-of-precision": "warn",
"no-new-native-nonconstructor": "warn",
"no-nonoctal-decimal-escape": "warn",
"no-obj-calls": "warn",
"no-self-assign": "warn",
"no-setter-return": "warn",
"no-shadow-restricted-names": "warn",
"no-sparse-arrays": "warn",
"no-this-before-super": "warn",
"no-unsafe-finally": "warn",
"no-unsafe-negation": "warn",
"no-unsafe-optional-chaining": "warn",
"no-unused-labels": "warn",
"no-unused-private-class-members": "error",
"no-unused-vars": "error",
"no-unused-expressions": ["warn", { "allowTaggedTemplates": true }],
"no-useless-backreference": "warn",
"no-useless-catch": "warn",
"no-useless-escape": "warn",
"no-useless-rename": "warn",
"no-with": "warn",
"require-yield": "warn",
"use-isnan": "warn",
"valid-typeof": "warn",
"oxc/bad-array-method-on-arguments": "warn",
"oxc/bad-char-at-comparison": "warn",
"oxc/bad-comparison-sequence": "warn",
"oxc/bad-min-max-func": "warn",
"oxc/bad-object-literal-comparison": "warn",
"oxc/bad-replace-all-arg": "warn",
"oxc/const-comparisons": "warn",
"oxc/double-comparisons": "warn",
"oxc/erasing-op": "warn",
"oxc/missing-throw": "warn",
"oxc/number-arg-out-of-range": "warn",
"oxc/only-used-in-recursion": "warn",
"oxc/uninvoked-array-callback": "warn",
"typescript/no-duplicate-enum-values": "warn",
"typescript/no-extra-non-null-assertion": "warn",
"typescript/no-misused-new": "warn",
"typescript/no-non-null-asserted-optional-chain": "warn",
"typescript/no-this-alias": "off",
"typescript/no-unnecessary-parameter-property-assignment": "warn",
"typescript/no-unsafe-declaration-merging": "warn",
"typescript/no-useless-empty-export": "warn",
"typescript/no-wrapper-object-types": "warn",
"typescript/prefer-as-const": "warn",
"typescript/triple-slash-reference": "warn",
"unicorn/no-await-in-promise-methods": "warn",
"unicorn/no-empty-file": "warn",
"unicorn/no-invalid-fetch-options": "warn",
"unicorn/no-invalid-remove-event-listener": "warn",
"unicorn/no-new-array": "warn",
"unicorn/no-single-promise-in-promise-methods": "warn",
"unicorn/no-thenable": "warn",
"unicorn/no-unnecessary-await": "warn",
"unicorn/no-useless-fallback-in-spread": "warn",
"unicorn/no-useless-length-check": "warn",
"unicorn/no-useless-spread": "warn",
"unicorn/prefer-set-size": "warn",
"unicorn/prefer-string-starts-ends-with": "warn",
"compozy-testing/tests-in-tests-dir": "error",
"compozy-design-system/no-inline-eyebrow": "error",
"compozy-design-system/no-design-glaze-rgba": "error",
"compozy-design-system/no-banned-imports": "error",
"compozy-design-system/no-inline-design-tuples": "error",
"compozy-design-system/prefer-bare-token-utility": "error",
"compozy-design-system/no-low-contrast-focus-ring": "error",
"compozy-ui-reuse/no-shadow-ui-primitive": "error",
"compozy-data-boundaries/require-canonical-query-options": "error",
"compozy-data-boundaries/no-inline-query-key": "error"
},
"overrides": [
{
"files": ["web/src/**/*.tsx", "packages/ui/src/**/*.tsx", "packages/site/**/*.tsx"],
"rules": {
"compozy-react/max-component-complexity": [
"error",
{
"maxHooks": 5,
"maxHandlers": 3,
"maxTotal": 7
}
],
"compozy-react-hooks/no-mixed-hooks-and-components": "error"
}
},
{
"files": [
"web/src/**/*.{ts,tsx}",
"packages/ui/src/**/*.{ts,tsx}",
"packages/site/**/*.{ts,tsx}"
],
"rules": {
"compozy-react-hooks/hooks-in-hooks-folder": "error"
}
},
{
"files": [
"web/src/**/*.{ts,tsx}",
"packages/ui/src/**/*.{ts,tsx}",
"packages/site/**/*.{ts,tsx}"
],
"rules": {
"react-doctor/effect-needs-cleanup": "error",
"react-doctor/hooks-no-nan-in-deps": "error",
"react-doctor/checked-requires-onchange-or-readonly": "error",
"react-doctor/no-reset-all-state-on-prop-change": "error",
"react-doctor/no-pass-live-state-to-parent": "error",
"react-doctor/no-array-index-as-key": "error",
"react-doctor/exhaustive-deps": "error",
"react-doctor/no-effect-with-fresh-deps": "error",
"react-doctor/no-derived-useState": "error",
"react-doctor/no-event-handler": "error",
"react-doctor/button-has-type": "error",
"react-doctor/no-call-component-as-function": "error",
"react-doctor/jsx-no-constructed-context-values": "error",
"react-doctor/use-lazy-motion": "error",
"react-doctor/rerender-memo-with-default-value": "error",
"react-doctor/js-set-map-lookups": "error",
"react-doctor/js-combine-iterations": "error",
"react-doctor/js-flatmap-filter": "error",
"react-doctor/js-hoist-intl": "error",
"react-doctor/no-scale-from-zero": "error",
"react-doctor/no-barrel-import": "error",
"react-doctor/rerender-lazy-state-init": "error",
"react-doctor/prefer-tag-over-role": "error",
"react-doctor/anchor-has-content": "error",
"react-doctor/no-redundant-roles": "error",
"react-doctor/react-compiler-no-manual-memoization": "error",
"react-doctor/prefer-module-scope-static-value": "error",
"react-doctor/prefer-module-scope-pure-function": "error",
"react-doctor/only-export-components": "error",
"react-doctor/no-many-boolean-props": "error",
"react-doctor/no-react19-deprecated-apis": "error",
"react-doctor/no-giant-component": "error"
}
},
{
"files": [
"**/*_test.{js,ts,tsx}",
"**/*.test.{js,ts,tsx}",
"**/test/**/*.{js,ts,tsx}",
"**/tests/*.{js,ts,tsx}",
"**/__tests__/**/*.{js,ts,tsx}",
"**/*.stories.{ts,tsx}"
],
"rules": {
"eslint/max-lines-per-function": "off",
"compozy-react/max-component-complexity": "off",
"compozy-react-hooks/no-mixed-hooks-and-components": "off",
"compozy-react-hooks/hooks-in-hooks-folder": "off",
"typescript/unbound-method": "off",
"typescript/await-thenable": "off"
}
}
],
"settings": {
"jsx-a11y": {
"polymorphicPropName": "",
"components": {}
},
"react": {
"formComponents": [],
"linkComponents": []
}
},
"env": {
"builtin": true
},
"globals": {},
"ignorePatterns": [
".old_project/**",
".resources/**",
".claude/skills/**",
".agents/skills/**",
"web/dist/**",
"**/routeTree.gen.ts",
".compozy/tasks/**",
"docs/design/**"
]
}