forked from openedx/frontend-app-authoring
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
31 lines (31 loc) · 1.19 KB
/
.oxlintrc.json
File metadata and controls
31 lines (31 loc) · 1.19 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"categories": {
"correctness": "warn"
},
"plugins": ["react"],
"rules": {
"eslint/no-unused-vars": ["warn", {
// Allow using {ignoredProp, ...keepTheRest} to omit a prop like 'ignoredProp' from an object.
"ignoreRestSiblings": true
}],
// We disable exhaustive-deps because: it's noisy, and we often include extra deps when we want a memoized thing to
// re-calculate after some change, even if we're not using that thing in the calculation.
"react-hooks/exhaustive-deps": "off",
// Rule of hooks is useful, but not on by default:
"react/rules-of-hooks": "warn",
"typescript/no-floating-promises": ["error", {
"allowForKnownSafeCalls": [
// queryClient.invalidateQueries returns a promise that can be awaited
// if you want to do something after all the subsequent refetches are
// complete, but we rarely if ever want that; we usually want to
// continue invalidating more things immediately. So we don't usually
// want to await this.
"invalidateQueries"
]
}]
},
"ignorePatterns": [
"webpack.dev-tutor.config.js"
]
}