Skip to content

Commit

Permalink
chore: run prettier on lint & lint:fix (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxr authored Sep 29, 2023
1 parent 114919d commit 760a655
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"precoverage": "npx rimraf coverage && npx mkdirp coverage",
"coverage": "jest --coverage",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint": "prettier --check . && eslint .",
"lint:fix": "prettier --write . && eslint . --fix",
"prepublishOnly": "npm run build:lib && npm run build:browser.js -- --minify-whitespace --minify-identifiers",
"test": "jest",
"posttest": "npm run build:lib && npm run test:integration && npm run build:browser.js && npm run test:browser.js",
Expand Down
4 changes: 3 additions & 1 deletion src/commands/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export async function command(_subcommand, ...args) {
const { getKeyIndexes, exists } = await import('@ioredis/commands')
const [cmd, ...subArgs] = args
if (!exists(cmd)) {
throw new Error('ERR wrong number of arguments for \'command|getkeys\' command')
throw new Error(
"ERR wrong number of arguments for 'command|getkeys' command"
)
}

return getKeyIndexes(cmd, subArgs).map(i => subArgs[i])
Expand Down

0 comments on commit 760a655

Please sign in to comment.