Skip to content

Commit

Permalink
Add eslint command on lint-staged (facebookexperimental#402)
Browse files Browse the repository at this point in the history
Summary:
I think, we need `eslint --fix` after `prettier --write` in `lint-staged`

Pull Request resolved: facebookexperimental#402

Reviewed By: drarmstr

Differential Revision: D22380637

Pulled By: mondaychen

fbshipit-source-id: ac01a6ae565298abcb47919ecfb943b95502a22a
  • Loading branch information
behnammodi authored and facebook-github-bot committed Jul 23, 2020
1 parent 1546774 commit fe2dadc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
}
},
"lint-staged": {
"*.{js,md,json}": "prettier --write"
"*.{js,md,json}": "prettier --write",
"*.{js}": "eslint --fix"
}
}

0 comments on commit fe2dadc

Please sign in to comment.