Skip to content

Commit

Permalink
fix: import order
Browse files Browse the repository at this point in the history
  • Loading branch information
whizzzkid committed Jan 20, 2023
1 parent 1802c4e commit 9e62d8f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"parserOptions": {
"sourceType": "module"
},
"rules": {},
"rules": {
"sort-imports": ["error"]
},
"overrides": [
{
"files": [
Expand Down
3 changes: 1 addition & 2 deletions src/BrowserMetrics.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Countly from 'countly-sdk-web'

import MetricsProvider, { MetricsProviderConstructorOptions } from './MetricsProvider.js'
import Countly from 'countly-sdk-web'

export class BrowserMetricsProvider extends MetricsProvider<typeof Countly> {
constructor (args: Omit<MetricsProviderConstructorOptions<typeof Countly>, 'metricsService'>) {
Expand Down
2 changes: 1 addition & 1 deletion src/EventAccumulator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CountlyWebSdk, IEventAccumulator, CountlyEvent, CountlyEventData } from 'countly-sdk-web'
import type { CountlyEvent, CountlyEventData, CountlyWebSdk, IEventAccumulator } from 'countly-sdk-web'

const eventDefaults: CountlyEventData = {
key: '',
Expand Down
7 changes: 3 additions & 4 deletions src/MetricsProvider.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { COUNTLY_SETUP_DEFAULTS } from './config.js'
import { EventAccumulator } from './EventAccumulator.js'

import type { CountlyNodeSdk } from 'countly-sdk-nodejs'
import type { CountlyWebSdk, metricFeatures } from 'countly-sdk-web'
import type { consentTypes, consentTypesExceptAll } from '../types/index.js'
import { COUNTLY_SETUP_DEFAULTS } from './config.js'
import type { CountlyNodeSdk } from 'countly-sdk-nodejs'
import { EventAccumulator } from './EventAccumulator.js'

export interface MetricsProviderConstructorOptions<T> {
appKey: string
Expand Down

0 comments on commit 9e62d8f

Please sign in to comment.