ESLint - plugin detail

Lints your javascript files using ESLint

n/a
Plugin owner: jockeeriksson
Website: https://github.com/joakim-eriksson/nb-eslint
Added: 2016-03-15
License: MIT
Category: Editing
Downloaded: 558 times
Rating:
 4.34, by 1 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.02 MB   Last Update: 2016-03-15

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version



Verifications for NetBeans versions

8.1 verification PASSED See verification details


Introduction

Lints your javascript files using ESLint

[ You have to be logged in to be able to comment. ]

User Comments

  

Plugin causes error with viewing previous annotations

Have tested this plugin in both Netbeans 8.1 and Netbeans 8.2 RC, and in general it works well. However, if this plugin is installed, it causes an error in netbeans if you try to view previous annotations of a file. (and doesn't allow you to view the previous annonatations).

To reproduce:

- Install plugin
- Open a project using version control (currently using Mercurial, but think it happens on GIT projects as well)
- Open any file that is in version control (can be PHP, doesn't have to be JS)
- Click Team (main menu) -> Show annotations
- Right click on any annotation (in the left of the editor) and select menu item 'Show annotations for XXXX'

It throws an error, and doesn't display the annotation. Would be great to get this fixed, as I really like the plugin, but have had to remove it due to this bug.

Error details as below:


java.lang.NullPointerException
at se.jocke.nb.eslint.annotation.ESLintAnnotationProvider.apply(ESLintAnnotationProvider.java:45)
at se.jocke.nb.eslint.annotation.ESLintAnnotationProvider.annotate(ESLintAnnotationProvider.java:40)
at org.openide.text.CloneableEditorSupport.ensureAnnotationsLoaded(CloneableEditorSupport.java:393)
at org.openide.text.CloneableEditorInitializer.initAnnotations(CloneableEditorInitializer.java:643)
[catch] at org.openide.text.CloneableEditorInitializer.run(CloneableEditorInitializer.java:351)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Posted by JonoH on Sep 29, 2016
  

Web page

The project is located at github just follow the link.
If you have any problems try to run this command from the project folder.

/usr/bin/eslint --config /some/path/.eslintrc --format compact .

In eslint 2.4 I have to just use eslint as the path on ubuntu.


Posted by jockeeriksson on Mar 29, 2016
  

It works on 8.1

It works on netbeans 8.1 on an Ubuntu 14.04 x64. I have not found any info about this plugin on the Internet, not even on the github page, so I'll explain a little bit what you will find:

It adds a new label in options -> editor -> html5/js called 'eslint' to set the path to eslint and to the configuration file you want to use. Then, everytime you save your file eslint checks it and shows with background colors and annotation icons the errors and warnings.

In my case the error icon is not shown, dont know if it is because of some bug in the plugin ro because of some bad configuration on my styles. Anyway, thanks for the plugin!


Posted by adriloma on Mar 28, 2016
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo