Closed jerensl closed 4 months ago
Name | Link |
---|---|
Latest commit | aa619210b01d0db5ae92d0787d06cdab89d58dcd |
Latest deploy log | https://app.netlify.com/sites/modelina/deploys/667cc56ed451790008f392bb |
Deploy Preview | https://deploy-preview-2031--modelina.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Totals | |
---|---|
Change from base Build 9382165682: | 0.0% |
Covered Lines: | 5996 |
Relevant Lines: | 6327 |
@jerensl, you can also add the eslint and prettier rules from the asyncapi website in this PR and update the PR title accordingly.
@devilkiller-ag After doing some work I figured out this doesn't work because the next cli makes us dirty here, basically next lint
did something different with eslint
, it doesn't allow us to have multiple configurations for eslint
and always counted the root directory project eslint rule
as mentioned in this NextJS discussion, this resulted of conflicting rule with the root directory project.
For the solution, I think it would be better to migrate the website as new repositories and use submodules for this repository
@jonaslagoni what is your opinion about this?
For the solution, I think it would be better to migrate the website as new repositories and use submodules for this repository
At the moment that wont be an option, too complex of a setup for now.
@devilkiller-ag After doing some work I figured out this doesn't work because the next cli makes us dirty here, basically next lint did something different with eslint, it doesn't allow us to have multiple configurations for eslint and always counted the root directory project eslint rule as mentioned in this https://github.com/vercel/next.js/discussions/36440, this resulted of conflicting rule with the root directory project.
It should be possible to create a website-only eslint configuration even through the next cli, if the next cli is even needed to lint the files.
@devilkiller-ag, I made adjusted to ignore next/lint
and use only eslint
for modelina-website. The next step is to run the fix command, I tested it on my local device, which changes all over the code in the website and leftover ~100(mostly minor changes) errors that need to be fixed manually
@devilkiller-ag, I made adjusted to ignore
next/lint
and use onlyeslint
for modelina-website. The next step is to run the fix command, I tested it on my local device, which changes all over the code in the website and leftover ~100(mostly minor changes) errors that need to be fixed manually
@jerensl what type of errors are those?
@devilkiller-ag, I made adjusted to ignore
next/lint
and use onlyeslint
for modelina-website. The next step is to run the fix command, I tested it on my local device, which changes all over the code in the website and leftover ~100(mostly minor changes) errors that need to be fixed manually@jerensl what type of errors are those?
Mostly unused variable and hoisting
https://github.com/asyncapi/modelina/assets/54782057/8914cb3c-8970-4629-a431-5460a4ad3580
Hi @devilkiller-ag if you don't mind I changed the entire website codebase, I made the latest commit for fixing around 100 eslint errors, which left around ~90 warnings related to jsdoc for documentation purposes
Hi @devilkiller-ag if you don't mind I changed the entire website codebase, I made the latest commit for fixing around 100 eslint errors, which left around ~90 warnings related to jsdoc for documentation purposes
Okay, No problem!
Totals | |
---|---|
Change from base Build 9611843317: | 0.0% |
Covered Lines: | 5997 |
Relevant Lines: | 6328 |
Totals | |
---|---|
Change from base Build 9626689374: | 0.0% |
Covered Lines: | 5997 |
Relevant Lines: | 6328 |
@devilkiller-ag, I want to mention here too, with the deprecating of the majority eslint formatting rule, It's been clear they're not buying into the idea of becoming both formatter and linter simultaneously. So I propose a solution to make separation between both tools which we are using prettier for formatter and eslint as a linter
https://eslint.org/blog/2023/10/deprecating-formatting-rules/
@devilkiller-ag, I want to mention here too, with the deprecating of the majority eslint formatting rule, It's been clear they're not buying into the idea of becoming both formatter and linter simultaneously. So I propose a solution to make separation between both tools which we are using prettier for formatter and eslint as a linter
https://eslint.org/blog/2023/10/deprecating-formatting-rules/
Yeah this seems important to me. We should have this separation. Would you like to work on this @jerensl?
Totals | |
---|---|
Change from base Build 9642600004: | 0.0% |
Covered Lines: | 5997 |
Relevant Lines: | 6328 |
Yeah this seems important to me. We should have this separation. Would you like to work on this @jerensl?
Sure
Totals | |
---|---|
Change from base Build 9642600004: | 0.0% |
Covered Lines: | 5997 |
Relevant Lines: | 6328 |
How's the work going on @jerensl? Is it ready for review?
/rtm
Thanks @jerensl!
:tada: This PR is included in version 3.7.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Description
Added
eslint
automatic fix for modelina-website and added modelina-website to eslint ignore in parent project, so no conflicting rule in the future when we start migrating the same rule used in async website as mentioned hereRelated Issue
This PR is being made as mentioned here