From 04afa2024444b49bae5fbafb53b9a30b3c873542 Mon Sep 17 00:00:00 2001 From: canove Date: Tue, 6 May 2025 11:47:35 -0300 Subject: [PATCH] chore: adjust prettier and eslint config --- .eslintrc.json | 14 +++++++++++--- .prettierignore | 1 - package.json | 2 ++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 70d16ea..6f7de57 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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" + } ] } } diff --git a/.prettierignore b/.prettierignore index 672a30c..9af4195 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,7 +1,6 @@ lib coverage *.lock -.eslintrc.json src/WABinary/index.ts WAProto WASignalGroup diff --git a/package.json b/package.json index b30d1bf..f7fa475 100644 --- a/package.json +++ b/package.json @@ -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",