I want to sort file in alphabetic before commit.
package.json:
"scripts": {
....,
"sort": "sort-json ./app/locales/de.json",
......
},
"husky": {
"hooks": {
"pre-commit": "npm run sort && npm run eslint",
"pre-push": "npm run test"
}
},
But it commit current version and then overwrite file with sorting.