-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Integrate ESLint into our development and CI process #833
Conversation
Thanks for taking care of this! About the second table of rules, some of them do indeed make sense but I'm hesitant about those:
|
Here are my two cents: no console Attribute related rules like order, max per line etc Component tags order Enforcing types and defaults in props no-v-html Since we are mainly talking about the rule that will not be activated for the time being, I suggest that we merge the commit and evaluate the changes in the respective pull requests. It is difficult to assess the impact without looking at concrete examples. What do think @ghys? |
Yes of course I surely understand the rationale behind these rules, I was mainly in "RAD" mode for the entirety of this project so relatively lax on the code tidiness and it can be a little dirty at places, these rules would make it better. I'm using the Vue devtools extension, as you might imagine, to figure out what is going on, what are props set to, etc. |
Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
…raries Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
Sounds like a good alternative. I have adjusted the rules accordingly. |
@philippwaller This seems to work well, one last little request: could you disable |
Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
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.
Many thanks!
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention | ||
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. | ||
'plugin:vue/essential', | ||
'@vue/standard' |
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.
@philippwaller I just noticed you removed @vue/standard here!? Any reason why?
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.
Hm, it appears it's much more strict than before...
This PR integrates ESLint into our development and CI process. The following changes have been made:
I have made a preselection of rules that I believe would increase the overall code quality. Of course, this selection is very opinionated, so I'm looking forward to your feedback. The following rules are already activated and conform to the current code base.
The following rules would currently fail and are therefore temporarily disabled. However, I am of the opinion that these should also be activated in the medium term. Due to the large number of required changes, the activations should be clustered into multiple pull requests. I would follow up on that after we have a common agreement.
Attention: After merging, these changes can impact the build success of pending pull requests.