This is an automated email from the ASF dual-hosted git repository.

100pah pushed a commit to branch release-dev
in repository https://gitbox.apache.org/repos/asf/echarts.git

commit bc96cc7a879cf33dbefcadafbe045b6acd58a797
Author: 100pah <[email protected]>
AuthorDate: Thu May 7 19:44:28 2026 +0800

    lint: fix linter issues.
---
 extension-src/bmap/BMapCoordSys.ts   | 4 ++--
 extension-src/bmap/bmap.ts           | 3 +--
 src/animation/universalTransition.ts | 3 +--
 src/label/installLabelLayout.ts      | 7 ++++---
 src/scale/breakImpl.ts               | 4 ++--
 src/util/clazz.ts                    | 1 +
 6 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/extension-src/bmap/BMapCoordSys.ts 
b/extension-src/bmap/BMapCoordSys.ts
index bd364f416..218cbd4f5 100644
--- a/extension-src/bmap/BMapCoordSys.ts
+++ b/extension-src/bmap/BMapCoordSys.ts
@@ -17,7 +17,7 @@
 * under the License.
 */
 
-/* global BMap, document */
+/* global document */
 
 import {
     util as zrUtil,
@@ -95,7 +95,7 @@ interface BMapECExtendedOverlayCtor {
 type ECCoordinateSystemCreator = Parameters<typeof 
registerCoordinateSystem>[1];
 type ECCoordinateSystemMaster = 
ReturnType<ECCoordinateSystemCreator['create']>[number];
 export type ECExtensionAPI = 
Parameters<ECCoordinateSystemCreator['create']>[1];
-export type ECGlobalModel = Parameters<ECCoordinateSystemCreator['create']>[0]
+export type ECGlobalModel = Parameters<ECCoordinateSystemCreator['create']>[0];
 
 
 const COORD_SYS_BMAP = COMPONENT_MAIN_TYPE_BMAP;
diff --git a/extension-src/bmap/bmap.ts b/extension-src/bmap/bmap.ts
index 054d28d23..e15d88721 100644
--- a/extension-src/bmap/bmap.ts
+++ b/extension-src/bmap/bmap.ts
@@ -23,9 +23,8 @@
 
 import * as echarts from 'echarts';
 import './BMapCoordSys';
-import './BMapModel';
-import './BMapView';
 import { BMapModel, COMPONENT_MAIN_TYPE_BMAP } from './BMapModel';
+import './BMapView';
 
 // Action
 echarts.registerAction({
diff --git a/src/animation/universalTransition.ts 
b/src/animation/universalTransition.ts
index c1747bbe7..a87668d33 100644
--- a/src/animation/universalTransition.ts
+++ b/src/animation/universalTransition.ts
@@ -278,10 +278,9 @@ function transitionBetween(
     // find all groupIds and childGroupIds from oldDiffItems
     const oldGroupIds = createHashMap();
     const oldChildGroupIds = createHashMap();
-    oldDiffItems.forEach((item) => {
+    each(oldDiffItems, function (item) {
         item.groupId && oldGroupIds.set(item.groupId, true);
         item.childGroupId && oldChildGroupIds.set(item.childGroupId, true);
-
     });
     // traverse newDiffItems and decide the direction according to the rule
     for (let i = 0; i < newDiffItems.length; i++) {
diff --git a/src/label/installLabelLayout.ts b/src/label/installLabelLayout.ts
index 84a6af228..336932d4f 100644
--- a/src/label/installLabelLayout.ts
+++ b/src/label/installLabelLayout.ts
@@ -22,10 +22,11 @@ import { EChartsExtensionInstallRegisters } from 
'../extension';
 import { makeInner } from '../util/model';
 import LabelManager from './LabelManager';
 import ExtensionAPI from '../core/ExtensionAPI';
+import { each } from 'zrender/src/core/util';
 
 const getLabelManager = makeInner<{ labelManager: LabelManager }, 
ExtensionAPI>();
 export function installLabelLayout(registers: 
EChartsExtensionInstallRegisters) {
-    registers.registerUpdateLifecycle('series:beforeupdate', (ecModel, api, 
params) => {
+    registers.registerUpdateLifecycle('series:beforeupdate', function 
(ecModel, api, params) {
         // TODO api provide an namespace that can save stuff per instance
         let labelManager = getLabelManager(api).labelManager;
         if (!labelManager) {
@@ -34,10 +35,10 @@ export function installLabelLayout(registers: 
EChartsExtensionInstallRegisters)
         labelManager.clearLabels();
     });
 
-    registers.registerUpdateLifecycle('series:layoutlabels', (ecModel, api, 
params) => {
+    registers.registerUpdateLifecycle('series:layoutlabels', function 
(ecModel, api, params) {
         const labelManager = getLabelManager(api).labelManager;
 
-        params.updatedSeries.forEach(series => {
+        each(params.updatedSeries, function (series) {
             labelManager.addLabelsOfSeries(api.getViewOfSeriesModel(series));
         });
         labelManager.updateLayoutConfig(api);
diff --git a/src/scale/breakImpl.ts b/src/scale/breakImpl.ts
index 394092c82..cc7c9f137 100644
--- a/src/scale/breakImpl.ts
+++ b/src/scale/breakImpl.ts
@@ -17,7 +17,7 @@
 * under the License.
 */
 
-import { assert, clone, each, find, isString, map, trim } from 
'zrender/src/core/util';
+import { assert, clone, each, filter, find, isString, map, trim } from 
'zrender/src/core/util';
 import {
     NullUndefined, ParsedAxisBreak, ParsedAxisBreakList, AxisBreakOption,
     AxisBreakOptionIdentifierInAxis, ScaleTick, VisualAxisBreak,
@@ -614,7 +614,7 @@ function parseAxisBreakOption(
     });
 
     return {
-        breaks: parsedBreaks.filter(brk => !!brk),
+        breaks: filter(parsedBreaks, brk => !!brk),
     };
 }
 
diff --git a/src/util/clazz.ts b/src/util/clazz.ts
index 06249ab0b..6f3e64404 100644
--- a/src/util/clazz.ts
+++ b/src/util/clazz.ts
@@ -96,6 +96,7 @@ export function enableClassExtend(rootClz: 
ExtendableConstructor, mandatoryMetho
         if (isESClass(superClass)) {
             ExtendedClass = class extends superClass {
                 constructor() {
+                    // eslint-disable-next-line no-restricted-syntax
                     super(...arguments as any);
                 }
             };


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to