-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy path.oxlintrc.json
More file actions
68 lines (68 loc) · 1.77 KB
/
.oxlintrc.json
File metadata and controls
68 lines (68 loc) · 1.77 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"eslint",
"typescript",
"unicorn",
"react",
"jest",
"import",
"oxc"
],
"env": {
"node": true,
"browser": true,
"es2024": true
},
"globals": {
"cy": "readonly",
"Cypress": "readonly",
"VERSION": "readonly",
"SplitIO": "readonly"
},
"categories": {
"correctness": "error",
"suspicious": "warn"
},
"ignorePatterns": ["**/node_modules/", "**/coverage/", "**/dist/"],
"rules": {
"eqeqeq": ["error", "smart"],
"no-console": "warn",
"no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "caughtErrorsIgnorePattern": "^_" }
],
"no-undef": "error",
"no-void": "error",
"no-negated-condition": "error",
"no-restricted-globals": ["error", "event", "atob", "btoa"],
"curly": "error",
"no-lonely-if": "error",
"no-param-reassign": "error",
"default-param-last": "error",
"no-empty": "error",
"no-empty-function": "error",
"no-array-constructor": "error",
"typescript/no-explicit-any": "off",
"typescript/no-inferrable-types": "error",
"typescript/array-type": ["error", { "default": "array" }],
"typescript/prefer-for-of": "error",
"typescript/prefer-enum-initializers": "error",
"typescript/no-unnecessary-template-expression": "off",
"unicorn/prefer-number-properties": "error",
"react/self-closing-comp": "error",
"react/react-in-jsx-scope": "off",
"react/jsx-no-useless-fragment": "off",
"react-hooks/exhaustive-deps": "warn",
"import/no-duplicates": "error",
"jest/no-disabled-tests": "warn"
},
"overrides": [
{
"files": ["demo/**", "scripts/**"],
"rules": {
"no-console": "off"
}
}
]
}