Skip to content

Commit

Permalink
style: fix lint complains
Browse files Browse the repository at this point in the history
  • Loading branch information
YaraMatkova committed Aug 31, 2022
1 parent 03e0e18 commit d64b62d
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
],
"eol-last": "error",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off"
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-namespace": "warn"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/__tests__/smart-banner/network/api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('Smart banner API tests', () => {
button_label: 'Go!'
}

let testNetwork: Network = {
const testNetwork: Network = {
endpoint: 'test-endpoint',
request: jest.fn()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('NetworkWithUrlStrategy', () => {
try {
await network.request('/whatever')
} catch (err) {

// nothing to do here
}

expect(network.endpoint).toEqual(defaultEndpoint)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BlockedUrlBypass } from '../../../../smart-banner/network/url-strategy/
import { BaseUrlsMap } from '../../../../smart-banner/network/url-strategy/url-strategy'

describe('BlockedUrlBypass', () => {
let testEndpoints: Record<BlockedUrlBypass.Strategy, BaseUrlsMap> = {
const testEndpoints: Record<BlockedUrlBypass.Strategy, BaseUrlsMap> = {
[BlockedUrlBypass.Default]: {
endpointName: BlockedUrlBypass.Default,
app: 'app',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('UrlStrategy', () => {
}]

const preferredUrlsMock = jest.fn()
let testedUrlStrategy = new UrlStrategy(preferredUrlsMock)
const testedUrlStrategy = new UrlStrategy(preferredUrlsMock)
const sendRequestMock = jest.fn()

beforeAll(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseUrlsMap } from "./url-strategy"
import { BaseUrlsMap } from './url-strategy'

export namespace BlockedUrlBypass {
export const Default = 'default'
Expand All @@ -7,7 +7,7 @@ export namespace BlockedUrlBypass {

export type Strategy = typeof Default | typeof India | typeof China

let endpoints: Record<BlockedUrlBypass.Strategy, BaseUrlsMap> = {
const endpoints: Record<BlockedUrlBypass.Strategy, BaseUrlsMap> = {
[BlockedUrlBypass.Default]: {
endpointName: 'Default',
app: 'https://app.adjust.com',
Expand All @@ -25,7 +25,7 @@ export namespace BlockedUrlBypass {
}
}

let getPreferredUrlsWithOption = (endpoints: Record<BlockedUrlBypass.Strategy, BaseUrlsMap>, option?: BlockedUrlBypass.Strategy) => {
const getPreferredUrlsWithOption = (endpoints: Record<BlockedUrlBypass.Strategy, BaseUrlsMap>, option?: BlockedUrlBypass.Strategy) => {

if (option === BlockedUrlBypass.India) {
return [
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/smart-banner/network/url-strategy/custom-url.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export namespace CustomUrl {
let getPreferredUrlsWithOption = (customUrl: string) => {
const getPreferredUrlsWithOption = (customUrl: string) => {

return [{
endpointName: `Custom (${customUrl})`,
Expand Down
4 changes: 2 additions & 2 deletions src/sdk/smart-banner/network/url-strategy/data-residency.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseUrlsMap } from "./url-strategy"
import { BaseUrlsMap } from './url-strategy'

export namespace DataResidency {
export const EU = 'EU'
Expand All @@ -25,7 +25,7 @@ export namespace DataResidency {
}
}

let getPreferredUrlsWithOption = (endpoints: Record<DataResidency.Region, BaseUrlsMap>, option: DataResidency.Region) => {
const getPreferredUrlsWithOption = (endpoints: Record<DataResidency.Region, BaseUrlsMap>, option: DataResidency.Region) => {
return [endpoints[option]]
}

Expand Down

0 comments on commit d64b62d

Please sign in to comment.