title: lint-staged no stage files match
body: <p>Used create-react-app template. Windows, OpenServer.</p>
  
  <p>package.json</p>
  
  <pre><code>{
    "name": "league-finder",
    "version": "0.1.0",
    "private": true,
    "dependencies": {
      "react": "^16.5.2",
      "react-dom": "^16.5.2",
      "react-scripts": "1.1.5"
    },
    "scripts": {
      "start": "react-scripts start",
      "build": "react-scripts build",
      "test": "react-scripts test --env=jsdom",
      "eject": "react-scripts eject",
      "pre-commit": "lint-staged",
      "eslint": "./node_modules/.bin/eslint src/"
    },
    "devDependencies": {
      "eslint-config-prettier": "^3.1.0",
      "eslint-plugin-prettier": "^2.7.0",
      "husky": "^1.0.1",
      "lint-staged": "^7.3.0",
      "prettier": "^1.14.3"
    }
  }
  </code></pre>
  
  <p>.lintstagedrc</p>
  
  <pre><code>{  
    "*.js": ["eslint --fix", "git add"],
  }
  </code></pre>
  
  <p>Result: <a href="https://i.stack.imgur.com/6XexQ.png" rel="nofollow noreferrer">screenshot</a></p>
  
  <p>Why "No staged files match *.js"?</p>