I believe this should work as pre-commit will run anything defined in scripts.
  "scripts": {
    "lint": "lint-staged",
  }, 
  "pre-commit": [
    "lint"
  ],
  "lint-staged": {
    "*.js": [
      "prettier --write",
      "eslint",
      "git add"
    ],
    "*.jsx": [
      "prettier --write",
      "eslint",
      "git add"
    ],
    "*.scss": [
      "stylelint --syntax=scss",
      "git add"
    ]
  },
Console with link not running
hutber@hutber-blade /var/www/shipamax-web/frontend $ git add tests/
hutber@hutber-blade /var/www/shipamax-web/frontend $ git commit -m"another test"
[chore/create-circleci-build-rebase 5ff3f76] another test
 1 file changed, 1 insertion(+), 1 deletion(-)
hutber@hutber-blade /var/www/shipamax-web/frontend $ 
Folder Structure
- /.git
- /frontend
--all fe code
--package.json
Running
Linux Mint 18.3
node v8
npm v5
[Edit]
Post running npm install pre-commit -D inside of ./frontend

so I removed npm pre-commit and created a  pre-commit file inside /.git/hooks just to see if it would rename the file, no such luck:


pre-commitis in yourdevDependency? The page for pre-commit says that it modifies.git/hooks/pre-commitand moves the old one to.git/hooks/pre-commit.old-do you see those files?package.json? You probably have to use npm to install it so it knows to add those hooks to your git package. Runnpm install --save-dev pre-commitso it installs correctly