superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries.ts
File countries.ts
has 420 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
Avoid too many return
statements within this function. Open
Open
return [
x,
x
.split('_')
.map(e => e[0].toUpperCase() + e.slice(1))