-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy path.oxlintrc.json
More file actions
158 lines (158 loc) · 5.4 KB
/
Copy path.oxlintrc.json
File metadata and controls
158 lines (158 loc) · 5.4 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"eslint",
"oxc",
"typescript",
"unicorn",
"import",
"vitest",
"promise"
],
"options": {
"typeAware": true
},
"categories": {
"correctness": "error"
},
"env": {
"builtin": true
},
"ignorePatterns": ["**/*.config.{js,ts,mjs}", ".claude/"],
"rules": {
"vitest/require-mock-type-parameters": "off",
"vitest/expect-expect": [
"error",
{
"assertFunctionNames": ["expect", "expectRoundTrip"]
}
],
"jest/require-to-throw-message": "off",
"jest/valid-expect": "off",
"typescript/unbound-method": "off",
"typescript/no-floating-promises": "off",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"no-console": ["error", { "allow": ["warn", "error"] }],
"typescript/consistent-type-imports": [
"error",
{ "fixStyle": "inline-type-imports" }
],
"typescript/no-import-type-side-effects": "error",
"typescript/switch-exhaustiveness-check": "error",
"no-case-declarations": "error",
"no-empty": "error",
"no-fallthrough": "error",
"no-prototype-builtins": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"preserve-caught-error": "error",
"no-array-constructor": "error",
"typescript/ban-ts-comment": "error",
"typescript/no-empty-object-type": "error",
"typescript/no-namespace": "error",
"typescript/no-require-imports": "error",
"typescript/no-unnecessary-type-constraint": "error",
"typescript/no-unsafe-function-type": "error",
"typescript/no-unnecessary-type-assertion": "error",
"typescript/no-unsafe-enum-comparison": "error",
"typescript/only-throw-error": "error",
"typescript/prefer-promise-reject-errors": "error",
"typescript/require-await": "error",
"typescript/restrict-plus-operands": "error"
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
"rules": {
"constructor-super": "off",
"no-class-assign": "off",
"no-const-assign": "off",
"no-dupe-class-members": "off",
"no-dupe-keys": "off",
"no-func-assign": "off",
"no-import-assign": "off",
"no-new-native-nonconstructor": "off",
"no-obj-calls": "off",
"no-redeclare": "off",
"no-setter-return": "off",
"no-this-before-super": "off",
"no-unsafe-negation": "off",
"no-var": "error",
"no-with": "off",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error"
}
},
{
"files": ["packages/graph-explorer/**/*.{ts,tsx}"],
"plugins": ["react", "react-perf", "jsx-a11y"],
"jsPlugins": [
"@tanstack/eslint-plugin-query",
{ "name": "react-compiler", "specifier": "eslint-plugin-react-hooks" }
],
"env": { "browser": true },
"rules": {
"react/display-name": "off",
"react/no-unsafe": "error",
"react/react-in-jsx-scope": "off",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"react-compiler/rules-of-hooks": "off",
"react-compiler/exhaustive-deps": "off",
"react-compiler/config": "error",
"react-compiler/error-boundaries": "error",
"react-compiler/gating": "error",
"react-compiler/globals": "error",
"react-compiler/immutability": "error",
"react-compiler/incompatible-library": "warn",
"react-compiler/preserve-manual-memoization": "error",
"react-compiler/purity": "error",
"react-compiler/refs": "error",
"react-compiler/set-state-in-effect": "error",
"react-compiler/set-state-in-render": "error",
"react-compiler/static-components": "error",
"react-compiler/unsupported-syntax": "warn",
"react-compiler/use-memo": "error",
"react/jsx-key": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-undef": "error",
"react/no-children-prop": "error",
"react/no-danger-with-children": "error",
"react/no-direct-mutation-state": "error",
"react/no-find-dom-node": "error",
"react/no-is-mounted": "error",
"react/no-render-return-value": "error",
"react/no-string-refs": "error",
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-target-blank": "error",
"react/no-unescaped-entities": "error",
"react/no-unknown-property": "error",
"react/jsx-curly-brace-presence": "error",
"react/rules-of-hooks": "error",
"react/exhaustive-deps": "warn",
"@tanstack/query/exhaustive-deps": "error",
"@tanstack/query/no-rest-destructuring": "warn",
"@tanstack/query/stable-query-client": "error",
"@tanstack/query/no-unstable-deps": "error",
"@tanstack/query/infinite-query-property-order": "error",
"@tanstack/query/no-void-query-fn": "error",
"@tanstack/query/mutation-property-order": "error"
}
},
{
"files": ["packages/graph-explorer-proxy-server/**/*.{ts,js}"],
"plugins": ["node"],
"env": { "node": true }
}
]
}