chore: ESLint Flat Config (#834)

* chore: eslint flat config

* chore: format

* update according to review

* chore: remove prettier config and format

* fix: move handler to script to bypass eslint

* chore: config eslint for lang=js block

* docs: add surrounding empty lines for code block

* chore: also minify css in csp build

* chore: publint
This commit is contained in:
Yue JIN
2025-05-26 11:11:23 +08:00
committed by GU Yiling
parent 8fbc68a010
commit d3bff26307
50 changed files with 1020 additions and 1061 deletions

View File

@ -5,7 +5,7 @@ import {
PolarComponent,
TitleComponent,
LegendComponent,
TooltipComponent
TooltipComponent,
} from "echarts/components";
import { computed, shallowRef } from "vue";
import VChart from "../../src/ECharts";
@ -17,7 +17,7 @@ use([
PolarComponent,
TitleComponent,
LegendComponent,
TooltipComponent
TooltipComponent,
]);
const option = shallowRef(getData());
@ -28,9 +28,9 @@ const loadingOptions = computed(() =>
? {
color: "#fff",
textColor: "#fff",
maskColor: "rgba(0, 0, 0, 0.7)"
maskColor: "rgba(0, 0, 0, 0.7)",
}
: null
: null,
);
const style = computed(() => {
return theme.value === "dark"