Skip to content

Commit 368fb44

Browse files
author
naman-contentstack
committed
[DX-2346], resolved es lint errors
1 parent 43a04cc commit 368fb44

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

packages/contentstack-config/src/utils/interactive.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { isEmpty } from 'lodash';
21
import { cliux, messageHandler } from '@contentstack/cli-utilities';
32

43
export const askRegions = async (): Promise<string> => {

packages/contentstack-config/src/utils/rate-limit-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class RateLimitHandler {
3232
const features = organizations.plan?.features || [];
3333

3434
const limitsToUpdate: { [key: string]: Limit } = { ...rateLimit[config.org] };
35-
let utilizationMap = {};
35+
const utilizationMap = {};
3636
limitNames.forEach((name, index) => {
3737
if (utilizeValues[index] !== undefined) {
3838
utilizationMap[name] = utilizeValues[index];

packages/contentstack-config/src/utils/region-handler.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class UserConfig {
9999
* @returns {object} region object with cma, cda, region property
100100
*/
101101
setRegion(region) {
102-
let selectedRegion = regions[region];
102+
const selectedRegion = regions[region];
103103
if (selectedRegion) {
104104
configHandler.set('region', selectedRegion);
105105
return selectedRegion;
@@ -169,8 +169,7 @@ class UserConfig {
169169
* @returns { object } JSON object with only valid keys for region
170170
*/
171171
sanitizeRegionObject(regionObject) {
172-
let sanitizedRegion;
173-
sanitizedRegion = {
172+
const sanitizedRegion = {
174173
cma: regionObject.cma,
175174
cda: regionObject.cda,
176175
uiHost: regionObject.uiHost,

0 commit comments

Comments
 (0)