Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Chore]: Technical: Translate examples/custom-map-style (#1780)

Maksim Suslov7ada98a02be3
diff --git a/examples/custom-map-style/src/app.js b/examples/custom-map-style/src/app.tsx
similarity index 100%
rename from examples/custom-map-style/src/app.js
rename to examples/custom-map-style/src/app.tsx
diff --git a/examples/custom-map-style/src/main.js b/examples/custom-map-style/src/main.tsx
similarity index 100%
rename from examples/custom-map-style/src/main.js
rename to examples/custom-map-style/src/main.tsx
diff --git a/examples/custom-map-style/src/store.js b/examples/custom-map-style/src/store.ts
similarity index 100%
rename from examples/custom-map-style/src/store.js
rename to examples/custom-map-style/src/store.ts
diff --git a/examples/custom-map-style/webpack.config.js b/examples/custom-map-style/webpack.config.js
index a01d7fee0..df606bc75 100644
--- a/examples/custom-map-style/webpack.config.js
+++ b/examples/custom-map-style/webpack.config.js
@@ -29,7 +29,7 @@ const webpack = require('webpack');
const CONFIG = {
// bundle app.js and everything it imports, recursively.
entry: {
- app: resolve('./src/main.js')
+ app: resolve('./src/main.tsx')
},
output: {
path: resolve(__dirname, 'build'),
diff --git a/package.json b/package.json
index 311b56fc8..a6686ac7b 100644
--- a/package.json
+++ b/package.json
@@ -55,7 +55,7 @@
"typedoc": "typedoc --theme markdown --out typedoc --inputFiles ./src/reducers --inputFiles ./src/actions --excludeExternals --excludeNotExported --excludePrivate",
"example-version": "babel-node ./scripts/edit-version.js",
"prettier-all": "prettier --write '{src,examples,test}/**/*.{js,tsx,ts}'",
- "lint": "yarn typescript && eslint src test webpack examples/*.js examples/**/src website/*.js website/src --fix",
+ "lint": "yarn typescript && eslint src test webpack examples/*.js examples/**/src/*.{js,tsx,ts} website/*.js website/src --fix",
"lint:css": "stylelint './src/**/*.js'",
"typescript": "tsc --noEmit",
"web": "(yarn && yarn install:web && yarn start:web)",