Open-Assistant
Open-Assistant copied to clipboard
New eslintrc.json
@Jac-Zac great!
So the problem is that there are missing dependencies which needs to be installed, but before we do that, we can simplify the config file:
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"next/core-web-vitals"
],
"rules": {
"sort-imports": "error"
}
}
we put next/core-web-vitals at the end so it overrides the previous ones.
We don't need parser and plugins since similar ones are already defined by next/core-web-vitals (you have to see the source code to know that, so don't worry).
And finally, since we are using the default config of sort-imports from eslint, we don't need to define it in details.
I hope that makes sense.
The only thing that is missing now is to install the missing dependencies, you can do that using npm i -D @typescript-eslint/eslint-plugin, you should see that your package.json and package-lock.json have changed, please commit and push both of them.
@Jac-Zac Great!
You can see that it is working because the pipeline fails and eslint shows errors
https://github.com/LAION-AI/Open-Assistant/actions/runs/3796227051/jobs/6456127814#step:4:143
I will discuss with the team how to move forward with this and we will handle the rest, thanks again!
@Jac-Zac Great!
You can see that it is working because the pipeline fails and eslint shows errors
https://github.com/LAION-AI/Open-Assistant/actions/runs/3796227051/jobs/6456127814#step:4:143
I will discuss with the team how to move forward with this and we will handle the rest, thanks again!
Yeah, I figured. Btw, you have been really kind and helpful in the process, thanks.
Will review later my date and after pre-commits all work
Can I request a change to a file that's similar to eslint and will help with cleaner more consistent code? Can you delete the paths configuration in website/tsconfig.json? that's causing a lot of visual studio code issues regarding imports.
@Jac-Zac Thank you for the contribution! ❤
I did some small changes in #142, and also addressed what @fozziethebeat mentioned. Your work is preserved: https://github.com/LAION-AI/Open-Assistant/commit/71e260ec52478ea096f5b73bd8997670b1cb10ac