[Good first issue!] Cleaning up ESLint issues and adding good defaults #3787
matthew-dean
started this conversation in
Ideas
Replies: 3 comments
-
cc @iChenLei |
Beta Was this translation helpful? Give feedback.
0 replies
-
We should maybe consider a more opinionated style set of rules like: https://github.com/xojs/xo |
Beta Was this translation helpful? Give feedback.
0 replies
-
@iChenLei I opened this as a "discussion" instead of an issue because of how our issue flow is set up, but I'm thinking that things like this should probably be "issues" so they can be linked / closed by PRs like: #3790 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At one point, Less was converted from JSHint to ESLint, but ESLint still has some existing warnings.
In addition, there are currently only a few preset defaults set in an
.eslintrc.json
file inpackages/less
. The defined rules are okay, but ideally there would be a simple standard which would largely conform to those rules. Another problem with customizing rules is it prevents adding types in TypeScript. Constructs like TypeScript const enums will throw ESLint errors / warnings forno-unused-vars
, for example.So the task would be:
Ideally, any ESLint changes would absolutely not cause changes in each and every file everywhere. So, no changes should be made that, for example, change the number of indent spaces.
Any takers?
Beta Was this translation helpful? Give feedback.
All reactions