forked from String-dxd/teacher-workspace-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
52 lines (51 loc) · 2 KB
/
Copy path.oxlintrc.json
File metadata and controls
52 lines (51 loc) · 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"ignorePatterns": ["**/build/**", "**/dist/**", "**/node_modules/**"],
"env": {
"browser": true,
"node": true
},
"plugins": ["typescript", "react", "import"],
"categories": {
"correctness": "error"
},
"rules": {
"eslint/no-console": "warn",
"typescript/use-unknown-in-catch-callback-variable": "error",
// Rules from the original ESLint config not enabled by default in Oxlint.
"eslint/no-array-constructor": "error",
"eslint/no-case-declarations": "error",
"eslint/no-empty": "error",
"eslint/no-empty-function": "error",
"eslint/no-fallthrough": "error",
"eslint/no-prototype-builtins": "error",
"eslint/no-redeclare": "error",
"eslint/no-regex-spaces": "error",
"eslint/no-unexpected-multiline": "error",
"typescript/adjacent-overload-signatures": "error",
"typescript/array-type": "error",
"typescript/ban-ts-comment": "error",
"typescript/ban-tslint-comment": "error",
"typescript/class-literal-property-style": "error",
"typescript/consistent-generic-constructors": "error",
"typescript/consistent-indexed-object-style": "error",
"typescript/consistent-type-assertions": "error",
"typescript/consistent-type-definitions": "error",
"typescript/no-confusing-non-null-assertion": "error",
"typescript/no-empty-object-type": "error",
"typescript/no-explicit-any": "error",
"typescript/no-inferrable-types": "error",
"typescript/no-namespace": "error",
"typescript/no-require-imports": "error",
"typescript/no-unnecessary-type-constraint": "error",
"typescript/no-unsafe-function-type": "error",
"typescript/prefer-for-of": "error",
"typescript/prefer-function-type": "error",
"react/display-name": "error",
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-target-blank": "error",
"react/no-unescaped-entities": "error",
"react/no-unknown-property": "error",
"react/rules-of-hooks": "error"
}
}