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
|
// @ts-check
import globals from "globals";
import eslint from "@eslint/js";
import ts from "typescript-eslint";
import prettier from "eslint-config-prettier";
import turboPlugin from "eslint-plugin-turbo";
import { resolve } from "node:path";
const project = resolve(process.cwd(), "tsconfig.json");
export default ts.config(
eslint.configs.recommended,
...ts.configs.recommended,
prettier,
{
name: "eslint-config-turbo (recreated flat)",
plugins: {
turbo: { rules: turboPlugin.rules },
},
rules: {
"turbo/no-undeclared-env-vars": "error",
},
},
{
name: "library",
languageOptions: {
// parserOptions: {
// project: resolve(process.cwd(), "tsconfig.json")
// },
globals: {
...globals.browser,
...globals.node,
},
},
ignores: ["build/", ".svelte-kit/", "dist/"],
},
);
|