Skip to content

Commit 3a9625c

Browse files
committed
Define minimum node version
1 parent e1d1a7a commit 3a9625c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Eslint support for Sublime's LSP plugin provided through [vscode-eslint](https:/
77
* Install [LSP](https://packagecontrol.io/packages/LSP) and `LSP-eslint` from Package Control.
88
* Restart Sublime.
99

10+
The server requires the Node runtime to be at version 14 or later.
11+
1012
### Configuration
1113

1214
Open configuration file using command palette with `Preferences: LSP-eslint Settings` command or opening it from the Sublime menu.

plugin.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from LSP.plugin.core.typing import Any, Callable, Dict, Literal, Optional, Set
1+
from LSP.plugin.core.typing import Any, Callable, Dict, Literal, Optional, Set, Tuple
22
from LSP.plugin import uri_to_filename
33
from LSP.plugin import WorkspaceFolder
44
from lsp_utils import notification_handler
@@ -27,6 +27,10 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
2727
super().__init__(*args, **kwargs)
2828
self._probe_failed = set() # type: Set[str]
2929

30+
@classmethod
31+
def minimum_node_version(cls) -> Tuple[int, int, int]:
32+
return (14, 0, 0)
33+
3034
@notification_handler('eslint/status')
3135
def handle_status(self, params: Any) -> None:
3236
pass

0 commit comments

Comments
 (0)