Browse Source

style(js): Always give default exports names (#32889)

Evan Purkhiser 3 years ago
parent
commit
2dcb5b5e2d

+ 3 - 1
static/app/components/events/interfaces/csp/help/effectiveDirectives.tsx

@@ -1,6 +1,6 @@
 import {t} from 'sentry/locale';
 import {t} from 'sentry/locale';
 
 
-export default {
+const effectiveDirectives = {
   'base-uri': t(
   'base-uri': t(
     `The <code>base-uri</code> directive defines the URIs that a user agent
     `The <code>base-uri</code> directive defines the URIs that a user agent
   may use as the document base URL. If this value is absent, then any URI
   may use as the document base URL. If this value is absent, then any URI
@@ -104,3 +104,5 @@ export default {
   <code>ServiceWorker</code> scripts.`
   <code>ServiceWorker</code> scripts.`
   ),
   ),
 };
 };
+
+export default effectiveDirectives;

+ 3 - 1
static/app/plugins/index.tsx

@@ -25,7 +25,7 @@ const get: typeof registry.get = registry.get.bind(registry);
 const isLoaded: typeof registry.isLoaded = registry.isLoaded.bind(registry);
 const isLoaded: typeof registry.isLoaded = registry.isLoaded.bind(registry);
 const load: typeof registry.load = registry.load.bind(registry);
 const load: typeof registry.load = registry.load.bind(registry);
 
 
-export default {
+const plugins = {
   BasePlugin,
   BasePlugin,
   DefaultIssuePlugin,
   DefaultIssuePlugin,
 
 
@@ -38,3 +38,5 @@ export default {
   isLoaded,
   isLoaded,
   load,
   load,
 };
 };
+
+export default plugins;

+ 3 - 1
static/app/sentryTypes.tsx

@@ -103,4 +103,6 @@ const Organization = PropTypes.shape({
   id: PropTypes.string.isRequired,
   id: PropTypes.string.isRequired,
 });
 });
 
 
-export default {Group, Organization, Project};
+const SentryTypes = {Group, Organization, Project};
+
+export default SentryTypes;

+ 6 - 1
static/app/styles/overflowEllipsis.tsx

@@ -1,7 +1,12 @@
-export default `
+/**
+ * CSS styles used to add a ellipsis overflow
+ */
+const overflowEllipsis = `
   display: block;
   display: block;
   white-space: nowrap;
   white-space: nowrap;
   overflow: hidden;
   overflow: hidden;
   text-overflow: ellipsis;
   text-overflow: ellipsis;
   width: 100%;
   width: 100%;
 `;
 `;
+
+export default overflowEllipsis;

+ 3 - 1
static/app/styles/overflowEllipsisLeft.tsx

@@ -1,4 +1,4 @@
-export default `
+const overflowEllipsisLeft = `
   display: block;
   display: block;
   white-space: nowrap;
   white-space: nowrap;
   overflow: hidden;
   overflow: hidden;
@@ -7,3 +7,5 @@ export default `
   direction: rtl;
   direction: rtl;
   text-align: left;
   text-align: left;
 `;
 `;
+
+export default overflowEllipsisLeft;

+ 3 - 1
static/app/utils/queryString.tsx

@@ -93,7 +93,7 @@ export function decodeInteger(value: QueryValue, fallback?: number): number | un
   return fallback;
   return fallback;
 }
 }
 
 
-export default {
+const queryString = {
   decodeInteger,
   decodeInteger,
   decodeList,
   decodeList,
   decodeScalar,
   decodeScalar,
@@ -101,3 +101,5 @@ export default {
   addQueryParamsToExistingUrl,
   addQueryParamsToExistingUrl,
   appendTagCondition,
   appendTagCondition,
 };
 };
+
+export default queryString;