mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: add prettier and editorconfig
chore: update deps
This commit is contained in:
5
.editorconfig
Normal file
5
.editorconfig
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 2
|
||||||
@@ -1,29 +1,31 @@
|
|||||||
{
|
{
|
||||||
"extends": "@whiskeysockets",
|
"extends": "@whiskeysockets",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"project": "./tsconfig.json"
|
"project": "./tsconfig.json"
|
||||||
},
|
},
|
||||||
"ignorePatterns": ["src/Tests/*"],
|
"ignorePatterns": ["src/Tests/*"],
|
||||||
"rules": {
|
"rules": {
|
||||||
"@typescript-eslint/no-explicit-any": [
|
"indent": ["error", "tab", { "SwitchCase": 1 }],
|
||||||
"warn",
|
"@typescript-eslint/no-explicit-any": [
|
||||||
{
|
"warn",
|
||||||
"ignoreRestArgs": true
|
{
|
||||||
}
|
"ignoreRestArgs": true
|
||||||
],
|
}
|
||||||
"@typescript-eslint/no-inferrable-types": [
|
],
|
||||||
"warn"
|
"@typescript-eslint/no-inferrable-types": ["warn"],
|
||||||
],
|
"@typescript-eslint/no-redundant-type-constituents": ["warn"],
|
||||||
"@typescript-eslint/no-redundant-type-constituents": [
|
"@typescript-eslint/no-unnecessary-type-assertion": ["warn"],
|
||||||
"warn"
|
"no-restricted-syntax": "off",
|
||||||
],
|
"keyword-spacing": "off",
|
||||||
"@typescript-eslint/no-unnecessary-type-assertion": [
|
"implicit-arrow-linebreak": ["off"],
|
||||||
"warn"
|
"space-before-function-paren": [
|
||||||
],
|
"error",
|
||||||
"no-restricted-syntax": "off",
|
{
|
||||||
"keyword-spacing": [
|
"anonymous": "never",
|
||||||
"warn"
|
"named": "never",
|
||||||
]
|
"asyncArrow": "always"
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1 +1,9 @@
|
|||||||
*
|
lib
|
||||||
|
coverage
|
||||||
|
*.lock
|
||||||
|
.eslintrc.json
|
||||||
|
src/WABinary/index.ts
|
||||||
|
WAProto
|
||||||
|
WASignalGroup
|
||||||
|
Example/Example.ts
|
||||||
|
docs
|
||||||
|
|||||||
11
.prettierrc
Normal file
11
.prettierrc
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"useTabs": true,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"semi": false,
|
||||||
|
"singleQuote": true,
|
||||||
|
"jsxSingleQuote": true,
|
||||||
|
"bracketSpacing": true,
|
||||||
|
"arrowParens": "avoid",
|
||||||
|
"printWidth": 120,
|
||||||
|
"trailingComma": "none"
|
||||||
|
}
|
||||||
@@ -55,16 +55,17 @@
|
|||||||
"@types/jest": "^27.5.1",
|
"@types/jest": "^27.5.1",
|
||||||
"@types/node": "^16.0.0",
|
"@types/node": "^16.0.0",
|
||||||
"@types/ws": "^8.0.0",
|
"@types/ws": "^8.0.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",
|
||||||
"jest": "^27.0.6",
|
"jest": "^29.7.0",
|
||||||
"jimp": "^0.16.1",
|
"jimp": "^0.16.1",
|
||||||
"json": "^11.0.0",
|
"json": "^11.0.0",
|
||||||
"link-preview-js": "^3.0.0",
|
"link-preview-js": "^3.0.0",
|
||||||
"open": "^8.4.2",
|
"open": "^8.4.2",
|
||||||
"release-it": "^15.10.3",
|
"release-it": "^15.10.3",
|
||||||
"sharp": "^0.32.6",
|
"sharp": "^0.32.6",
|
||||||
"ts-jest": "^27.0.3",
|
"ts-jest": "^29.3.2",
|
||||||
"ts-node": "^10.8.1",
|
"ts-node": "^10.8.1",
|
||||||
"typedoc": "^0.27.9",
|
"typedoc": "^0.27.9",
|
||||||
"typedoc-plugin-markdown": "4.4.2",
|
"typedoc-plugin-markdown": "4.4.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user