mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
style: fixed and relaxed style lint
This commit is contained in:
@@ -7,3 +7,4 @@ src/WABinary/index.ts
|
|||||||
WAProto
|
WAProto
|
||||||
WASignalGroup
|
WASignalGroup
|
||||||
Example/test.ts
|
Example/test.ts
|
||||||
|
docs
|
||||||
|
|||||||
@@ -1,3 +1,18 @@
|
|||||||
{
|
{
|
||||||
"extends": "@adiwajshing"
|
"extends": "@adiwajshing",
|
||||||
|
"rules": {
|
||||||
|
"@typescript-eslint/no-explicit-any": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"ignoreRestArgs": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"no-restricted-syntax": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"selector": "TSEnumDeclaration",
|
||||||
|
"message": "Don't declare enums, use literals instead"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -582,11 +582,12 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
|||||||
} else if(message.listMessage) {
|
} else if(message.listMessage) {
|
||||||
const type = message.listMessage.listType
|
const type = message.listMessage.listType
|
||||||
if(!type) {
|
if(!type) {
|
||||||
throw new Boom("Expected list type inside message")
|
throw new Boom('Expected list type inside message')
|
||||||
}
|
}
|
||||||
return {v: '2', type: ListType[type].toLowerCase()};
|
|
||||||
|
return { v: '2', type: ListType[type].toLowerCase() }
|
||||||
} else {
|
} else {
|
||||||
return {};
|
return {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user