-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Add eslint and code format configuration #277
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we install this packages, I think we should at least use it in command instead of IDE only.
The command for linting.
https://github.com/fastify/fastify/blob/main/package.json#L13-L16
I tried but looking closer, it seems as if the |
@climba03003 are we good to go? Don't want to gloss over your objection. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My stand is the same as before, but I am not blocking it to be merged.
From my experience, the first thing after cloning the project always be disable IDE auto linting
. Because I can't get it works even once, fastify
is the same in my environment.
So, I only use the command
before merging but not rely on the auto linting feature of IDE. And that is the reason why I think if you add it, you need to use it. As it do nothing in my environment, just increase the installation time.
Understood. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to ask you for one more test on your PC:
starting from master
, could you add a simple .eslintrc
like this: standard/vscode-standard#295 (comment)
cleaning your node_modules
and without the additions?
I think you hit the same issue I'm having and the .eslintrc
should be enough
For example, using this PR:
$ npm ls eslint-config-standard
point-of-view@4.15.3 /Users/mspigolon/workspace/point-of-view
├── eslint-config-standard@16.0.3
└─┬ standard@16.0.4
└── eslint-config-standard@16.0.3 deduped
I've done that, cleaned node_modules, reinstalled without these deps.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I think I landed the other PR first :( Can you rebase this? |
I was able to merge this. |
Can you remove the |
Correct. Done. |
Added eslint and copied all config files for code style over from fastify to make contributing easier.
Checklist
npm run test
andnpm run benchmark
and the Code of conduct