mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: adjust prettier and eslint config
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
{
|
||||
"extends": "@whiskeysockets",
|
||||
"extends": ["@whiskeysockets", "plugin:prettier/recommended"],
|
||||
"plugins": ["prettier"],
|
||||
"parserOptions": {
|
||||
"sourceType": "module",
|
||||
"project": "./tsconfig.json"
|
||||
},
|
||||
"ignorePatterns": ["src/Tests/*"],
|
||||
"rules": {
|
||||
"indent": ["error", "tab", { "SwitchCase": 1 }],
|
||||
"camelcase": "off",
|
||||
"indent": "off",
|
||||
"@typescript-eslint/no-explicit-any": [
|
||||
"warn",
|
||||
{
|
||||
@@ -22,10 +24,16 @@
|
||||
"space-before-function-paren": [
|
||||
"error",
|
||||
{
|
||||
"anonymous": "never",
|
||||
"anonymous": "always",
|
||||
"named": "never",
|
||||
"asyncArrow": "always"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
"caughtErrors": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
lib
|
||||
coverage
|
||||
*.lock
|
||||
.eslintrc.json
|
||||
src/WABinary/index.ts
|
||||
WAProto
|
||||
WASignalGroup
|
||||
|
||||
@@ -58,6 +58,8 @@
|
||||
"@typescript-eslint/eslint-plugin": "^8.32.0",
|
||||
"conventional-changelog-cli": "^2.2.2",
|
||||
"eslint": "^8.0.0",
|
||||
"eslint-config-prettier": "^10.1.2",
|
||||
"eslint-plugin-prettier": "^5.4.0",
|
||||
"jest": "^29.7.0",
|
||||
"jimp": "^0.16.1",
|
||||
"json": "^11.0.0",
|
||||
|
||||
Reference in New Issue
Block a user