You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-29 16:43:09 +03:00
Add google eslint rules as a base
Remove some we don't care about. Set some other ones we do care about but don't currently adhere to to warn. Set the max warnings threshold to the current number of warnings, so we don't introduce more of them. Fix a bunch of legit lint errors and add exceptions to various places in the test code that does funny things with 'this'.
This commit is contained in:
@@ -357,8 +357,6 @@ MatrixClient.prototype.getStoredDevicesForUser = function(userId) {
|
||||
return this._crypto.getStoredDevicesForUser(userId) || [];
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Mark the given device as verified
|
||||
*
|
||||
@@ -377,7 +375,6 @@ MatrixClient.prototype.setDeviceVerified = function(userId, deviceId, verified)
|
||||
_setDeviceVerification(this, userId, deviceId, verified, null);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Mark the given device as blocked/unblocked
|
||||
*
|
||||
@@ -1500,7 +1497,7 @@ MatrixClient.prototype.getPresenceList = function(callback) {
|
||||
* @return {module:http-api.MatrixError} Rejects: with an error response.
|
||||
*/
|
||||
MatrixClient.prototype.inviteToPresenceList = function(callback, userIds) {
|
||||
var opts = {"invite" : userIds};
|
||||
var opts = {"invite": userIds};
|
||||
return _presenceList(callback, this, opts, "POST");
|
||||
};
|
||||
|
||||
@@ -1512,7 +1509,7 @@ MatrixClient.prototype.inviteToPresenceList = function(callback, userIds) {
|
||||
* @return {module:http-api.MatrixError} Rejects: with an error response.
|
||||
**/
|
||||
MatrixClient.prototype.dropFromPresenceList = function(callback, userIds) {
|
||||
var opts = {"drop" : userIds};
|
||||
var opts = {"drop": userIds};
|
||||
return _presenceList(callback, this, opts, "POST");
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user