Community
    • 登入

    Is there a javascript linter which recognises async/await?

    已排程 已置頂 已鎖定 已移動 Notepad++ & Plugin Development
    lintjshintjavascriptjslint
    4 貼文 2 Posters 2.4k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • talkingnewsT
      talkingnews
      最後由 編輯

      I’m trying to find a linter which works nice and easily like http://jslintnpp.sourceforge.net/ does.
      But that says “Last Update: 2016-08-01” and it chokes on async/await.
      I’ve tried putting a new jshint binary in place, but it doesn’t seem to work.
      I like the ease of jslint because I can just hit CTRL-SHIFT-F5 and it checks then, rather than having to it constantly check and clutter up the line numbers along the side.

      Scott SumnerS 1 條回覆 最後回覆 回覆 引用 1
      • Scott SumnerS
        Scott Sumner @talkingnews
        最後由 編輯

        @talkingnews

        See here.

        1 條回覆 最後回覆 回覆 引用 0
        • talkingnewsT
          talkingnews
          最後由 編輯

          Apologies - let me rephrase it better to make it clearer this is a Notepad++ plugin question:

          Hi there, I am using Notepad++ 7.5.7 Windows 32 bit binary.
          Using Notepad++'s plugin manager, I am using a Notepad++ plugin called JSLint based at https://sourceforge.net/projects/jslintnpp/. Unfortunately, it ceased development over 2 years ago and there has only been one support ticket in 3 years.

          Therefore, I was wondering if someone else had picked up this Notepad++ Plugin development to update it and support the current version of Javascript, even if it does not appear in official plugin manager yet (have looked on Github, Sourceforge etc).

          Thanks!

          1 條回覆 最後回覆 回覆 引用 3
          • talkingnewsT
            talkingnews
            最後由 編輯

            Found one! https://sourceforge.net/projects/notepad-linter/
            Takes a little wrangling to get the xml file right, I’m using the config below. Turns out hardly anyone uses jslint or jshint anymore ( http://www.npmtrends.com/eslint-vs-jscs-vs-jshint-vs-jslint ) so this is great!
            But it’s NOT in the plugin library! You need to install manually.

            <?xml version="1.0" encoding="utf-8" ?>
            <NotepadPlus>
              <linter extension=".js" command="C:\Users\jonski\AppData\Roaming\npm\eslint.cmd --format=checkstyle"/>
            </NotepadPlus>
            
            1 條回覆 最後回覆 回覆 引用 0
            • 第一個貼文
              最後的貼文
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors