We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3da456 commit 02af1caCopy full SHA for 02af1ca
packages/rslint/src/service.ts
@@ -63,11 +63,11 @@ export class RSLintService {
63
private expectedSize: number | null;
64
65
constructor(options: RSlintOptions = {}) {
66
+ const defaultPath = `@rslint/${platform()}-${arch()}/bin`;
67
+
68
this.nextMessageId = 1;
69
this.pendingMessages = new Map();
- this.rslintPath =
- options.rslintPath ||
70
- require.resolve(`@rslint/${platform()}-${arch()}/bin`);
+ this.rslintPath = options.rslintPath || require.resolve(defaultPath);
71
72
this.process = spawn(this.rslintPath, ['--api'], {
73
stdio: ['pipe', 'pipe', 'inherit'],
0 commit comments