-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy path.oxlintrc.json
More file actions
101 lines (98 loc) · 3.05 KB
/
Copy path.oxlintrc.json
File metadata and controls
101 lines (98 loc) · 3.05 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "import", "unicorn", "node"],
"categories": {
"correctness": "error",
"suspicious": "warn",
"perf": "warn",
"style": "warn"
},
"env": {
"builtin": true,
"node": true
},
"rules": {
"eqeqeq": ["error", "always", { "null": "ignore" }],
"no-console": "warn",
"no-debugger": "error",
"no-duplicate-imports": "error",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"no-var": "error",
"prefer-const": "error",
"prefer-template": "warn",
"curly": ["error", "multi-line"],
"no-else-return": "warn",
"no-lonely-if": "warn",
"no-unneeded-ternary": "warn",
"object-shorthand": ["warn", "always"],
"prefer-arrow-callback": "warn",
"prefer-rest-params": "error",
"prefer-spread": "error",
"no-useless-rename": "error",
"no-useless-concat": "error",
"no-useless-return": "warn",
"no-unused-expressions": "off",
"no-nested-ternary": "off",
"no-magic-numbers": "off",
"no-continue": "off",
"no-ternary": "off",
"no-await-in-loop": "off",
"func-style": "off",
"max-statements": "off",
"max-params": "off",
"sort-keys": "off",
"sort-imports": "off",
"id-length": "off",
"arrow-body-style": "off",
"typescript/no-explicit-any": "warn",
"typescript/no-non-null-assertion": "off",
"typescript/consistent-type-imports": "off",
"typescript/no-import-type-side-effects": "error",
"typescript/no-unnecessary-type-assertion": "warn",
"typescript/no-empty-object-type": "warn",
"typescript/no-unsafe-function-type": "warn",
"typescript/no-wrapper-object-types": "warn",
"typescript/prefer-optional-chain": "warn",
"typescript/method-signature-style": "off",
"typescript/parameter-properties": "off",
"typescript/explicit-function-return-type": "error",
"import/no-duplicates": "error",
"import/no-self-import": "error",
"import/no-cycle": "warn",
"import/no-named-export": "off",
"import/exports-last": "off",
"import/group-exports": "off",
"import/prefer-default-export": "off",
"import/consistent-type-specifier-style": "off",
"import/no-nodejs-modules": "off",
"import/first": "warn",
"import/newline-after-import": "warn",
"unicorn/prefer-node-protocol": "error",
"unicorn/prefer-module": "error",
"unicorn/no-array-for-each": "warn",
"unicorn/prefer-includes": "warn",
"unicorn/prefer-string-starts-ends-with": "warn",
"unicorn/prefer-string-slice": "warn",
"unicorn/prefer-ternary": "off",
"unicorn/no-lonely-if": "warn",
"unicorn/prefer-optional-catch-binding": "warn",
"unicorn/prefer-spread": "warn",
"unicorn/throw-new-error": "error",
"unicorn/no-new-array": "warn",
"unicorn/no-useless-undefined": "warn",
"unicorn/prefer-type-error": "error",
"unicorn/no-null": "off",
"unicorn/catch-error-name": "off",
"unicorn/filename-case": "off",
"unicorn/numeric-separators-style": "error"
},
"overrides": [
{
"files": ["*.test.ts", "*.spec.ts"],
"rules": {
"typescript/no-explicit-any": "off",
"no-console": "off"
}
}
]
}