This PR adds shared vscode configs a vscode user needs to get eslint formating on save working.
It also adds a .lintstagedrc file per theme/plugin so that on commit eslint runs relative to each workspace meaning eslint config can be customized on a workspace level and that's what lintstaged is going to use. Before we were always assuming the whole monorepo would use the same eslint config.
Description of the Change
This PR adds shared vscode configs a vscode user needs to get eslint formating on save working.
It also adds a .lintstagedrc file per theme/plugin so that on commit eslint runs relative to each workspace meaning eslint config can be customized on a workspace level and that's what lintstaged is going to use. Before we were always assuming the whole monorepo would use the same eslint config.
Closes https://github.com/10up/10up-toolkit/issues/324
How to test the Change
npm run lint-js
,npm run format-js
,npm run lint-css
.Changelog Entry
Credits
Props @username, @username2, ...
Checklist: