waveterm/eslint.config.js

22 lines
519 B
JavaScript
Raw Normal View History

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
const baseConfig = tseslint.config(eslint.configs.recommended, ...tseslint.configs.recommended);
2024-06-12 02:42:10 +02:00
const customConfig = {
...baseConfig,
overrides: [
{
files: ["emain/emain.ts", "electron.vite.config.ts"],
2024-06-12 02:42:10 +02:00
env: {
node: true,
},
},
],
};
export default [customConfig, eslintConfigPrettier];