{
  "*.js": ["eslint --fix", "git add"],
  "*.{json,md,ts,yml,yaml}": ["prettier --write", "git add"]
}

{
  "*.js": "eslint --fix",
  "*.{json,md,ts,yml,yaml}": "prettier --write"
}

Remove git add command from lint-staged config
[lint] Remove git add command from lint-staged config
