-
Notifications
You must be signed in to change notification settings - Fork 86
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
Proposal: Disallow trailing-comma #605
Comments
Hey @zFernand0, i tried making this change on my local branch, and I get loads of trailing comma errors when I run |
Hey @Pranay154, Thanks for looking at this. |
I've been out of Zowe CLI development for a few months, but I'd propose to allow dangling commas when we migrate to ESLint. Maybe I'm the only one to develop this way, but I move lists around a lot ( I like the feature of JavaScript which would error in C or Java. I recognize this partially subjective but 1.8k claps can't be too wrong 😄 |
I think we should get linters out of the formatting business and use prettier. That will provide clear separation of responsibilities and avoid problems with formatting. |
@dkelosky I completely agree with Nick, he summarised the argument nicely. |
I am not sure about the level people are familiar with how the javascript/typescript tooling works under the hood, why prettier is such a revolutionary thing and why ESLint stood the test of time. I did a talk about this topic at a javascript conference in Prague. I would be happy to discuss this topic and/or prepare a shorter session for the group about it in case there was an interest. |
@VitGottwald I used prettier quite recently for a javascript project, and I certainly agree that it provides a nice and consistent way of formatting that is easy to follow, so I would definitely get behind using it. I think it would be beneficial if you could prepare a session to demonstrate its capability to the group so that we can make an informed decision 😄 . Here is an article I was reading as to why prettier is useful: https://medium.com/front-end-field-guide/why-prettier-will-make-you-a-more-productive-programmer-1dcc0e5343cb
|
zowe-cli/tslint.json
Line 9 in 537be14
Change from
false
toAnd fixing current linting problems
The text was updated successfully, but these errors were encountered: