chore: adjust prettier and eslint config

This commit is contained in:
canove
2025-05-06 11:47:35 -03:00
parent 8aee55bc83
commit 04afa20244
3 changed files with 13 additions and 4 deletions

View File

@@ -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"
}
]
}
}

View File

@@ -1,7 +1,6 @@
lib
coverage
*.lock
.eslintrc.json
src/WABinary/index.ts
WAProto
WASignalGroup

View File

@@ -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",