-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
58 lines (57 loc) · 1.55 KB
/
oxlint.config.ts
File metadata and controls
58 lines (57 loc) · 1.55 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
import sdl from "@rnx-kit/oxlint-config/sdl-node";
import strict from "@rnx-kit/oxlint-config/strict";
import { defineConfig } from "oxlint";
export default defineConfig({
extends: [sdl, strict],
plugins: ["import", "unicorn"],
jsPlugins: [
{
name: "wdio",
specifier: import.meta.resolve("eslint-plugin-wdio"),
},
],
rules: {
"import/no-default-export": "error",
"unicorn/no-process-exit": "error",
"wdio/await-expect": "error",
"wdio/no-debug": "error",
"wdio/no-pause": "error",
},
overrides: [
{
files: ["oxlint.config.ts"],
rules: {
"import/no-default-export": "off",
},
},
{
files: [
"scripts/internal/generate-manifest-docs.mts",
"scripts/internal/generate-manifest.mts",
"scripts/internal/generate-schema.mts",
"scripts/internal/pack.mts",
"scripts/internal/set-react-version.mts",
"scripts/internal/test.mts",
"scripts/schema.mjs",
"scripts/testing/test-apple.mts",
"scripts/testing/test-e2e.mts",
"scripts/testing/test-matrix.mts",
"scripts/utils/colors.mjs",
],
rules: {
"no-restricted-imports": [
"error",
{
patterns: [
{
group: ["[a-z]*", "!../**", "!./**", "!node:*", "!node:*/**"],
message:
"External dependencies are not allowed in this file because it needs to be runnable before install.",
},
],
},
],
},
},
],
});