-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoxlint.json
More file actions
96 lines (96 loc) · 2.63 KB
/
oxlint.json
File metadata and controls
96 lines (96 loc) · 2.63 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
{
"$schema": "https://oxc.rs/schema/oxlintrc.json",
"env": {
"browser": true,
"es2021": true,
"node": true
},
"globals": {
"NodeJS": "readonly",
"JSX": "readonly"
},
"rules": {
"react/jsx-key": "error",
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-target-blank": "error",
"react/jsx-no-undef": "error",
"react/jsx-uses-react": "off",
"react/jsx-uses-vars": "error",
"react/no-children-prop": "error",
"react/no-danger-with-children": "error",
"react/no-deprecated": "warn",
"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/no-unescaped-entities": "error",
"react/no-unknown-property": "error",
"react/no-unsafe": "warn",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/require-render-return": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/no-self-import": "error",
"import/no-cycle": "error",
"import/no-duplicates": "error",
"no-console": "warn",
"no-debugger": "error",
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-constant-condition": "warn",
"no-unused-vars": "off",
"typescript/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"typescript/no-explicit-any": "warn",
"typescript/no-non-null-assertion": "warn",
"typescript/prefer-as-const": "error",
"typescript/no-namespace": "error",
"typescript/no-require-imports": "error",
"typescript/triple-slash-reference": "error",
"unicorn/filename-case": "off",
"unicorn/no-null": "off",
"unicorn/prefer-node-protocol": "error"
},
"settings": {
"jsx-a11y": {
"polymorphicPropName": "as",
"components": {}
}
},
"overrides": [
{
"files": [
"**/*.test.ts",
"**/*.test.tsx",
"test/**/*.ts",
"test/**/*.tsx"
],
"rules": {
"typescript/no-explicit-any": "off",
"typescript/no-non-null-asserted-optional-chain": "off",
"no-unsafe-optional-chaining": "off",
"no-console": "off"
}
},
{
"files": ["demo/**/*"],
"rules": {
"no-console": "off"
}
},
{
"files": ["*.config.ts", "*.config.js", "vite.config.ts"],
"rules": {
"typescript/no-require-imports": "off"
}
}
]
}