Re: GJS internal linter
- From: Andrea Giammarchi <andrea giammarchi gmail com>
- To: javascript-list <javascript-list gnome org>
- Subject: Re: GJS internal linter
- Date: Sat, 9 Apr 2016 19:31:52 +0100
Since I've received zero answers on this one, I've assumed there was no way to do that.
If interested, I've fixed that one for you. I've forked and hand-patched babel-standalone build to be compatible with GJS internal linter:
The following is the plugins "preset" I'm using for mozjs24 since it's IMO not worth bringing in the entire ES2015 preset because most of it "just works":
Anyway, my babel-standalone fork would be capable of translating at runtime that too.
What does it mean for GJS develoeprs? Following just few improvements:
- forget about `imports.lang` and old MooTools, write native `class` as if there's no yesterday
- string templates all the things
- methods shorthands for any `{objects(){ return this.constructor; }}` or class definition
- named parameters
- unicode capable RegExp /via/u <-- flag
Hope somebody will find jsgtk or at least the GJS compatible version of babel-standalone useful.
I'm here to answer any question, if needed.
Best Regards
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]