mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
Indent switch case
This commit is contained in:
@@ -24,6 +24,6 @@ module.exports = {
|
||||
"prefer-template": "warn",
|
||||
"quotes": ["warn", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
|
||||
"no-multiple-empty-lines": ["error", { max: 2, maxEOF: 0 }],
|
||||
"indent": ["warn", 4],
|
||||
"indent": ["warn", 4, { "SwitchCase": 1 }],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -472,6 +472,7 @@ async function updateDataIfVideoDurationChange(videoID: VideoID, service: string
|
||||
|
||||
// Disable max submissions for now
|
||||
// Disable IP ratelimiting for now
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
async function checkRateLimit(userID:string, videoID: VideoID, timeSubmitted: number, hashedIP: string, options: {
|
||||
enableCheckByIP: boolean;
|
||||
enableCheckByUserID: boolean;
|
||||
|
||||
Reference in New Issue
Block a user