Hi Nicholas, I have created a Github project with a demo to use ESLInt with CodeMirror Lint. See https://github.com/angelozerr/codemirror-lint-eslint
I have tried to explain how to use it (CodeMirror provides a very simple lint feature that you can implement easily). Your demo seems based on Orion editor, so I don't know which PR I could do it. But as I said you, it's very simple to integrate so I think you could do a demo yourself. If you need help, don't hesitate to contact me. Regard's Angelo Le jeudi 29 janvier 2015 21:59:16 UTC+1, Nicholas Zakas a écrit : > > Hi Angelo, > > That looks very nice. I'd love to incorporate that into our demo (but keep > the separate listing of errors we have now as well). The demo code is here: > > https://github.com/eslint/eslint.github.io > > Feel free to create a pull request. > > -N > > On Thu, Jan 29, 2015 at 9:06 AM, Angelo zerr <[email protected] > <javascript:>> wrote: > >> >> >> On Thursday, January 29, 2015 at 5:59:01 PM UTC+1, Nicholas Zakas wrote: >>> >>> Have you seen our demo? >>> http://eslint.org/demo/ >>> >> Cool demo. >> >> My demo with CodeMirror highlight the node where there is an error and >> displays a popup. See screenshot : >> >> >> <https://lh3.googleusercontent.com/-agSWYe1GiYE/VMpoScd7JcI/AAAAAAAACK0/hEYbu8Kt8Zc/s1600/CodeMirrorEslint.png> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>> -N >>> On Jan 29, 2015 6:11 AM, "Angelo zerr" <[email protected]> wrote: >>> >>>> >>>> >>>> On Thursday, January 29, 2015 at 2:32:17 PM UTC+1, Mathias Schreck >>>> wrote: >>>>> >>>>> The problem with ESLint in the browser is that it doesn’t support >>>>> plugins. >>>>> >>>> >>>> To be honnest with you, I have just discovered ESLint. I have created a >>>> simple demo with CodeMirror and wriet a lint addon to play with ESLint >>>> inside a WebBrowser editor. >>>> >>>> I have done that because my goal is to write a tern plugin which uses >>>> ESLInt. >>>> >>>> As Nicholas said "It's a non-goal to have ESLint run in any specific >>>> group of browsers - we really just wanted a demo page so some people could >>>> play with it." >>>> >>>> So if CodeMirror is OK for you, you could use this addon that I have >>>> written (and I think it should be improved too). >>>> >>>> Tell me if you are interested. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "ESLint" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "ESLint" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > ______________________________ > Nicholas C. Zakas > @slicknet > > Author, Professional JavaScript for Web Developers > Buy it at Amazon.com: > http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691/ref=sr_1_3 > -- You received this message because you are subscribed to the Google Groups "ESLint" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
