From db13e3ef15eac669bc82c007db6016ea79681498 Mon Sep 17 00:00:00 2001 From: Jeremy Wharton Date: Thu, 17 Aug 2023 12:02:25 -0500 Subject: [PATCH] web/satellite: warn when indenting with tabs This change adds a rule to the ESLint config to warn when tabs are used instead of spaces for indentation. Change-Id: I068d559211e0f9e40abaea86de839a409b405674 --- web/satellite/.eslintrc.js | 1 + web/satellite/src/types/coupons.ts | 6 +++--- web/satellite/src/utils/bytesSize.ts | 10 +++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/web/satellite/.eslintrc.js b/web/satellite/.eslintrc.js index dbf7dd508..b41a76b86 100644 --- a/web/satellite/.eslintrc.js +++ b/web/satellite/.eslintrc.js @@ -26,6 +26,7 @@ module.exports = { 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'no-tabs': 'warn', 'indent': ['warn', 4], 'vue/html-indent': ['warn', 4], diff --git a/web/satellite/src/types/coupons.ts b/web/satellite/src/types/coupons.ts index 48b1abe46..c90efbf6c 100644 --- a/web/satellite/src/types/coupons.ts +++ b/web/satellite/src/types/coupons.ts @@ -2,7 +2,7 @@ // See LICENSE for copying information. export enum CouponType { - NoCoupon = 'noCoupon', - FreeTierCoupon = 'freeTierCoupon', - SignupCoupon = 'signupCoupon' + NoCoupon = 'noCoupon', + FreeTierCoupon = 'freeTierCoupon', + SignupCoupon = 'signupCoupon' } diff --git a/web/satellite/src/utils/bytesSize.ts b/web/satellite/src/utils/bytesSize.ts index 84a2d6d2a..441743f96 100644 --- a/web/satellite/src/utils/bytesSize.ts +++ b/web/satellite/src/utils/bytesSize.ts @@ -11,11 +11,11 @@ export enum Memory { EB = 1e18, KiB = 2 ** 10, - MiB = 2 ** 20, - GiB = 2 ** 30, - TiB = 2 ** 40, - PiB = 2 ** 50, - EiB = 2 ** 60, + MiB = 2 ** 20, + GiB = 2 ** 30, + TiB = 2 ** 40, + PiB = 2 ** 50, + EiB = 2 ** 60, } export enum Dimensions {