title: How can I tell Prettier to ignore a package.json file?
body: <p>I am using prettier-standard because the project uses the standard for linting. </p>
  
  <p>Following the <a href="https://github.com/prettier/prettier#pre-commit-hook" rel="noreferrer">prettier pre-commit hook example</a> I am running prettier on commits. However I would like to ignore the package.json file. I tried adding <code>package.json</code> to a <em>.prettierignore</em> file but this did not work.</p>
  
  <p>Code from the prettier pre-commit hook example that I am using in my package.json</p>
  
  <pre><code>{
    "scripts": {
      "precommit": "lint-staged"
    },
    "lint-staged": {
       "*.{js,json,css}": [
         "prettier --write",
         "git add"
       ]
    }
  }
  </code></pre>
  
  <p>```</p>