-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathoxlint.config.js
More file actions
49 lines (44 loc) · 1.25 KB
/
oxlint.config.js
File metadata and controls
49 lines (44 loc) · 1.25 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
import nkzw from "@nkzw/oxlint-config";
import { defineConfig } from "oxlint";
export default defineConfig({
extends: [nkzw],
ignorePatterns: ["dist/**"],
rules: {
// Core rules.
eqeqeq: "error",
"no-console": "off",
"no-else-return": "error",
"no-return-await": "error",
"object-shorthand": "error",
// TypeScript rules.
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
// Unicorn rules.
"unicorn/no-array-reduce": "error",
"unicorn/prefer-includes": "error",
"unicorn/prefer-node-protocol": "off",
// Import sorting.
"perfectionist/sort-imports": "error",
"perfectionist/sort-named-imports": "error",
// Not relevant for this project.
"@nkzw/ensure-relay-types": "off",
"@nkzw/require-use-effect-arguments": "off",
},
overrides: [
{
files: ["**/*.test.ts", "**/test/**/*.ts", "**/*.mock.ts"],
rules: {
"@typescript-eslint/no-explicit-any": "off",
},
},
],
});