-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
71 lines (67 loc) · 2.37 KB
/
Copy path.oxlintrc.json
File metadata and controls
71 lines (67 loc) · 2.37 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "oxc", "import", "node", "promise"],
"categories": {
"correctness": "error",
"suspicious": "error",
"perf": "error",
"pedantic": "off",
"style": "off",
"restriction": "off",
"nursery": "off"
},
"env": {
"node": true,
"es2024": true
},
"rules": {
"prefer-arrow-callback": ["error", { "allowNamedFunctions": false }],
"func-style": ["error", "expression", { "allowArrowFunctions": true }],
"arrow-body-style": ["error", "as-needed"],
"no-console": ["error", { "allow": ["error", "warn"] }],
"eqeqeq": ["error", "always"],
"no-var": "error",
"prefer-const": "error",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"no-throw-literal": "error",
"no-param-reassign": ["error", { "props": true }],
"prefer-template": "error",
"no-implicit-coercion": "error",
"object-shorthand": "error",
"no-nested-ternary": "error",
"no-await-in-loop": "warn",
"no-promise-executor-return": "error",
"typescript/no-explicit-any": "error",
"typescript/no-non-null-assertion": "warn",
"typescript/consistent-type-imports": "error",
"typescript/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"typescript/prefer-as-const": "error",
"typescript/no-inferrable-types": "error",
"typescript/array-type": ["error", { "default": "array-simple" }],
"unicorn/prefer-node-protocol": "error",
"unicorn/prefer-array-some": "error",
"unicorn/prefer-includes": "error",
"unicorn/prefer-string-starts-ends-with": "error",
"unicorn/prefer-string-replace-all": "error",
"unicorn/no-useless-undefined": "error",
"unicorn/throw-new-error": "error",
"unicorn/error-message": "error",
"unicorn/filename-case": ["error", { "case": "kebabCase" }],
"unicorn/no-abusive-eslint-disable": "error",
"unicorn/switch-case-braces": "off",
"unicorn/no-null": "off",
"import/no-duplicates": "error",
"import/no-cycle": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error"
},
"ignorePatterns": ["dist/**", "node_modules/**", "*.config.js", "*.config.ts"],
"overrides": [
{
"files": ["src/commands/skill.ts"],
"rules": {
"no-await-in-loop": "off"
}
}
]
}