Skip to content

Commit 202e185

Browse files
authored
chore(lint): don't lint ts with prettier (#26)
1 parent 481413b commit 202e185

File tree

6 files changed

+16
-19
lines changed

6 files changed

+16
-19
lines changed

clients/algoliasearch-client-javascript/client-search/src/searchApi.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class SearchApi {
106106
/**
107107
* Performs multiple write operations in a single API call.
108108
*
109-
* @param indexName - The index in which to perform the request.
109+
* @param indexName - The index in which to perform the request.
110110
* @param batchObject - The batchObject.
111111
*/
112112
batch(indexName: string, batchObject: BatchObject): Promise<BatchResponse> {
@@ -145,7 +145,7 @@ export class SearchApi {
145145
/**
146146
* Retrieve settings of a given indexName.
147147
*
148-
* @param indexName - The index in which to perform the request.
148+
* @param indexName - The index in which to perform the request.
149149
*/
150150
getSettings(indexName: string): Promise<IndexSettings> {
151151
const path = '/1/indexes/{indexName}/settings'.replace(
@@ -207,8 +207,8 @@ export class SearchApi {
207207
/**
208208
* Add an object to the index, automatically assigning it an object ID.
209209
*
210-
* @param indexName - The index in which to perform the request.
211-
* @param requestBody - The Algolia object.
210+
* @param indexName - The index in which to perform the request.
211+
* @param requestBody - The Algolia object.
212212
*/
213213
saveObject(
214214
indexName: string,
@@ -249,7 +249,7 @@ export class SearchApi {
249249
/**
250250
* Get search results.
251251
*
252-
* @param indexName - The index in which to perform the request.
252+
* @param indexName - The index in which to perform the request.
253253
* @param searchParamsAsStringSearchParams - The searchParamsAsStringSearchParams.
254254
*/
255255
search(
@@ -294,9 +294,9 @@ export class SearchApi {
294294
/**
295295
* Update settings of a given indexName. Only specified settings are overridden; unspecified settings are left unchanged. Specifying null for a setting resets it to its default value.
296296
*
297-
* @param indexName - The index in which to perform the request.
297+
* @param indexName - The index in which to perform the request.
298298
* @param indexSettings - The indexSettings.
299-
* @param forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
299+
* @param forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
300300
*/
301301
setSettings(
302302
indexName: string,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"client:build-js:recommend": "yarn workspace @algolia/recommend build",
1818
"client:build-js": "yarn client:build-js:search && yarn client:build-js:recommend",
1919
"client:build": "yarn client:build-js",
20-
"lint:client:fix": "yarn prettier --write ${CLIENT} && eslint --ext=ts ${CLIENT} --fix",
20+
"lint:client:fix": "eslint --ext=ts ${CLIENT} --fix",
2121
"lint": "eslint --ext=ts .",
2222
"format:specs": "yarn prettier --write specs",
2323
"generate:js:recommend": "yarn openapi-generator-cli generate --generator-key javascript-recommend && CLIENT=recommend yarn utils:import-js && CLIENT=clients/algoliasearch-client-javascript/recommend/ yarn lint:client:fix",

playground/javascript/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"@algolia/client-search": "5.0.0",
1313
"@algolia/recommend": "5.0.0",
1414
"dotenv": "10.0.0",
15-
"prettier": "2.5.0",
1615
"typescript": "4.5.2"
1716
},
1817
"engines": {

templates/javascript/api-single.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class {{classname}} {
103103
* @summary {{&summary}}
104104
{{/summary}}
105105
{{#allParams}}
106-
* @param {{paramName}} {{^description}}The {{paramName}} {{/description}} {{#description}}{{description}}{{/description}}
106+
* @param {{paramName}} {{^description}}The {{paramName}}{{/description}}{{#description}}{{description}}{{/description}}
107107
{{/allParams}}
108108
*/
109109
public {{nickname}} ({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}) : Promise<{{{returnType}}}> {

templates/javascript/package.mustache

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"devDependencies": {
2121
"@types/node": "^16.11.6",
2222
"typescript": "4.5.2"
23-
}
24-
{{#npmRepository}},
23+
}{{#npmRepository}},
2524
"publishConfig": {
2625
"registry": "{{npmRepository}}"
2726
}{{/npmRepository}}

yarn.lock

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ __metadata:
412412
linkType: hard
413413

414414
"@types/node@npm:^16.11.6":
415-
version: 16.11.10
416-
resolution: "@types/node@npm:16.11.10"
417-
checksum: 9c79419c5c3d92d5825bffa30f3668533f598d8b63a73ea7fc24e47f162bdbed92b0f8e4f4261cc3314b39cee050e303366d2aa154abc95c63a572a110b8c160
415+
version: 16.11.11
416+
resolution: "@types/node@npm:16.11.11"
417+
checksum: 1c472bd63f23ca0e4effc96e6e0c693b83b027f613a1f41b6d1bd7791f65ce171a351e0a5c92575cb59e84ad0a930875397bfbbb91a7c925ddbbb558f7461af8
418418
languageName: node
419419
linkType: hard
420420

@@ -946,9 +946,9 @@ __metadata:
946946
linkType: hard
947947

948948
"date-fns@npm:^2.16.1":
949-
version: 2.26.0
950-
resolution: "date-fns@npm:2.26.0"
951-
checksum: 49ad59bc788134a6552ef4e4af0d18792001c1ca0070d543de4f36aba5761058b6e6a57b8ca51dd3b0f07f3bd55376b8bc69602bd7940648ba3869c5253c6ae8
949+
version: 2.27.0
950+
resolution: "date-fns@npm:2.27.0"
951+
checksum: db62036b3816eb0322c9532b353beac7f660a91e1a55dbd21c14893c621ebb8509f21c66ba287844dabd34dee0207edd54a9537bce6bb7cab9383dedc6b8bc90
952952
languageName: node
953953
linkType: hard
954954

@@ -2032,7 +2032,6 @@ __metadata:
20322032
"@algolia/client-search": 5.0.0
20332033
"@algolia/recommend": 5.0.0
20342034
dotenv: 10.0.0
2035-
prettier: 2.5.0
20362035
typescript: 4.5.2
20372036
languageName: unknown
20382037
linkType: soft

0 commit comments

Comments
 (0)