-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
39 lines (32 loc) · 971 Bytes
/
eslint.config.js
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
/** @typedef {import("@typescript-eslint/utils").TSESLint.FlatConfig.ConfigArray} Config */
import base from "@acdh-oeaw/eslint-config";
import astro from "@acdh-oeaw/eslint-config-astro";
import playwright from "@acdh-oeaw/eslint-config-playwright";
import react from "@acdh-oeaw/eslint-config-react";
import solid from "@acdh-oeaw/eslint-config-solid";
import tailwindcss from "@acdh-oeaw/eslint-config-tailwindcss";
import gitignore from "eslint-config-flat-gitignore";
export const reactFiles = [
"keystatic.config.@(ts|tsx)",
"**/content/**/*.@(ts|tsx)",
"**/keystatic/**/*.@(ts|tsx)",
];
react.forEach((config) => {
config.files ??= reactFiles;
});
const solidFiles = ["**/*.@(ts|tsx)"];
solid.forEach((config) => {
config.files ??= solidFiles;
config.ignores ??= reactFiles;
});
/** @type {Config} */
const config = [
gitignore({ strict: false }),
...base,
...astro,
...react,
...solid,
...tailwindcss,
...playwright,
];
export default config;