Skip to content

Commit

Permalink
Fixed lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
razdravan authored May 26, 2023
1 parent e15941d commit c06cc2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},
"globals": {
"Base64": true,
"d3": true
"d3": true,
"makiNames": true
},
"parserOptions": {
"ecmaVersion": 9,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ module.exports = function (context) {
.attr('value', 'circle')
.attr('list', 'marker-symbol');
const datalist = td.append('datalist').attr('id', 'marker-symbol');
for (var i = 0; i < makiNames.length; i++) {
for (let i = 0; i < makiNames.length; i++) {
datalist.append('option').attr('value', makiNames[i]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/map/clickable_marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ClickableMarker extends mapboxgl.Marker {
} = options

if (
symbol != "circle" &&
symbol != "circle" &&
(makiNames.includes(symbol) || /^[a-z0-9]$/.test(symbol))
) {
const symbolPath = document.createElement('path');
Expand Down

0 comments on commit c06cc2f

Please sign in to comment.