This is a great idea. ESLint is already configured (a bit) in .pre-commit-config.yaml
.
Something like exclude: "vendor"
at the top of the pre-commit configuration should also take care of not checking and reformatting jquery etc.
I always use eslint-config-prettier
to automatically turn off ESLint rules which are useless when using prettier. It works well.