Skip to content

Commit

Permalink
fix: lint commands
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Nov 29, 2021
1 parent 07aeafe commit a59eac0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/client_javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
run: yarn client:build-js:recommend

- name: Lint
run: yarn lint:js --check
run: yarn prettier --check clients/algoliasearch-client-javascript
2 changes: 1 addition & 1 deletion .github/workflows/specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
run: yarn validate

- name: Lint
run: yarn lint:specs --check
run: yarn prettier --check specs
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"client:build-js:recommend": "yarn workspace @algolia/client-search build",
"client:build-js": "yarn client:build-js:search && yarn client:build-js:recommend",
"client:build": "yarn client:build-js",
"lint:js": "yarn prettier --write clients/algoliasearch-client-javascript",
"lint:js": "yarn prettier --write clients/algoliasearch-client-javascript/${CLIENT}",
"lint:specs": "yarn prettier --write specs",
"lint": "yarn lint:specs && yarn lint:js",
"generate:js:recommend": "yarn openapi-generator-cli generate --generator-key javascript-recommend && CLIENT=recommend yarn utils:import-js",
"generate:js:search": "yarn openapi-generator-cli generate --generator-key javascript-client-search && CLIENT=client-search yarn utils:import-js",
"generate:js": "yarn generate:js:search && yarn generate:js:recommend && yarn install",
"generate:js:recommend": "yarn openapi-generator-cli generate --generator-key javascript-recommend && CLIENT=recommend yarn utils:import-js && CLIENT=recommend yarn lint:js",
"generate:js:search": "yarn openapi-generator-cli generate --generator-key javascript-client-search && CLIENT=client-search yarn utils:import-js && CLIENT=client-search yarn lint:js",
"generate:js": "yarn generate:js:search && yarn generate:js:recommend",
"generate:recommend": "yarn generate:js:recommend",
"generate:search": "yarn generate:js:search",
"generate": "yarn generate:js && yarn lint",
"generate": "yarn generate:js && yarn lint:specs",
"playground:js:search": "yarn workspace javascript-playground start:search",
"playground:js:recommend": "yarn workspace javascript-playground start:recommend",
"utils:import-js": "mkdir -p -- clients/algoliasearch-client-javascript/${CLIENT}/utils && cp -R clients/algoliasearch-client-javascript/utils/ clients/algoliasearch-client-javascript/${CLIENT}/utils",
Expand Down

0 comments on commit a59eac0

Please sign in to comment.