-
-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy patheslint.config.ts
More file actions
29 lines (28 loc) · 888 Bytes
/
Copy patheslint.config.ts
File metadata and controls
29 lines (28 loc) · 888 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
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";
import eslintConfigPrettier from "eslint-config-prettier";
import { defineConfig, globalIgnores } from "eslint/config";
export default defineConfig([
globalIgnores(
["**/Filters/FilterLang.{ts,d.ts}"],
"Ignore generated files by Peggy",
),
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
plugins: { js },
extends: ["js/recommended"],
},
{
files: ["src/renderer/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx"],
languageOptions: { globals: { ...globals.browser } },
},
{
files: ["src/{main,preload}/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx"],
languageOptions: { globals: { ...globals.node } },
},
tseslint.configs.recommended,
pluginReact.configs.flat["jsx-runtime"],
eslintConfigPrettier,
]);