Skip to content

Commit aa1184e

Browse files
committed
front, ui: drop unused eslint-disable comments
Unused eslint-disable comments now cause ESLint warnings. Signed-off-by: Simon Ser <contact@emersion.fr>
1 parent 53de972 commit aa1184e

55 files changed

Lines changed: 15 additions & 80 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

front/scripts/i18n-checker.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable no-console */
2-
31
import { readFile } from 'node:fs/promises';
42
import path from 'node:path';
53

front/src/applications/editor/Editor.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ const Editor = () => {
315315
return () => {
316316
if (toolAndState.tool.onUnmount) toolAndState.tool.onUnmount(extendedContext);
317317
};
318-
// eslint-disable-next-line react-hooks/exhaustive-deps
319318
}, [toolAndState.tool]);
320319

321320
/**

front/src/applications/editor/Map.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ const MapUnplugged = ({
269269
// instead. This fixes it:
270270
entity = {
271271
...entity,
272-
// eslint-disable-next-line no-underscore-dangle,@typescript-eslint/no-explicit-any
272+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
273273
geometry: entity.geometry || (entity as any)._geometry,
274274
};
275275
activeTool.onClickEntity(entity, eventWithFeature, extendedContext);

front/src/applications/editor/tools/consts.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable import/prefer-default-export */
21
import type { CommonToolState } from './types';
32

43
export const DEFAULT_COMMON_TOOL_STATE: CommonToolState = {

front/src/applications/editor/tools/pointEdition/components/PointEditionLayers.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { getEditorState } from 'reducers/editor/selectors';
2121
import { NULL_GEOMETRY } from 'types';
2222

2323
type BasePointEditionLayersProps = {
24-
// eslint-disable-next-line react/no-unused-prop-types
2524
map: Map;
2625
mergeEntityWithNearestPoint?: (
2726
entity: EditorEntity,
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// eslint-disable-next-line import/prefer-default-export
21
export const POINT_LAYER_ID = 'pointEditionTool/new-entity';

front/src/applications/editor/tools/pointEdition/tool-factory.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,6 @@ function getPointEditionTool<T extends EditorPoint>({
272272
typeof computedPosition === 'number' &&
273273
Math.abs(dbPosition - computedPosition) >= 1
274274
) {
275-
// eslint-disable-next-line no-console
276275
console.warn(
277276
`
278277
The entity ${entity.properties.id} position computed by Turf.js does not match the one from the database:
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// eslint-disable-next-line import/prefer-default-export
21
export { default as RangeEditionLeftPanel } from './RangeEditionLeftPanel';
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// eslint-disable-next-line import/prefer-default-export
21
export const APPLICABLE_DIRECTIONS = ['BOTH', 'START_TO_STOP', 'STOP_TO_START'] as const;

front/src/applications/editor/tools/routeEdition/components/WayPointInput.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ const WayPointInput = ({ endPoint, wayPoint, onChange }: WayPointInputProps) =>
112112
onChange(null);
113113
}
114114
}
115-
// eslint-disable-next-line react-hooks/exhaustive-deps
116115
}, [wayPoint]);
117116

118117
return (

0 commit comments

Comments
 (0)