Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit a84d542

Browse files
committed
chore: ignore class-methods-use-this
1 parent fad513b commit a84d542

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ class RustLanguageClient extends AutoLanguageClient {
485485
this._refreshActiveOverrides()
486486
}
487487

488+
/* eslint-disable class-methods-use-this */
488489
getGrammarScopes() {
489490
return ["source.rust", "rust"]
490491
}
@@ -506,6 +507,7 @@ class RustLanguageClient extends AutoLanguageClient {
506507
!filePath.includes("/target/release/")
507508
)
508509
}
510+
/* eslint-enable class-methods-use-this */
509511

510512
// Kill servers fast (#196)
511513
shutdownGracefully = false
@@ -580,6 +582,7 @@ class RustLanguageClient extends AutoLanguageClient {
580582
* @param {(ls.Command | ls.CodeAction)[]} actions
581583
* @returns {(ls.Command | ls.CodeAction)[]} Filtered actions
582584
*/
585+
/* eslint-disable-next-line class-methods-use-this */
583586
filterCodeActions(actions) {
584587
return actions.filter((a) => !a.command || a.command.command !== "rust-analyzer.applySourceChange")
585588
}

lib/rust-project.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class RustProject {
114114
}
115115

116116
// Default Rls config according to package settings & Rls defaults
117+
/* eslint-disable-next-line class-methods-use-this */
117118
defaultConfig() {
118119
return {}
119120
}

0 commit comments

Comments
 (0)