-
Notifications
You must be signed in to change notification settings - Fork 1.2k
eslint rules experiments for es2017 #9136
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
base: master
Are you sure you want to change the base?
Conversation
- update eslint to 2017 - add self to forbidden globals - fix a few unfixable bugs caught by eslint - convert newer features in twitter-archivist
✅ Deploy Preview for tiddlywiki-previews ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Confirmed: Arlen22 has already signed the Contributor License Agreement (see contributing.md) |
📊 Build Size Comparison:
|
Branch | Size |
---|---|
Base (master) | 2537.6 KB |
PR | 2534.8 KB |
Diff: ⬇️ Decrease: 2.8 KB
d18456d
to
2e97a69
Compare
6f1715b
to
3835e8b
Compare
3835e8b
to
9551969
Compare
Well, converting from string concatenation to template strings saves 5 KB.
Only doing the recommended fixes without any additional rules.
Adding the default Typescript formatter with spaces around operators and removing semicolons
Same settings but with semicolons explicitly inserted.
And with the rest of the automated changes, like arrow functions, const declarations, etc. |
e543441
to
70f7c9c
Compare
70f7c9c
to
9940c09
Compare
You did go down the rabbit hole. Interesting. Did you have a closer look at boot.js? It seems to be completely messed up. It seems it did "sort" the exported functions. IMO it should not do that. The diff is completely unreadable. I do like the template strings. |
The biggest problem I do have is the enormous amount of devdependencies that are included. |
I'm not sure if the typescript related rules are required. I might be able to get away with removing that. I hadn't noticed the sorting but that can be disabled. |
I'm mostly just playing around with seeing how many eslint rules I can find that automatically upgrade to newer syntaxes and the PR is mostly to see how the size changes.