Hmm intersting
With our standard plugin skeleton, each plugin has its own package.json
file with its linting dependencies. And for now, the skeleton still uses yarn
.
So to lint a specific plugin, you would go into the plugin directory and run
yarn install
yarn prettier --write
Using core’s linting config on plugins can work sometimes. But if the version/config diverges, it can get painful because the version of eslint/prettier in core won’t match the version running in your plugin’s CI.