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": { "parserOptions": {
"sourceType": "module", "sourceType": "module",
"project": "./tsconfig.json" "project": "./tsconfig.json"
}, },
"ignorePatterns": ["src/Tests/*"], "ignorePatterns": ["src/Tests/*"],
"rules": { "rules": {
"indent": ["error", "tab", { "SwitchCase": 1 }], "camelcase": "off",
"indent": "off",
"@typescript-eslint/no-explicit-any": [ "@typescript-eslint/no-explicit-any": [
"warn", "warn",
{ {
@@ -22,10 +24,16 @@
"space-before-function-paren": [ "space-before-function-paren": [
"error", "error",
{ {
"anonymous": "never", "anonymous": "always",
"named": "never", "named": "never",
"asyncArrow": "always" "asyncArrow": "always"
} }
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"caughtErrors": "none"
}
] ]
} }
} }

View File

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

View File

@@ -58,6 +58,8 @@
"@typescript-eslint/eslint-plugin": "^8.32.0", "@typescript-eslint/eslint-plugin": "^8.32.0",
"conventional-changelog-cli": "^2.2.2", "conventional-changelog-cli": "^2.2.2",
"eslint": "^8.0.0", "eslint": "^8.0.0",
"eslint-config-prettier": "^10.1.2",
"eslint-plugin-prettier": "^5.4.0",
"jest": "^29.7.0", "jest": "^29.7.0",
"jimp": "^0.16.1", "jimp": "^0.16.1",
"json": "^11.0.0", "json": "^11.0.0",