-
Notifications
You must be signed in to change notification settings - Fork 0
Create centralized linting system that can be applied to all MatrixAI repos, regardless of project-specific linting rules #7
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
Comments
Old dependencies can be replaced with just 1: This repo has to be an ESM repo too. https://github.com/MatrixAI/Zeta-House-Docs/blob/staging/scripts/lint.mjs - make sure it works with the |
ETA on this? This has been worked on for a couple weeks now. It should be merged now. |
I've reviewed very quickly the result of this work, and I don't think this is what we want. I'm going to give a better spec so that this actually some real ROI, which right now it does not.
To achieve this.
|
I've just done:
The rest is handed to you @CDeltakai. |
For step 8. As an example https://github.com/MatrixAI/zeta.house/blob/a42d071dcf6813ce5a225b4a699fed67881e6d75/scripts/lint.mjs#L46-L69 You just need to "test" if the program already exists in the shell before doing the rest of the code. if (commandExists('find') && commandExists('shellcheck')) {
// ...
} Ask chatgpt to generate the function for you:
|
Step 9. is to do a release on this repo. Create a Step 10. is to create a feature branch in js-logger, and get it working there. Remember the CI does step 9. You just need to create a "version tag". |
At step 10. we will remove all eslint and linting programs from that repo. And instead the Or we can even call |
Create new PRs for all the rest of the repos to start integrating this. Start with js-logger. |
Can use snapshot testing in jest to test the linter. Otherwise there's no tests. |
@brynblack Can't finish the CI at the moment since the CI for this repo apparently doesn't have the authority to push out a release. https://github.com/MatrixAI/js-lint/actions/runs/14463613455 |
It's all been released now at https://www.npmjs.com/package/@matrixai/lint. I manually setup the org secrets. Now create every PR and reference this. Don't fix it, only relates. I think you also need to make the "paths" configurable at the CLI level. |
In the future, additional options can be provided to address other kinds of linting. The goal is to remove configuration files from all the repos. |
The pattern is a "globbing" pattern. You need to "interpret" the globbing pattern in JS. Use a glob library to do this, or ask gemini. |
Also if your command is going to be Or alternatively you export it as just a I think it could just be |
Because the repo is authorized now, you can now proceed to to even merge new changes to staging and push new tags. Remember you are still doing prereleases. |
For globbing I've used |
Specification
If we can create a single config bundle that includes all of the rules from MatrixAI codebases, we can greatly streamline the process of setting up linting rules in new repos.
Additional context
Tasks
The text was updated successfully, but these errors were encountered: