Skip to content

Commit

Permalink
refactor: update quote-props eslint rule to use consistent-as-needed (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
baruchiro authored Jul 4, 2024
1 parent b7ebd71 commit 3b9301a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module.exports = {
"ignorePattern": "^(async )?function "
}],
"linebreak-style": process.platform === "win32"? 0: 2,
"quote-props": ["error", "consistent-as-needed"],
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/ban-ts-ignore": 0,
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const JSON_CONTENT_TYPE = 'application/json';

function getJsonHeaders() {
return {
Accept: JSON_CONTENT_TYPE,
'Accept': JSON_CONTENT_TYPE,
'Content-Type': JSON_CONTENT_TYPE,
};
}
Expand Down
4 changes: 2 additions & 2 deletions src/scrapers/behatsdaa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ class BehatsdaaScraper extends BaseScraperWithBrowser<ScraperSpecificCredentials
debug('Fetching data');

const res = await fetchPostWithinPage<PurchaseHistoryResponse>(this.page, PURCHASE_HISTORY_URL, body, {
authorization: `Bearer ${token}`,
'authorization': `Bearer ${token}`,
'Content-Type': 'application/json',
organizationid: '20',
'organizationid': '20',
});

debug('Data fetched');
Expand Down
2 changes: 1 addition & 1 deletion src/scrapers/mizrahi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function createDataFromRequest(request: Request, optionsStartDate: Date) {

function createHeadersFromRequest(request: Request) {
return {
mizrahixsrftoken: request.headers().mizrahixsrftoken,
'mizrahixsrftoken': request.headers().mizrahixsrftoken,
'Content-Type': request.headers()['content-type'],
};
}
Expand Down

0 comments on commit 3b9301a

Please sign in to comment.