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 {
GridComponent,
TitleComponent,
VisualMapComponent,
TooltipComponent
TooltipComponent,
} from "echarts/components";
import { shallowRef, watch } from "vue";
import VChart from "../../src/ECharts";
@ -17,7 +17,7 @@ use([
GridComponent,
TitleComponent,
VisualMapComponent,
TooltipComponent
TooltipComponent,
]);
const [c1, c2] = getData().map(shallowRef);
@ -25,14 +25,14 @@ const connected = shallowRef(true);
watch(
connected,
value => {
(value) => {
if (value) {
connect("radiance");
} else {
disconnect("radiance");
}
},
{ immediate: true }
{ immediate: true },
);
</script>