Skip to content

Commit a998fdf

Browse files
authored
Add Yarn 2 instructions (sublimelsp#34)
1 parent dfcff93 commit a998fdf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,22 @@ ESLint configuration options. Refer to [documentation for VSCode extension](http
2626
Q: How to enable linting of Typescript code?
2727

2828
A: Make sure that eslint configuration in your project has `typescript-eslint` plugin configured. See https://github.com/typescript-eslint/typescript-eslint for more information.
29+
30+
Q: How to use this in a Yarn 2 project?
31+
32+
A: Install ESLint in the project, run `yarn dlx @yarnpkg/pnpify --sdk base` ([docs](https://yarnpkg.com/advanced/editor-sdks)) and set `settings.nodePath` to `.yarn/sdks` either in `LSP-eslint`'s settings or, if you have other non-Yarn-2 projects, in your `.sublime-project`:
33+
34+
```json
35+
{
36+
"settings": {
37+
"LSP": {
38+
"LSP-eslint": {
39+
"settings": {
40+
"nodePath": ".yarn/sdks"
41+
}
42+
}
43+
}
44+
}
45+
}
46+
47+
```

0 commit comments

Comments
 (0)