-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy path.oxlintrc.react.jsonc
More file actions
87 lines (87 loc) · 3.49 KB
/
Copy path.oxlintrc.react.jsonc
File metadata and controls
87 lines (87 loc) · 3.49 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"overrides": [
{
"files": ["packages/**/*.{ts,tsx}"],
"rules": {
"react/exhaustive-deps": "off",
"react/preserve-manual-memoization": "error",
"react/incompatible-library": "warn",
"react/error-boundaries": "error",
"react/globals": "error",
"react/immutability": "error",
"react/jsx-no-comment-textnodes": "warn",
"react/no-array-index-key": "warn",
"react/no-clone-element": "warn",
"react/no-direct-mutation-state": "error",
"react/purity": "warn",
"react/refs": "error",
"react/rules-of-hooks": "error",
"react/set-state-in-effect": "warn",
"react/set-state-in-render": "error",
"react/static-components": "error",
"react/unsupported-syntax": "error",
"react/use-memo": "error",
"react-x/dom-no-dangerously-set-innerhtml-with-children": "error",
"react-x/dom-no-dangerously-set-innerhtml": "warn",
"react-x/dom-no-find-dom-node": "error",
"react-x/dom-no-flush-sync": "error",
"react-x/dom-no-hydrate": "error",
"react-x/dom-no-render-return-value": "error",
"react-x/dom-no-render": "error",
"react-x/dom-no-script-url": "warn",
"react-x/dom-no-unsafe-iframe-sandbox": "warn",
"react-x/dom-no-use-form-state": "error",
"react-x/dom-no-void-elements-with-children": "error",
"react-x/jsx-no-children-prop-with-children": "error",
"react-x/jsx-no-children-prop": "warn",
"react-x/jsx-no-key-after-spread": "error",
"react-x/jsx-no-leaked-dollar": "error",
"react-x/jsx-no-leaked-semicolon": "warn",
"react-x/jsx-no-namespace": "error",
"react-x/naming-convention-context-name": "warn",
"react-x/naming-convention-id-name": "warn",
"react-x/naming-convention-ref-name": "warn",
"react-x/no-access-state-in-setstate": "error",
"react-x/no-children-count": "warn",
"react-x/no-children-for-each": "warn",
"react-x/no-children-map": "warn",
"react-x/no-children-only": "warn",
"react-x/no-children-to-array": "warn",
"react-x/no-component-will-mount": "error",
"react-x/no-component-will-receive-props": "error",
"react-x/no-component-will-update": "error",
"react-x/no-context-provider": "warn",
"react-x/no-create-ref": "error",
"react-x/no-forward-ref": "warn",
"react-x/no-missing-key": "error",
"react-x/no-nested-component-definitions": "error",
"react-x/no-nested-lazy-component-declarations": "error",
"react-x/no-set-state-in-component-did-mount": "warn",
"react-x/no-set-state-in-component-did-update": "warn",
"react-x/no-set-state-in-component-will-update": "warn",
"react-x/no-unnecessary-use-prefix": "warn",
"react-x/no-unsafe-component-will-mount": "warn",
"react-x/no-unsafe-component-will-receive-props": "warn",
"react-x/no-unsafe-component-will-update": "warn",
"react-x/no-unused-class-component-members": "warn",
"react-x/no-use-context": "warn",
"react-x/rsc-function-definition": "error",
"react-x/use-state": "warn",
"react-x/web-api-no-leaked-event-listener": "warn",
"react-x/web-api-no-leaked-fetch": "error",
"react-x/web-api-no-leaked-intersection-observer": "warn",
"react-x/web-api-no-leaked-interval": "warn",
"react-x/web-api-no-leaked-resize-observer": "warn",
"react-x/web-api-no-leaked-timeout": "warn"
},
"jsPlugins": [
{
"name": "react-x",
"specifier": "./node_modules/@eslint-react/eslint-plugin/dist/index.js"
}
],
"plugins": ["react"]
}
]
}