Skip to content

Commit

Permalink
Define minimum node version
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Nov 2, 2021
1 parent e1d1a7a commit 3a9625c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Eslint support for Sublime's LSP plugin provided through [vscode-eslint](https:/
* Install [LSP](https://packagecontrol.io/packages/LSP) and `LSP-eslint` from Package Control.
* Restart Sublime.

The server requires the Node runtime to be at version 14 or later.

### Configuration

Open configuration file using command palette with `Preferences: LSP-eslint Settings` command or opening it from the Sublime menu.
Expand Down
6 changes: 5 additions & 1 deletion plugin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from LSP.plugin.core.typing import Any, Callable, Dict, Literal, Optional, Set
from LSP.plugin.core.typing import Any, Callable, Dict, Literal, Optional, Set, Tuple
from LSP.plugin import uri_to_filename
from LSP.plugin import WorkspaceFolder
from lsp_utils import notification_handler
Expand Down Expand Up @@ -27,6 +27,10 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
self._probe_failed = set() # type: Set[str]

@classmethod
def minimum_node_version(cls) -> Tuple[int, int, int]:
return (14, 0, 0)

@notification_handler('eslint/status')
def handle_status(self, params: Any) -> None:
pass
Expand Down

0 comments on commit 3a9625c

Please sign in to comment.