waveterm/docs/eslint.config.js
Evan Simkowitz edb3290349
Move docsite to main repo (#1204)
## Summary

We are moving our docsite to this repo for better coordination.

## What's changed?

- The docsite codebase is now in docs/
- The docsite will replace storybook as the published GitHub Pages site
for this repo
- Storybook will now be hosted at https://docs.waveterm.dev/storybook
- A new CI workflow will validate any changes to Storybook or the
docsite
- A combined CD workflow will build and deploy Storybook and the docsite
as a single artifact
- The Build Helper workflow will now build an embedded version of the
docsite before building the app, ensuring the docsite version it has is
always the latest
2024-11-06 10:45:21 -08:00

28 lines
609 B
JavaScript

// @ts-check
import eslint from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import * as mdx from "eslint-plugin-mdx";
import tseslint from "typescript-eslint";
const baseConfig = tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
mdx.flat,
mdx.flatCodeBlocks
);
const customConfig = {
...baseConfig,
overrides: [
{
files: ["emain/emain.ts", "electron.vite.config.ts"],
env: {
node: true,
},
},
],
};
export default [customConfig, eslintConfigPrettier];