nodpc / jn-npp-plugin

Automatically exported from code.google.com/p/jn-npp-plugin
0 stars 0 forks source link

Feature Request: fixmyjs #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Eugen,

Do you know about the tool 'fixmyjs' (https://github.com/jshint/fixmyjs)?

It would be wonderful if the tools can auto fix my javascript (entire file or 
selection text). It looks cool the demo of sublime plugin implementation 
https://github.com/addyosmani/sublime-fixmyjs

Can fixmyjs port in jN? Or can you kindly give me some advices or hints how to 
achieve it by using jN libs?

Appreciate.

Benx

Original issue reported on code.google.com by benx.s...@gmail.com on 24 Oct 2014 at 3:40

GoogleCodeExporter commented 9 years ago
Hi Benx,

it is possible to port fixmyjs. But it would be hard job consuming a lot of 
time. 

The problem is that fixmyjs, jshint are developed for modern javascript 
offering getter, setter. They are using window object. All of these are not 
available in jN.

One have to replace getter and setter by function calls. Work around of window 
object. The result will be modified fixmyjs and its dependencies requiring 
continual support.

You can try it and I would support you answering your questions.

Take a look into jn\includes\csslint.js

Best regards
Eugen

Original comment by eugen.kr...@gmail.com on 24 Oct 2014 at 5:51