diff --git a/sun/.eslintrc.json b/sun/.eslintrc.json index 007f56e..9e2e578 100644 --- a/sun/.eslintrc.json +++ b/sun/.eslintrc.json @@ -15,13 +15,21 @@ "globals": { "React": "readonly" }, - "overrides": [ - { - "files": ["*.ts", "*.tsx"], - "rules": { - "no-undef": "off" + "rules": { + "@typescript-eslint/consistent-type-exports": [ + "error", + { + "fixMixedExportsWithInlineTypeSpecifier": true } - } - ], + ], + "@typescript-eslint/consistent-type-imports": [ + "error", + { + "prefer": "type-imports", + "disallowTypeAnnotations": true, + "fixStyle": "inline-type-imports" + } + ] + }, "ignorePatterns": ["/*", "!app"] } diff --git a/sun/app/components/ApexChart.tsx b/sun/app/components/ApexChart.tsx index d86f14f..147e672 100644 --- a/sun/app/components/ApexChart.tsx +++ b/sun/app/components/ApexChart.tsx @@ -1,6 +1,6 @@ 'use client'; -import ApexCharts, { ApexOptions } from 'apexcharts'; +import ApexCharts, { type ApexOptions } from 'apexcharts'; import { useEffect, useRef } from 'react'; interface PropsApex { @@ -27,7 +27,7 @@ const ApexChart = (props: PropsApex) => { } }, [config]); - return
; + return
; }; export default ApexChart; diff --git a/sun/app/components/Chapterpa.tsx b/sun/app/components/Chapterpa.tsx index dda6129..19aeb68 100644 --- a/sun/app/components/Chapterpa.tsx +++ b/sun/app/components/Chapterpa.tsx @@ -22,6 +22,9 @@ const TreemapDB: ApexOptions = { itemMargin: { vertical: 20, }, + labels: { + colors: 'inherit', + }, }, series: [ { diff --git a/sun/app/components/Chapterpy.tsx b/sun/app/components/Chapterpy.tsx index c68bdd7..fa5ccec 100644 --- a/sun/app/components/Chapterpy.tsx +++ b/sun/app/components/Chapterpy.tsx @@ -63,6 +63,23 @@ const AreaDB: ApexOptions = { tooltip: { enabled: false, }, + labels: { + style: { + colors: 'currentcolor', + }, + }, + }, + yaxis: { + labels: { + style: { + colors: 'currentcolor', + }, + }, + }, + legend: { + labels: { + colors: 'inherit', + }, }, colors: ['#1ee979', '#e91e63'], theme: { diff --git a/sun/app/components/ThemeToggle.tsx b/sun/app/components/ThemeToggle.tsx index c99d5d3..e983954 100644 --- a/sun/app/components/ThemeToggle.tsx +++ b/sun/app/components/ThemeToggle.tsx @@ -33,10 +33,22 @@ export function ToggleTheme() { title='Toggle light & dark color scheme' aria-label='Toggle light & dark theme' aria-live='polite'> -