Skip to content

Commit 630808e

Browse files
authored
Merge pull request #26 from sendinblue/fix-unused-imports
unused imports removal eslint added
2 parents 7dccd87 + 58acad5 commit 630808e

File tree

415 files changed

+2955
-1823
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

415 files changed

+2955
-1823
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

.eslintrc

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint",
6+
"unused-imports"
7+
],
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/eslint-recommended",
11+
"plugin:@typescript-eslint/recommended"
12+
],
13+
"rules": {
14+
"unused-imports/no-unused-imports-ts" : 2
15+
}
16+
}

api/accountApi.js

+6-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/accountApi.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/accountApi.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import http = require('http');
1717
import { GetAccount } from '../model/getAccount';
1818

1919
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
20-
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
20+
import { ApiKeyAuth } from '../model/models';
2121

22-
import { HttpError, RequestFile } from './apis';
22+
import { HttpError } from './apis';
2323

24-
let defaultBasePath = 'https://api.sendinblue.com/v3';
24+
const defaultBasePath = 'https://api.sendinblue.com/v3';
2525

2626
// ===============================================
2727
// This file is autogenerated - Please do not edit
@@ -34,8 +34,8 @@ export enum AccountApiApiKeys {
3434

3535
export class AccountApi {
3636
protected _basePath = defaultBasePath;
37-
protected _defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node' };;
38-
protected _useQuerystring : boolean = false;
37+
protected _defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node' };
38+
protected _useQuerystring = false;
3939

4040
protected authentications = {
4141
'default': <Authentication>new VoidAuth(),
@@ -100,22 +100,22 @@ export class AccountApi {
100100
*/
101101
public async getAccount (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetAccount; }> {
102102
const localVarPath = this.basePath + '/account';
103-
let localVarQueryParameters: any = {};
104-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
103+
const localVarQueryParameters: any = {};
104+
const localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
105105
const produces = ['application/json'];
106106
// give precedence to 'application/json'
107107
if (produces.indexOf('application/json') >= 0) {
108108
localVarHeaderParams.Accept = 'application/json';
109109
} else {
110110
localVarHeaderParams.Accept = produces.join(',');
111111
}
112-
let localVarFormParams: any = {};
112+
const localVarFormParams: any = {};
113113

114114
(<any>Object).assign(localVarHeaderParams, options.headers);
115115

116-
let localVarUseFormData = false;
116+
const localVarUseFormData = false;
117117

118-
let localVarRequestOptions: localVarRequest.Options = {
118+
const localVarRequestOptions: localVarRequest.Options = {
119119
method: 'GET',
120120
qs: localVarQueryParameters,
121121
headers: localVarHeaderParams,

api/attributesApi.js

+21-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)