-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy path.oxlintrc.json
More file actions
114 lines (108 loc) · 3.45 KB
/
.oxlintrc.json
File metadata and controls
114 lines (108 loc) · 3.45 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
"plugins": ["react", "typescript", "jsx-a11y", "jest"],
"ignorePatterns": ["**/*.{mjs,cjs,js,d.ts,d.mts}"],
"rules": {
"array-callback-return": "error",
"no-duplicate-imports": "error",
"no-var": "error",
"no-self-compare": "error",
"no-template-curly-in-string": "error",
"curly": "error",
"default-case": "off",
"default-case-last": "error",
"no-alert": "error",
"no-console": "error",
"no-else-return": "error",
"no-eval": "error",
"no-lonely-if": "error",
"no-multi-assign": "error",
"no-multi-str": "error",
"no-param-reassign": "error",
"no-return-assign": "error",
"no-script-url": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unneeded-ternary": "error",
"no-useless-call": "error",
"no-useless-constructor": "error",
"no-useless-return": "error",
"operator-assignment": "error",
"prefer-const": "error",
"prefer-exponentiation-operator": "error",
"prefer-object-has-own": "error",
"prefer-promise-reject-errors": "error",
"prefer-object-spread": "error",
"prefer-template": "error",
"yoda": "error",
"radix": "error",
"eqeqeq": ["error", "smart"],
"no-undef": "off",
"no-empty": "off",
"no-unused-expressions": "off",
"no-redeclare": "off",
"no-use-before-define": "off",
"no-loop-func": "off",
"typescript/no-explicit-any": "off",
"typescript/ban-ts-comment": "off",
"typescript/consistent-generic-constructors": "error",
"typescript/no-empty-object-type": "off",
"typescript/no-namespace": "off",
"typescript/no-unsafe-function-type": "off",
"typescript/no-deprecated": "warn",
"no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"caughtErrors": "none",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"react/button-has-type": "error",
"react/jsx-boolean-value": "error",
"react/jsx-curly-brace-presence": [
"error",
{ "props": "never", "children": "never", "propElementValues": "ignore" }
],
"react/jsx-fragments": ["error", "syntax"],
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-target-blank": "error",
"react/no-children-prop": "error",
"react/no-find-dom-node": "error",
"react/no-string-refs": "error",
"react/self-closing-comp": "error",
"react/void-dom-elements-no-children": "error",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/anchor-has-content": "off",
"react-hooks/exhaustive-deps": "off",
"jsx-a11y/role-has-required-aria-props": "off",
"jsx-a11y/prefer-tag-over-role": "off",
"jest/no-export": "off",
"jest/expect-expect": "off",
"jest/valid-title": "off",
"jest/require-to-throw-message": "off"
},
"overrides": [
{
"files": ["**/*.test.ts", "**/*.test.tsx"],
"rules": {
"react/jsx-key": "off",
"no-unsafe-optional-chaining": "off"
}
},
{
"files": ["**/*.story.tsx"],
"rules": {
"no-console": "off",
"react/button-has-type": "off"
}
}
]
}