2024-05-25 02:44:41 +02:00
|
|
|
// @ts-check
|
|
|
|
|
2024-05-28 21:12:28 +02:00
|
|
|
import eslint from "@eslint/js";
|
|
|
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
|
|
import tseslint from "typescript-eslint";
|
2024-05-25 02:44:41 +02:00
|
|
|
|
2024-06-14 01:49:25 +02:00
|
|
|
const baseConfig = tseslint.config(eslint.configs.recommended, ...tseslint.configs.recommended);
|
2024-06-12 02:42:10 +02:00
|
|
|
|
|
|
|
const customConfig = {
|
|
|
|
...baseConfig,
|
|
|
|
overrides: [
|
|
|
|
{
|
2024-06-14 01:49:25 +02:00
|
|
|
files: ["emain/emain.ts", "electron.vite.config.ts"],
|
2024-06-12 02:42:10 +02:00
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
2024-06-14 01:49:25 +02:00
|
|
|
export default [customConfig, eslintConfigPrettier];
|