-
Notifications
You must be signed in to change notification settings - Fork 26
/
xo.config.cjs
41 lines (39 loc) · 942 Bytes
/
xo.config.cjs
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
/** @typedef {import("xo").Options} XoOptions */
/** @type {import("@yoursunny/xo-config")} */
const { js, ts, web, preact, merge } = require("@yoursunny/xo-config");
const fs = require("node:fs");
const path = require("node:path");
/** @type {XoOptions} */
module.exports = {
...js,
overrides: [
{
files: [
"**/*.ts",
],
...merge(js, ts),
},
{
files: [
"js/types/**/*.ts",
],
...merge(js, ts, {
rules: {
"tsdoc/syntax": "off", // `@` tags are for ts-json-schema-generator
},
}),
},
{
files: [
"sample/benchmark/**/*.tsx",
"sample/status/**/*.tsx",
],
...merge(js, ts, web, preact),
},
],
ignores: [
"sample/activate",
"sample/benchmark",
"sample/status",
].filter((d) => !fs.statSync(path.resolve(__dirname, d, "node_modules"), { throwIfNoEntry: false })?.isDirectory()),
};