-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
127 lines (127 loc) · 4.08 KB
/
.oxlintrc.json
File metadata and controls
127 lines (127 loc) · 4.08 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
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "import", "vitest", "promise", "node", "oxc", "react"],
"jsPlugins": [
"eslint-plugin-security",
"eslint-plugin-functional",
{
"name": "jsdoc-js",
"specifier": "eslint-plugin-jsdoc"
}
],
"categories": {
"correctness": "error",
"suspicious": "error",
"pedantic": "warn",
"perf": "error",
"style": "warn"
},
"rules": {
"typescript/no-explicit-any": "error",
"typescript/no-non-null-assertion": "error",
"typescript/no-non-null-asserted-optional-chain": "error",
"typescript/consistent-type-imports": "error",
"typescript/no-empty-interface": "off",
"typescript/consistent-indexed-object-style": "off",
"security/detect-child-process": "error",
"security/detect-eval-with-expression": "error",
"security/detect-non-literal-fs-filename": "off",
"security/detect-non-literal-regexp": "error",
"security/detect-object-injection": "off",
"security/detect-possible-timing-attacks": "warn",
"security/detect-unsafe-regex": "error",
"prefer-const": "error",
"no-var": "error",
"no-ternary": "error",
"no-console": "off",
"no-null": "off",
"curly": "error",
"eqeqeq": "error",
"func-style": "off",
"init-declarations": "off",
"id-length": "off",
"max-lines": "off",
"max-lines-per-function": "off",
"max-statements": "off",
"max-params": "off",
"max-classes-per-file": "off",
"no-magic-numbers": "off",
"no-duplicate-imports": "off",
"no-await-in-loop": "off",
"require-await": "off",
"sort-keys": "off",
"sort-imports": "off",
"functional/no-let": "off",
"functional/no-classes": "error",
"functional/no-this-expressions": "error",
"functional/no-throw-statements": "off",
"functional/no-try-statements": "off",
"functional/no-loop-statements": "off",
"unicorn/no-null": "off",
"unicorn/no-useless-undefined": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/prefer-node-protocol": "error",
"unicorn/no-unreadable-iife": "error",
"unicorn/no-array-for-each": "error",
"unicorn/prefer-array-flat-map": "error",
"import/no-cycle": "error",
"import/no-duplicates": "error",
"import/no-named-export": "off",
"import/no-nodejs-modules": "off",
"import/no-namespace": "off",
"import/no-unassigned-import": "off",
"import/first": "off",
"import/prefer-default-export": "off",
"import/exports-last": "off",
"import/max-dependencies": ["warn", { "max": 15 }],
"import/group-exports": "off",
"promise/avoid-new": "off",
"promise/prefer-await-to-callbacks": "off",
"promise/prefer-await-to-then": "off",
"vitest/no-importing-vitest-globals": "off",
"vitest/prefer-called-times": "off",
"vitest/prefer-called-once": "off",
"vitest/prefer-expect-type-of": "off",
"oxc/no-optional-chaining": "off",
"react/rules-of-hooks": "error",
"react/exhaustive-deps": "warn",
"react/jsx-no-duplicate-props": "error",
"react/jsx-key": "warn",
"react/no-children-prop": "error",
"react/no-direct-mutation-state": "error",
"react/react-in-jsx-scope": "off",
"react/jsx-max-depth": "off",
"react/jsx-props-no-spreading": "off",
"react/state-in-constructor": "off",
"jsdoc-js/multiline-blocks": [
"error",
{
"noSingleLineBlocks": true
}
]
},
"overrides": [
{
"files": ["*.test.ts", "*.spec.ts", "**/__tests__/**", "**/test/**"],
"rules": {
"no-unused-vars": "off",
"functional/no-classes": "off",
"typescript/no-non-null-assertion": "off",
"vitest/require-mock-type-parameters": "off",
"vitest/prefer-strict-boolean-matchers": "off",
"vitest/prefer-import-in-mock": "off",
"vitest/prefer-called-exactly-once-with": "off"
}
}
],
"ignorePatterns": [
"node_modules",
"dist",
"build",
"coverage",
"examples",
".claude",
"**/*.d.ts"
]
}