<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 11 August 2016 at 00:06, Colomban Wendling <span dir="ltr"><<a href="mailto:lists.ban@herbesfolles.org" target="_blank">lists.ban@herbesfolles.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi,<br>
<span class=""><br>
Le 10/08/2016 à 23:58, Abel a écrit :<br></span><span class=""><br>
</span>If it provides a command-line interface (which it seems), you likely can<br>
call it as a build command (see the manual).  Using a linter as a build<br>
command is very easy: just configure the build command appropriately.<br>
There already are a few filtypes that come with a linter configured --<br>
including JavaScript, using jshint -- so you can base yours on that.<br></blockquote><div> </div><div>Thank you! That's a good point to start from.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
Complexity for making it a plugin (so potentially getting more 'live'<br>
feedback) will highly depend on whether that thing has an API, and how<br>
it works. </blockquote><div><br></div><div>I previously received this answer from the eslint maling list:</div><div><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="font-size:12.8px">If the editor can execute Node.js directly (like Atom or Visual Studio Code), you can use Node.js API: </span><a href="http://eslint.org/docs/developer-guide/nodejs-api" target="_blank" style="font-size:12.8px">http://eslint.org/docs/<wbr>developer-guide/nodejs-api<br></a>Otherwise (like Sublime Text or Vim), maybe you can use CLI and communicate by stdio: <a href="http://eslint.org/docs/user-guide/command-line-interface" target="_blank">http://eslint.org/<wbr>docs/user-guide/command-line-<wbr>interface</a></blockquote><div><br></div><div>But if there are plugins for sublime or vim using CLI, it seems that the CLI way is not that bad.</div><div>BTW, I forgot to link to the list of known editors integrations with ESLint:<a href="http://eslint.org/docs/user-guide/integrations#editors"> http://eslint.org/docs/user-guide/integrations#editors</a></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>Also, for the moment you pretty much need to write Geany<br>plugins in C or C++, although Thomas' Peasy plugin [1] adds support for<br>several languages (include JS I'd believe), and it's getting closer to<br>stability. </blockquote><div><br></div><div>What about Vala?</div><div>it's getting closer to stability means that it'll be soon inside Geany trunk??</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
But no, I'm not aware of anyone having already written something with<br>
this eslint thing.<br>
<br>
<br>
Cheers,<br>
Colomban<br></blockquote><div><br></div><div>Thank you Colomban!! </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
<br>
[1] <a href="https://github.com/kugel-/peasy/" rel="noreferrer" target="_blank">https://github.com/kugel-/<wbr>peasy/</a><br>
______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" rel="noreferrer" target="_blank">https://lists.geany.org/cgi-<wbr>bin/mailman/listinfo/devel</a><br>
</blockquote></div><br></div></div>