Skip to content

Commit 5c2054f

Browse files
committed
Code style.
1 parent 52951d2 commit 5c2054f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
favicon.ico
2+
13
data/
24
dist/
35
bundle/

examples/country-index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@
4141
let countries = d3.geomap()
4242
.geofile('../dist/topojson/world/countries.json')
4343
.postUpdate(drawCountries);
44-
let container = d3.select('#main');
44+
const container = d3.select('#main');
4545

4646
countries.draw(container);
4747
container.selectAll('*').remove();
4848

4949
function drawCountries() {
5050
for (let geometry of countries.geo.objects.units.geometries) {
51-
let map_container = container.append('div')
51+
const map_container = container.append('div')
5252
.attr('id', geometry.properties.iso3)
5353
.attr('class', 'country');
5454
map_container.append('h2').text(geometry.properties.name);
5555

56-
let country = d3.geomap()
56+
const country = d3.geomap()
5757
.geofile(`../dist/topojson/countries/${geometry.properties.iso3}.json`)
5858
.postUpdate(_ => map_container.select('path').dispatch('click'));
5959

rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import postcss from 'rollup-plugin-postcss';
22
import babel from '@rollup/plugin-babel';
33
import terser from '@rollup/plugin-terser';
44

5-
import meta from './package.json' assert { type: "json" };
5+
import meta from './package.json' assert { type: 'json' };
66

77

88
function makeCssConfig({ minimize = false } = {}) {

0 commit comments

Comments
 (0)