-
-
Notifications
You must be signed in to change notification settings - Fork 172
feat: lint option for javascript template #505
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
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.
I would change the option to lint
which can be extendable in future.
@climba03003, that's up to you folks to decide, but... IMHO people that need something beyond the standard linter will probably do that with their own custom *rc files (.prettierc, .eslintrc), each one requiring extra dependencies (every eslint project has tons of different plugins listed on devdependencies), at least that's my experience, not to mention that eslint/prettier CLIs are already very customizable by themselves. so, when I choose the boolean/binary approach, it was by design trying to prevent the cli of being redundant with eslint/prettier clis, prevent any kind of long discussion regarding code styles whenever I new one would be introduced via issue/PR, prevent the responsibility of maintaining any new linter set up-to-date forever and keep scope reasonably non-opinionated yet pragmatic about it -- tldr: I tried to avoid a lot of headache for maintainers. anyway, that's a design choice, not really my decision to take, I'm available to make any changes, let me know what the rest of the reviews think and what should I do to get this merged. |
It is a |
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.
tldr: I tried to avoid a lot of headache for maintainers.
+1
I must say that it would be awesome to think of a "pluggable" cli (or a yeomen generator? 🤔 )
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
@climba03003 @Eomm any feedback on this? should I assume that this PR should be closed (it looks like the issue is being worked on in another PR or something)? |
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 when ci green
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
@Mazuh let's figure out the windows problem first |
removing directories with .sync is limited on windows so I refactored my test to always use an available folder instead of concurring with the existing one
it was indeed just a testing issue, the now I have my ubuntu and my windows with maybe it's worth to create an issue to refactor the test suite in another PR to use the async version of rimraf instead, but I'm not sure if this will also get in the middle of the big refactoring in progress on another PR. |
Can one of you guys merge it, please? It seems all good now. |
@simoneb you good to land this? |
@mcollina yes LGTM |
resolves #363
Checklist
npm run unit
and the Code of conduct
for typescript, see: #512