Repository navigation
Expand file tree
/
Copy path.oxlintrc.json
More file actions
83 lines (83 loc) · 2.33 KB
/
Copy path.oxlintrc.json
File metadata and controls
83 lines (83 loc) · 2.33 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"eslint",
"typescript",
"unicorn",
"oxc",
"react",
"nextjs",
"jsx-a11y",
"import"
],
"categories": {
"correctness": "error",
"suspicious": "warn",
"pedantic": "off",
"style": "off"
},
"ignorePatterns": [".next/**", "generated/**", "next-env.d.ts"],
"rules": {
"no-explicit-any": "error",
"no-unused-vars": [
"error",
{
"caughtErrors": "none"
}
],
"react/rules-of-hooks": "error",
"react/exhaustive-deps": "warn",
"react/hooks": "error",
"react/unsupported-syntax": "error",
"react/exhaustive-effect-dependencies": "off",
"react/set-state-in-effect": "warn",
"react/react-in-jsx-scope": "off",
"import/no-unassigned-import": "off",
"jsx-a11y/prefer-tag-over-role": "warn",
"jsx-a11y/no-noninteractive-tabindex": "warn",
"jsx-a11y/control-has-associated-label": "warn",
"no-empty": "error",
"no-case-declarations": "error",
"no-fallthrough": "error",
"no-prototype-builtins": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"no-array-constructor": "error",
"no-unexpected-multiline": "error",
"typescript/ban-ts-comment": "error",
"typescript/no-require-imports": "error",
"typescript/no-empty-object-type": "error",
"typescript/no-unsafe-function-type": "error",
"typescript/no-namespace": "error",
"typescript/no-unnecessary-type-constraint": "error",
"react/no-unescaped-entities": "error",
"react/display-name": "error",
"react/jsx-no-target-blank": "error",
"import/no-anonymous-default-export": "warn",
"nextjs/no-img-element": "warn"
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx", "**/*.mts"],
"rules": {
"no-redeclare": "off"
}
},
{
"files": ["__tests__/**"],
"plugins": ["vitest"],
"rules": {
"vitest/require-mock-type-parameters": "off",
"vitest/no-conditional-tests": "warn",
"jsx-a11y/aria-role": "off",
"no-unused-expressions": "warn",
"vitest/no-identical-title": "error",
"vitest/no-import-node-test": "error"
}
}
]
}