New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support overrides #96
Comments
Hey @jogold! Thank you for using the project. We have a version of this right now. If you are using a monorepo you can place different config for each project in the repo. npm-package-json-lint will check the config for each project and lint them according to those rules. It is also possible to cascade the config too. For example, if you place the main config in the root of the repo then separate config in a sub-directory the config from the sub-directory will be merged with the config from the root. Do you think that will meet your needs? If not, I would love to add override functionality and would welcome your help 😄 |
Hi @tclindner, Thanks for the detailed answer. I'm currently using this "merge" functionality but it doesn't cover all cases. Let's say I'm using an |
Ah, yes. I'm supportive of adding overrides to the project. |
Hey @jogold would you be willing to help with this for v4? |
Hey @tclindner, thanks for reaching out! I don't have a lot of time right now... keep you posted. |
No worries, @jogold! Good luck with your projects 🥇 |
* Add logic to apply overrides Closes #96 * Update eslint-config-tc * Add cosmicconfig and switch to globby * Add new utils for ignore and file list * Add error handling to config * Add typedef to LintIssue * Add new linter and results helper * Add tests for utils * Tests for new linter * Add test for absolute paths * Add tests for overrides and extends * Add ignore support to cli reporter * Update api now that CLIEngine is no longer exported * Update Reporter.js * Add initial version of transformer * Add config tests * Update CHANGELOG.md Closes #82 * Update cosmicConfigTransformer.js * Ignore lint temporarily for beta * Fix file paths * Update ConfigValidator.test.js * Update ConfigValidator.test.js * Update NpmPackageJsonLint.test.js * Update getFileList.js * Update getFileList.js * Add default for base config directory * Add additional tests for overrides and local build script
It would be great to have support for an
overrides
field in the config file, just likeESLint
has. This could be especially useful for monorepos.Any plans to support this? Ready to help.
The text was updated successfully, but these errors were encountered: