ESLint will sometimes fail on statically generated content that is not meant to be committed into the code base (ie .gitignore).
The issue came up when trying to resolving CI issues related to #352, and where a local public folder was created as a result of triggering one of the scripts (TBD). Once generated, scripts suffered enormous lags and hooks seemed to fail without reasonably clear expectation of this being the cause.
This also meant steps needed to be taken before making a successful commit.
[ ] The alternatives to pick from:
.eslintignore entry for "/public" — adds more overhead to ensure it tracks generated and uncommitted code.eslintignore -> .gitignore — reduces overhead but warrants clear mention in the file[ ] This possible branches to land this on:
I'm willing to make this PR as soon as we decide on the above.
/cc @nodejs/website-redesign
public directory is a production version of the site, so we don't need to check for linting/formatting in there.
Already added in #326
Bug fixed in #326
Most helpful comment
publicdirectory is a production version of the site, so we don't need to check for linting/formatting in there.Already added in #326