How someone could share esLint/prettier config across Yarn workspaces(no NPM, Lerna and etc).
I try to keep things pretty high level but I have tried to create a separate package for esLint config and consume it in project-packages(by installing it and extending it), however I ran into two issues:
eslint command not found: do I have to install theeslintto each project-package that consumes the dependencies of the eslint-config package?- I assume by installing
eslint-configintobook/package.json,eslintshould be installed. I am not sure why I get eslint command not found.
- I assume by installing
- Just to debug, I installed
eslintinsidebook/package.jsonproject-package and it doesn't seem to have the understanding of the environments that are set ineslint-config. for example:"Jest": { "testEnvrionment": "Node" }is being ignored in each project.
fictional-project
├── config-packages
│ ├── eslint-config
│ │ └── package.json
│ └── settings
│ └── package.json
├── package.json
├── project-packages
│ └── book
│ ├── book-function-as-a-service.js
│ └── package.json
└── src
└── index.js