-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathxo.config.mjs
More file actions
41 lines (39 loc) · 799 Bytes
/
Copy pathxo.config.mjs
File metadata and controls
41 lines (39 loc) · 799 Bytes
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
import { js, literate, pptr, ts, web } from "@yoursunny/xo-config";
/** @type {import("xo").FlatXoConfig} */
const config = [
js,
{
files: ["**/*.{ts,cts,mts}"],
...ts,
},
{
files: ["**/test-fixture/**", "**/tests/**", "integ/**"],
rules: {
"import-x/no-extraneous-dependencies": ["error", { whitelist: ["vitest"] }],
"n/no-extraneous-import": "off",
},
},
{
files: [
"**/*_browser.*",
"pkg/quic-transport/**",
"pkg/web-bluetooth-transport/**",
"pkg/ws-transport/**",
"integ/browser-tests/**/*.{ts,cts,mts}",
],
...web,
},
{
files: [
"integ/browser-tests/**/*.{ts,cts,mts}",
],
...pptr,
},
{
files: [
"**/README.md.ts",
],
...literate,
},
];
export default config;