DEV Community

Discussion on: Enforce Husky Pre-Commit With ESLint & Prettier In Monorepo

Collapse
 
metadiego profile image
Diego Olalde

Awesome tutorial, just 2 small fixes:

Under package.json, it should be "lint-frontend": "lint-staged" such that it matches "npm run lint-frontend" on .husky/pre-commit.

In my case, it was also necessary to add:

module.exports = {
env: {
....
node: true
},
...
}