Skip to content

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KTNG-3 committed May 6, 2023
1 parent b74872a commit 25b434a
Show file tree
Hide file tree
Showing 147 changed files with 8,978 additions and 3,987 deletions.
4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
**/*.js
**/*.d.ts
*.js
*.d.ts
35 changes: 23 additions & 12 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,44 @@
"sourceType": "module"
},
"ignorePatterns": [
"/dist/**/*" // Ignore built files.
"build" // Ignore built files
],
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-extra-semi": "warn",
"semi": "warn",
"no-empty-pattern": "warn",
"no-console": "error",

"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unused-vars": "warn", // <--- change to "warn" for checking
"@typescript-eslint/no-unused-vars": "warn",

"no-console": "error",
"no-debugger": "error",
"no-var": "error",
"no-eval": "error",
"no-implied-eval": "error",
"no-new-func": "error",
"no-caller": "error",
"no-delete-var": "error",
"no-invalid-this": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-template": "error",

// better code
"new-cap": "warn", // <-- Start With Upper Case function
"spaced-comment": "warn", // <-- Need Space before comment
"comma-dangle": "warn",
"semi": "warn",
"new-cap": "warn",
"spaced-comment": "warn",
"require-jsdoc": "warn",
"brace-style": "warn"
"brace-style": "warn",
"curly": "warn",
"guard-for-in": "warn",
"no-empty-pattern": "warn",
"no-new-wrappers": "warn",
"valid-jsdoc": ["warn", {
"requireParamDescription": true,
"requireReturnDescription": false,
"requireReturn": true
}],
"valid-typeof": "warn"
},
"settings": {
"allowDefinitionFiles": true
Expand Down
51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: 'Bug Report'
description: What is wrong or needs fixing?
labels: ['bug']
assignees: [ 'KTNG-3' ]
body:
- type: markdown
attributes:
value: |
- Do not share your personal information (token, username, password)
- Make sure it's an issue
- You are using the latest version
- type: textarea
id: description
attributes:
label: 'Description'
description: 'Explain your problem'
render: Markdown
validations:
required: true
- type: textarea
id: code
attributes:
label: 'Code'
description: 'Example of your code'
render: TypeScript
validations:
required: true
- type: textarea
id: error
attributes:
label: 'Error'
description: 'The error that you get'
validations:
required: false
- type: input
id: platform
attributes:
label: 'Platform'
placeholder: 'e.g. Windows 10, repl.it'
- type: input
id: nodejs
attributes:
label: 'Node.js Version'
description: 'node --version'
placeholder: 'e.g. 18.14.0'
- type: input
id: valapi
attributes:
label: '@valapi Version'
description: 'npm --version valorant.ts'
placeholder: 'e.g. 1.4.2'
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Feature Request'
description: I need something new
labels: [ enhancement, question ]
assignees: [ 'KTNG-3' ]
body:
- type: markdown
attributes:
value: |
- Do not share your personal information (token, username, password)
- type: textarea
id: description
attributes:
label: 'What do you need?'
description: 'Explain what is your need, is that problem?'
render: Markdown
validations:
required: true
- type: textarea
id: code
attributes:
label: 'Code'
description: 'Example of your code'
render: TypeScript
validations:
required: false
33 changes: 0 additions & 33 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
contact_links:
- name: Discord Server
url: https://valapi.github.io/url/discord.html
about: Q & A
- name: Documentation
url: https://valapi.github.io/docs/index.html
about: Guide
about: 'Q & A'
url: 'https://valapi.github.io/link/discord'
- name: 'Guide'
about: 'How to use'
url: 'https://valapi.github.io/guide/index.html'
21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
.git/

#nodejs
# nodejs
npm-debug.log*
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
package-lock.json
node_modules/

#env
# env
.env
.env.test
.env.local
.env.test.local
.env.production.local
.env.development.local

#vscode
# vscode
.vscode/

# log
Expand All @@ -31,10 +31,12 @@ npm-debug.log*
*.cache
cache/

*.tmp
*.temp
temp/

dist/
# project
build/

# test
test/
Expand Down
7 changes: 0 additions & 7 deletions .npmignore

This file was deleted.

28 changes: 22 additions & 6 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
.git/
.github/
node_modules/
dist/
test/
.eslintrc.json
package-lock.json

# nodejs
npm-debug.log*
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
package.json
tsconfig.json

# log
logs
*.log
npm-debug.log*

# temp, cache
.npm
.eslintcache
*.tgz
*.tsbuildinfo

# project
LICENSE
tsconfig.tsbuildinfo

build/
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"embeddedLanguageFormatting": "auto",
"printWidth": 10000,
"printWidth": 200,
"requirePragma": false,
"semi": true,
"singleQuote": false,
Expand Down
Loading

0 comments on commit 25b434a

Please sign in to comment.