mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
b2b1f9b9df
This sets us back up to use Vite via the electron-vite package. This will let us continue to build our testing suite on Vitest and take advantage of Vite features like Hot Module Reloading, etc. --------- Co-authored-by: sawka <mike.sawka@gmail.com>
22 lines
519 B
JavaScript
22 lines
519 B
JavaScript
// @ts-check
|
|
|
|
import eslint from "@eslint/js";
|
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
const baseConfig = tseslint.config(eslint.configs.recommended, ...tseslint.configs.recommended);
|
|
|
|
const customConfig = {
|
|
...baseConfig,
|
|
overrides: [
|
|
{
|
|
files: ["emain/emain.ts", "electron.vite.config.ts"],
|
|
env: {
|
|
node: true,
|
|
},
|
|
},
|
|
],
|
|
};
|
|
|
|
export default [customConfig, eslintConfigPrettier];
|