-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
304 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
process.env.ESLINT_TSCONFIG = "tsconfig.json" | ||
|
||
/** | ||
* @type {import("eslint").Linter.Config} | ||
*/ | ||
module.exports = { | ||
globals: { | ||
NodeJS: true, | ||
NodeListOf: true, | ||
}, | ||
env: { | ||
es2022: true, | ||
node: true, | ||
browser: true, | ||
}, | ||
extends: ["@antfu", "eslint-config-prettier"], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
rules: { | ||
"eol-last": "off", | ||
"quotes": "off", | ||
"semi": ["warn", "never"], | ||
"@stylistic/js/no-tabs": "off", | ||
"@stylistic/ts/indent": "off", | ||
"no-constant-binary-expression": "warn", | ||
"no-undef": "off", | ||
"no-console": "off", | ||
"no-debugger": "warn", | ||
"no-sequences": "off", | ||
"no-import-assign": "off", | ||
"no-extend-native": "off", | ||
"no-trailing-spaces": "warn", | ||
"no-case-declarations": "off", | ||
"no-prototype-builtins": "off", | ||
"no-unused-expressions": "off", | ||
"space-before-function-paren": "off", | ||
"antfu/if-newline": "off", | ||
"antfu/top-level-function": "off", | ||
"@stylistic/js/operator-linebreak": "off", | ||
"@stylistic/ts/brace-style": "off", | ||
"@stylistic/js/multiline-ternary": "off", | ||
"n/prefer-global/process": "off", | ||
"@stylistic/js/no-mixed-spaces-and-tabs": "off", | ||
"no-unused-vars": "off", | ||
"unused-imports/no-unused-vars": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-invalid-this": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/no-unsafe-argument": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"object-curly-newline": [ | ||
"warn", | ||
{ | ||
consistent: true, | ||
multiline: true, | ||
}, | ||
], | ||
"object-curly-spacing": ["warn", "always"], | ||
"array-element-newline": ["warn", "consistent"], | ||
"array-bracket-newline": ["warn", "consistent"], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Contributing | ||
|
||
Follow these guidelines if you'd like to contribute to the project! | ||
|
||
--- | ||
|
||
## Table of Contents | ||
|
||
Read through these guidelines before you get started: | ||
|
||
1. [Issues & Bugs](#issues--bugs) | ||
2. [Submitting Pull Requests](#submitting-pull-requests) | ||
|
||
## Issues & Bugs | ||
|
||
Submit an [issue][1] or [pull request][2] with a fix if you find any bugs in | ||
the project. See [below](#submitting-pull-requests) for instructions on sending | ||
in pull requests! | ||
|
||
When submitting an issue or pull request, make sure you're as detailed as possible | ||
and fill in all answers to questions asked in the templates. For example, an issue | ||
that simply states "X/Y/Z isn't working!" will be closed. | ||
|
||
## Submitting Pull Requests | ||
|
||
Before you do anything, make sure you check the current list of [pull requests][3] | ||
to ensure you aren't duplicating anyone's work. Then, do the following: | ||
|
||
1. Fork the repository and make your changes in a git branch: `git checkout -b my-branch base-branch` | ||
2. Make sure your feature or fix doesn't break the project! Test thoroughly. | ||
3. Commit your changes, and be sure to leave a detailed commit message. | ||
4. Push your branch to your forked repo on GitHub: `git push origin my-branch` | ||
5. [Submit a pull request][3] and hold tight! | ||
6. If any changes are requested by the project maintainers, make them and follow | ||
this process again until the changes are merged in. | ||
|
||
|
||
[1]: https://github.com/Zastinian/HedystiaMD/issues/new | ||
[2]: https://github.com/Zastinian/HedystiaMD/compare | ||
[3]: https://github.com/Zastinian/HedystiaMD/pulls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Submit a feature request or bug report | ||
|
||
Before you submit an issue, check to see if it has [already been reported][1]. | ||
|
||
--- | ||
|
||
Replace any ":question:" below with your information. | ||
|
||
## Development Environment | ||
|
||
- Operating system: :question: | ||
- Browser: :question: | ||
- Project version: :question: | ||
|
||
## Current Behavior | ||
|
||
:question: | ||
|
||
## Expected Behavior | ||
|
||
:question: | ||
|
||
## Steps to Reproduce | ||
|
||
Only fill this in if you are filing a bug report. | ||
|
||
1. :question: | ||
|
||
## Other Relevant Information | ||
|
||
:question: | ||
|
||
[1]: https://github.com/Zastinian/HedystiaMD/issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Submit a pull request | ||
|
||
Thank you for submitting a pull request! To speed up the review process, please ensure that everything below | ||
is true: | ||
|
||
1. This is not a duplicate of an [existing pull request][1]. | ||
2. No existing features have been broken without good reason. | ||
3. Your commit messages are detailed | ||
4. Documentation has been updated to reflect your changes. | ||
5. Tests have been added or updated to reflect your changes. | ||
6. All tests pass. | ||
|
||
--- | ||
|
||
Replace any ":question:" below with information about your pull request. | ||
|
||
## Pull Request Details | ||
|
||
Provide details about your pull request and what it adds, fixes, or changes. | ||
|
||
:question: | ||
|
||
## Breaking Changes | ||
|
||
Describe what features are broken by this pull request and why, if any. | ||
|
||
:question: | ||
|
||
## Issues Fixed | ||
|
||
Enter the issue numbers resolved by this pull request below, if any. | ||
|
||
1. :question: | ||
|
||
## Other Relevant Information | ||
|
||
Provide any other important details below. | ||
|
||
:question: | ||
|
||
[1]: https://github.com/Zastinian/HedystiaMD/pulls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
node_modules/ | ||
.hedystia/ | ||
hedystia/ | ||
hedystia.json | ||
pnpm-lock.yaml | ||
dist/ | ||
package-lock.json | ||
bun.lockb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"**/*.{ts,js,tsx,jsx}": ["eslint --ext", "prettier --check"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pnpm-lock.yaml | ||
package-lock.json | ||
bun.lockb | ||
yarn.lock | ||
node_modules/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** @type {import("prettier").Config} */ | ||
export default { | ||
printWidth: 100, | ||
semi: false, | ||
singleQuote: false, | ||
jsxSingleQuote: false, | ||
quoteProps: "consistent", | ||
tabWidth: 2, | ||
trailingComma: "es5", | ||
useTabs: true, | ||
endOfLine: "lf", | ||
arrowParens: "always", | ||
overrides: [ | ||
{ | ||
files: ["*.json", "*.md", "*.toml", "*.yml"], | ||
options: { | ||
useTabs: false, | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"explorer.fileNesting.enabled": true, | ||
"explorer.fileNesting.expand": false, | ||
"explorer.fileNesting.patterns": { | ||
"package.json": "pnpm-lock.yaml, package-lock.json, yarn.lock, bun.lockb", | ||
".prettierrc.mjs": ".prettierignore", | ||
".eslintrc.cjs": ".lintstagedrc" | ||
}, | ||
"editor.linkedEditing": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "explicit" | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"files.associations": { | ||
"*.svg": "html" | ||
}, | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact" | ||
], | ||
"javascript.format.insertSpaceBeforeFunctionParenthesis": false, | ||
"typescript.format.insertSpaceBeforeFunctionParenthesis": false, | ||
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, | ||
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, | ||
"editor.insertSpaces": false, | ||
"editor.detectIndentation": false, | ||
"tailwindCSS.classAttributes": [ | ||
"class", | ||
"className", | ||
"ngClass", | ||
"class:list" | ||
], | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,56 @@ | ||
{ | ||
"name": "whatsapp-hedystia", | ||
"version": "2.0.0", | ||
"description": "A whatsapp bot that can be used to play music", | ||
"main": "index.js", | ||
"type": "commonjs", | ||
"scripts": { | ||
"start": "node index.js", | ||
"dev": "nodemon index.js" | ||
"dev": "nodemon index.js", | ||
"lint": "eslint --ext .ts,.js,.tsx .", | ||
"lint:fix": "eslint --ext .ts,.js,.tsx . --fix", | ||
"format": "prettier --write src", | ||
"format:check": "prettier --check src", | ||
"prepare": "husky" | ||
}, | ||
"keywords": [ | ||
"baileys", | ||
"hedystia", | ||
"whatsapp" | ||
], | ||
"author": "[email protected]", | ||
"license": "HedystiaMD - license.md", | ||
"license": "ISC", | ||
"dependencies": { | ||
"fluent-ffmpeg": "^2.1.2", | ||
"qrcode-terminal": "^0.12.0", | ||
"whatsapp-web.js": "1.21.0", | ||
"yt-search": "^2.10.4", | ||
"ytdl-core": "^4.11.4" | ||
"@adiwajshing/keyed-db": "0.2.4", | ||
"@hapi/boom": "10.0.1", | ||
"@whiskeysockets/baileys": "6.6.0", | ||
"awesome-phonenumber": "2.68.0", | ||
"file-type": "16.5.3", | ||
"fluent-ffmpeg": "2.1.2", | ||
"formdata-node": "4.4.1", | ||
"jimp": "0.16.1", | ||
"moment-timezone": "0.5.34", | ||
"node-webpmux": "3.1.1", | ||
"pino": "8.11.0", | ||
"qrcode-terminal": "0.12.0", | ||
"wa-sticker-formatter": "4.4.4", | ||
"yt-search": "2.10.4", | ||
"ytdl-core": "^4.11.5" | ||
}, | ||
"devDependencies": { | ||
"@types/fluent-ffmpeg": "^2.1.21", | ||
"@types/node": "^20.4.5", | ||
"@types/qrcode-terminal": "^0.12.0", | ||
"@types/yt-search": "^2.3.2" | ||
"@antfu/eslint-config": "0.43.1", | ||
"@types/jsonwebtoken": "^9.0.6", | ||
"@types/node": "^20.12.7", | ||
"@typescript-eslint/parser": "7.5.0", | ||
"eslint": "8.57.0", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"husky": "9.0.11", | ||
"lint-staged": "15.2.2", | ||
"prettier": "3.2.5" | ||
}, | ||
"directories": { | ||
"handlers": "handlers", | ||
"src": "src" | ||
} | ||
} |