cloudflare-docs/ec.config.mjs
Kian a1bf485920
[Docs Site] Adopt eslint (#19263)
* [Docs Site] Adopt eslint

* Demonstrate a fixable suggestion, add VSCode plugin and package.json script

* Fix slice in ModelCatalog

* Remove test error in AnchorHeading

* recreate package-lock.json

* update new .jsx components to .tsx

* amend deps, fix react types, organise ec plugins

* another attempt at fixing platform-specific deps

* fix FieldCatalog filters, remove test block from code.mdx

* use opacity instead of brightness for ruleid

* fix lockfile

* amend ruleid opacity styling

* test onetrust

* enable prefer const rule, remove onetrust test

* add save-dev
2025-01-21 18:28:16 +00:00

27 lines
866 B
JavaScript

// @ts-check
import darkTheme from "solarflare-theme/themes/cloudflare-dark-color-theme.json" with { type: "json" };
import lightTheme from "solarflare-theme/themes/cloudflare-light-color-theme.json" with { type: "json" };
import pluginWorkersPlayground from "./plugins/expressive-code/workers-playground.js";
import pluginOutputFrame from "./plugins/expressive-code/output-frame.js";
import pluginDefaultTitles from "./plugins/expressive-code/default-titles.js";
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections";
export default {
plugins: [
pluginWorkersPlayground(),
pluginOutputFrame(),
pluginDefaultTitles(),
pluginCollapsibleSections(),
],
themes: [darkTheme, lightTheme],
styleOverrides: {
textMarkers: {
defaultLuminance: ["32%", "88%"],
},
},
frames: {
extractFileNameFromCode: false,
},
};