From f982495571f4fd091741b70bcd4be265ba9b0837 Mon Sep 17 00:00:00 2001 From: Xiaoji Chen Date: Mon, 29 Jan 2024 16:05:18 -0800 Subject: [PATCH] fix lint --- .eslintrc.cjs | 3 ++- modules/core/src/index.ts | 9 ++++++++- modules/geo-layers/src/terrain-layer/terrain-layer.ts | 8 +++++++- tsconfig.build.json | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 0bf6ef7735f6..6942e63479bd 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -3,6 +3,7 @@ const {getESLintConfig} = require('ocular-dev-tools/configuration'); module.exports = getESLintConfig({ react: '18.0.0', overrides: { + parser: '', parserOptions: { project: ['./tsconfig.json'], ecmaVersion: 2020 @@ -41,7 +42,7 @@ module.exports = getESLintConfig({ overrides: [ { - files: ['**/*.ts', '**/*.tsx', '**/*.d.ts'], + files: ['**/*.js', '**/*.ts', '**/*.tsx', '**/*.d.ts'], rules: { indent: 0, // For parquet module diff --git a/modules/core/src/index.ts b/modules/core/src/index.ts index 891e7606ba00..e145083d4ecd 100644 --- a/modules/core/src/index.ts +++ b/modules/core/src/index.ts @@ -59,7 +59,14 @@ export {default as OrthographicViewport} from './viewports/orthographic-viewport export {default as FirstPersonViewport} from './viewports/first-person-viewport'; // Shader modules -export {picking, project, project32, gouraudLighting, phongLighting, shadow} from './shaderlib/index'; +export { + picking, + project, + project32, + gouraudLighting, + phongLighting, + shadow +} from './shaderlib/index'; export {default as View} from './views/view'; export {default as MapView} from './views/map-view'; diff --git a/modules/geo-layers/src/terrain-layer/terrain-layer.ts b/modules/geo-layers/src/terrain-layer/terrain-layer.ts index e56d08379dcb..17606a377cd3 100644 --- a/modules/geo-layers/src/terrain-layer/terrain-layer.ts +++ b/modules/geo-layers/src/terrain-layer/terrain-layer.ts @@ -35,7 +35,13 @@ import {COORDINATE_SYSTEM} from '@deck.gl/core'; import type {MeshAttributes} from '@loaders.gl/schema'; import {TerrainWorkerLoader} from '@loaders.gl/terrain'; import TileLayer, {TileLayerProps} from '../tile-layer/tile-layer'; -import type {Bounds, GeoBoundingBox, TileBoundingBox, TileLoadProps, ZRange} from '../tileset-2d/index'; +import type { + Bounds, + GeoBoundingBox, + TileBoundingBox, + TileLoadProps, + ZRange +} from '../tileset-2d/index'; import {Tile2DHeader, urlType, getURLFromTemplate, URLTemplate} from '../tileset-2d/index'; const DUMMY_DATA = [1]; diff --git a/tsconfig.build.json b/tsconfig.build.json index 289ba9a9d678..6447c56f2c94 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -13,7 +13,7 @@ {"path": "modules/extensions"}, {"path": "modules/geo-layers"}, {"path": "modules/google-maps"}, - // {"path": "modules/json"}, + {"path": "modules/json"}, // {"path": "modules/jupyter-widget"}, {"path": "modules/layers"}, {"path": "modules/main"},