Skip to content

style(ci): format json everywhere APIC-306 #376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules
dist
playground
build
composer.json
tsconfig.json
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ module.exports = {
},
],
},
},
{
files: ['*.json'],

plugins: ['json-format']
}
],
};
3 changes: 3 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
fi
exit $diff

- name: Lint json files
run: yarn eslint --ext=json .

outputs:
RUN_SCRIPTS: ${{ steps.setup.outputs.RUN_SCRIPTS }}

Expand Down
4 changes: 3 additions & 1 deletion clients/algoliasearch-client-javascript/lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"packages": ["packages/*"],
"packages": [
"packages/*"
],
"version": "independent"
}
14 changes: 7 additions & 7 deletions clients/algoliasearch-client-javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "algoliasearch-client-javascript",
"private": true,
"workspaces": [
"packages/*"
],
"private": true,
"scripts": {
"build:utils": "yarn build client-common && yarn build requester-browser-xhr && yarn build requester-node-http",
"build": "CLIENT=${0:-all} yarn rollup -c rollup.config.js",
"clean:utils": "yarn workspace @experimental-api-clients-automation/client-common clean && yarn workspace @experimental-api-clients-automation/requester-node-http clean && yarn workspace @experimental-api-clients-automation/requester-browser-xhr clean",
"build:utils": "yarn build client-common && yarn build requester-browser-xhr && yarn build requester-node-http",
"clean": "rm -rf packages/*/dist",
"clean:utils": "yarn workspace @experimental-api-clients-automation/client-common clean && yarn workspace @experimental-api-clients-automation/requester-node-http clean && yarn workspace @experimental-api-clients-automation/requester-browser-xhr clean",
"release": "shipjs prepare",
"test:size": "bundlesize",
"test:lint": "eslint . --ext .js,.ts",
"test:types": "yarn tsc --noEmit",
"release:bump": "lerna version ${0:-patch} --no-changelog --no-git-tag-version --no-push --exact --yes",
"release:publish": "ts-node --project tsconfig.script.json scripts/publish.ts"
"release:publish": "ts-node --project tsconfig.script.json scripts/publish.ts",
"test:lint": "eslint . --ext .js,.ts",
"test:size": "bundlesize",
"test:types": "yarn tsc --noEmit"
},
"devDependencies": {
"@babel/core": "7.17.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@
"version": "0.0.5",
"description": "A fully-featured and blazing-fast JavaScript API client to interact with Algolia API.",
"repository": "algolia/algoliasearch-client-javascript",
"author": "Algolia",
"license": "MIT",
"author": "Algolia",
"main": "index.js",
"module": "dist/algoliasearch.esm.node.js",
"types": "index.d.ts",
"jsdelivr": "dist/algoliasearch.umd.browser.js",
"unpkg": "dist/algoliasearch.umd.browser.js",
"module": "dist/algoliasearch.esm.node.js",
"browser": "dist/algoliasearch.cjs.browser.js",
"types": "index.d.ts",
"scripts": {
"clean": "rm -rf ./dist"
},
"engines": {
"node": ">= 14.0.0"
},
"dependencies": {
"@experimental-api-clients-automation/client-analytics": "0.0.5",
"@experimental-api-clients-automation/client-common": "0.0.5",
Expand All @@ -28,5 +25,8 @@
"devDependencies": {
"@types/node": "16.11.26",
"typescript": "4.6.3"
},
"engines": {
"node": ">= 14.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,22 @@
"version": "0.0.5",
"description": "JavaScript client for @experimental-api-clients-automation/client-abtesting",
"repository": "algolia/algoliasearch-client-javascript",
"author": "Algolia",
"license": "MIT",
"author": "Algolia",
"main": "index.js",
"module": "dist/client-abtesting.esm.node.js",
"types": "index.d.ts",
"jsdelivr": "dist/client-abtesting.umd.browser.js",
"unpkg": "dist/client-abtesting.umd.browser.js",
"module": "dist/client-abtesting.esm.node.js",
"browser": "dist/client-abtesting.cjs.browser.js",
"scripts": {
"clean": "rm -rf ./dist"
},
"types": "index.d.ts",
"files": [
"dist",
"model",
"index.js",
"index.d.ts"
],
"engines": {
"node": ">= 14.0.0"
"scripts": {
"clean": "rm -rf ./dist"
},
"dependencies": {
"@experimental-api-clients-automation/client-common": "0.0.5",
Expand All @@ -31,5 +28,8 @@
"devDependencies": {
"@types/node": "16.11.26",
"typescript": "4.6.3"
},
"engines": {
"node": ">= 14.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,22 @@
"version": "0.0.5",
"description": "JavaScript client for @experimental-api-clients-automation/client-analytics",
"repository": "algolia/algoliasearch-client-javascript",
"author": "Algolia",
"license": "MIT",
"author": "Algolia",
"main": "index.js",
"module": "dist/client-analytics.esm.node.js",
"types": "index.d.ts",
"jsdelivr": "dist/client-analytics.umd.browser.js",
"unpkg": "dist/client-analytics.umd.browser.js",
"module": "dist/client-analytics.esm.node.js",
"browser": "dist/client-analytics.cjs.browser.js",
"scripts": {
"clean": "rm -rf ./dist"
},
"types": "index.d.ts",
"files": [
"dist",
"model",
"index.js",
"index.d.ts"
],
"engines": {
"node": ">= 14.0.0"
"scripts": {
"clean": "rm -rf ./dist"
},
"dependencies": {
"@experimental-api-clients-automation/client-common": "0.0.5",
Expand All @@ -31,5 +28,8 @@
"devDependencies": {
"@types/node": "16.11.26",
"typescript": "4.6.3"
},
"engines": {
"node": ">= 14.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
"version": "0.0.5",
"description": "Common package for the Algolia JavaScript API client.",
"repository": "algolia/algoliasearch-client-javascript",
"author": "Algolia",
"license": "MIT",
"author": "Algolia",
"main": "dist/client-common.cjs.node.js",
"module": "dist/client-common.esm.node.js",
"types": "dist/index.d.ts",
"scripts": {
"clean": "rm -rf dist/",
"test": "jest"
},
"engines": {
"node": ">= 14.0.0"
},
"devDependencies": {
"@types/jest": "27.4.1",
"@types/node": "16.11.26",
"jest": "27.5.1",
"typescript": "4.6.3"
},
"engines": {
"node": ">= 14.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,22 @@
"version": "0.0.5",
"description": "JavaScript client for @experimental-api-clients-automation/client-insights",
"repository": "algolia/algoliasearch-client-javascript",
"author": "Algolia",
"license": "MIT",
"author": "Algolia",
"main": "index.js",
"module": "dist/client-insights.esm.node.js",
"types": "index.d.ts",
"jsdelivr": "dist/client-insights.umd.browser.js",
"unpkg": "dist/client-insights.umd.browser.js",
"module": "dist/client-insights.esm.node.js",
"browser": "dist/client-insights.cjs.browser.js",
"scripts": {
"clean": "rm -rf ./dist"
},
"types": "index.d.ts",
"files": [
"dist",
"model",
"index.js",
"index.d.ts"
],
"engines": {
"node": ">= 14.0.0"
"scripts": {
"clean": "rm -rf ./dist"
},
"dependencies": {
"@experimental-api-clients-automation/client-common": "0.0.5",
Expand All @@ -31,5 +28,8 @@
"devDependencies": {
"@types/node": "16.11.26",
"typescript": "4.6.3"
},
"engines": {
"node": ">= 14.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,22 @@
"version": "0.0.5",
"description": "JavaScript client for @experimental-api-clients-automation/client-personalization",
"repository": "algolia/algoliasearch-client-javascript",
"author": "Algolia",
"license": "MIT",
"author": "Algolia",
"main": "index.js",
"module": "dist/client-personalization.esm.node.js",
"types": "index.d.ts",
"jsdelivr": "dist/client-personalization.umd.browser.js",
"unpkg": "dist/client-personalization.umd.browser.js",
"module": "dist/client-personalization.esm.node.js",
"browser": "dist/client-personalization.cjs.browser.js",
"scripts": {
"clean": "rm -rf ./dist"
},
"types": "index.d.ts",
"files": [
"dist",
"model",
"index.js",
"index.d.ts"
],
"engines": {
"node": ">= 14.0.0"
"scripts": {
"clean": "rm -rf ./dist"
},
"dependencies": {
"@experimental-api-clients-automation/client-common": "0.0.5",
Expand All @@ -31,5 +28,8 @@
"devDependencies": {
"@types/node": "16.11.26",
"typescript": "4.6.3"
},
"engines": {
"node": ">= 14.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,22 @@
"version": "0.0.5",
"description": "JavaScript client for @experimental-api-clients-automation/client-predict",
"repository": "algolia/algoliasearch-client-javascript",
"author": "Algolia",
"license": "MIT",
"author": "Algolia",
"main": "index.js",
"module": "dist/client-predict.esm.node.js",
"types": "index.d.ts",
"jsdelivr": "dist/client-predict.umd.browser.js",
"unpkg": "dist/client-predict.umd.browser.js",
"module": "dist/client-predict.esm.node.js",
"browser": "dist/client-predict.cjs.browser.js",
"scripts": {
"clean": "rm -rf ./dist"
},
"types": "index.d.ts",
"files": [
"dist",
"model",
"index.js",
"index.d.ts"
],
"engines": {
"node": ">= 14.0.0"
"scripts": {
"clean": "rm -rf ./dist"
},
"dependencies": {
"@experimental-api-clients-automation/client-common": "0.0.5",
Expand All @@ -31,5 +28,8 @@
"devDependencies": {
"@types/node": "16.11.26",
"typescript": "4.6.3"
},
"engines": {
"node": ">= 14.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,22 @@
"version": "0.0.5",
"description": "JavaScript client for @experimental-api-clients-automation/client-query-suggestions",
"repository": "algolia/algoliasearch-client-javascript",
"author": "Algolia",
"license": "MIT",
"author": "Algolia",
"main": "index.js",
"module": "dist/client-query-suggestions.esm.node.js",
"types": "index.d.ts",
"jsdelivr": "dist/client-query-suggestions.umd.browser.js",
"unpkg": "dist/client-query-suggestions.umd.browser.js",
"module": "dist/client-query-suggestions.esm.node.js",
"browser": "dist/client-query-suggestions.cjs.browser.js",
"scripts": {
"clean": "rm -rf ./dist"
},
"types": "index.d.ts",
"files": [
"dist",
"model",
"index.js",
"index.d.ts"
],
"engines": {
"node": ">= 14.0.0"
"scripts": {
"clean": "rm -rf ./dist"
},
"dependencies": {
"@experimental-api-clients-automation/client-common": "0.0.5",
Expand All @@ -31,5 +28,8 @@
"devDependencies": {
"@types/node": "16.11.26",
"typescript": "4.6.3"
},
"engines": {
"node": ">= 14.0.0"
}
}
Loading