Skip to content

Commit bfb565f

Browse files
stepankuzmingithub-actions[bot]
authored andcommitted
Minor ESLint cleanup (internal-9619)
GitOrigin-RevId: 6648df32af561b3e3083baef1c64cbd1511c042c
1 parent b9ada56 commit bfb565f

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

3d-style/source/model_source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class ModelSource extends Evented<SourceEvents> implements ISource {
147147
this.fire(new Event('data', {dataType: 'source', sourceDataType: 'metadata'}));
148148
}
149149
} catch (err) {
150-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
150+
151151
this.fire(new ErrorEvent(new Error(`Could not load model ${modelId} from ${modelSpec.uri}: ${(err as Error).message}`)));
152152
}
153153
}

test/unit/ui/control/geolocate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ test('GeolocateControl error event includes GeolocationPositionError constants',
8484
expect(error.PERMISSION_DENIED).toEqual(1);
8585
expect(error.POSITION_UNAVAILABLE).toEqual(2);
8686
expect(error.TIMEOUT).toEqual(3);
87-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
87+
8888
resolve();
8989
});
9090
geolocate._onError(mockError);

test/util/browser_write_file.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-env browser */
21
/* eslint-disable import-x/no-commonjs */
32
/* global WorkerGlobalScope */
43

test/util/html_generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
22
// @ts-nocheck
3-
/* eslint-env browser */
3+
/* global document */
44
import template from 'lodash/template.js';
55

66
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call

0 commit comments

Comments
 (0)