forked from perses/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
60 lines (60 loc) · 1.97 KB
/
Copy path.oxlintrc.json
File metadata and controls
60 lines (60 loc) · 1.97 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "unicorn", "oxc", "import", "react", "react-perf", "jsx-a11y"],
"jsPlugins": [{ "name": "react-doctor", "specifier": "oxlint-plugin-react-doctor" }],
"categories": {
"correctness": "error",
"suspicious": "warn",
"perf": "warn"
},
"env": {
"commonjs": true,
"es6": true,
"jest": true,
"node": true,
"browser": true
},
"rules": {
"typescript/explicit-function-return-type": "error",
"typescript/explicit-module-boundary-types": "error",
"typescript/array-type": ["error", { "default": "array-simple" }],
"eqeqeq": ["error", "always"],
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"no-nested-ternary": "error",
"react/react-in-jsx-scope": "off",
"react/rules-of-hooks": "error",
"react/checked-requires-onchange-or-readonly": "error",
"react/display-name": "error",
"react/jsx-no-target-blank": "error",
"react/jsx-no-useless-fragment": "warn",
"react/no-unescaped-entities": "error",
"react/exhaustive-deps": "error",
"react/react-compiler": "warn",
"react-doctor/no-fetch-in-effect": "warn",
"react-doctor/no-derived-state": "warn",
"react/jsx-curly-brace-presence": [
"error",
{ "props": "never", "children": "never", "propElementValues": "always" }
],
"import/no-duplicates": "error",
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": ["mdi-material-ui", "!mdi-material-ui/"],
"message": "Please use the default import from the icon file directly rather than using a named import.\n\nGood:\nimport IconName from 'mdi-material-ui/IconName';\n\nBad:\nimport { IconName } from 'mdi-material-ui';"
}
]
}
]
},
"ignorePatterns": ["**/dist", "**/lib"]
}