-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
0 parents
commit a891d6e
Showing
160 changed files
with
7,455 additions
and
0 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,11 @@ | ||
root=true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{js,ts}] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 4 |
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,2 @@ | ||
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,173 @@ | ||
{ | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
"env": { | ||
"node": true, | ||
"es6": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { "ecmaVersion": 2018, "sourceType": "module" }, | ||
"rules": { | ||
"no-extra-parens": ["warn", "all", { | ||
"nestedBinaryExpressions": false | ||
}], | ||
"valid-jsdoc": ["warn", { | ||
"requireReturn": false, | ||
"requireReturnDescription": false, | ||
"prefer": { | ||
"arg": "param", | ||
"argument": "param", | ||
"prop": "property", | ||
"constructor": "class", | ||
"augments": "extends", | ||
"fires": "emits", | ||
"var": "member", | ||
"yield": "yields", | ||
"return": "returns", | ||
"exception": "throws", | ||
"virtual": "abstract" | ||
}, | ||
"preferType": { | ||
"String": "string", | ||
"Number": "number", | ||
"Boolean": "boolean", | ||
"Symbol": "symbol", | ||
"function": "Function", | ||
"object": "Object", | ||
"date": "Date", | ||
"error": "Error" | ||
} | ||
}], | ||
"@typescript-eslint/indent": ["error", "tab"], | ||
"accessor-pairs": "warn", | ||
"array-callback-return": "error", | ||
"complexity": "warn", | ||
"curly": ["error", "multi-line", "consistent"], | ||
"dot-location": ["error", "property"], | ||
"dot-notation": "error", | ||
"eqeqeq": "error", | ||
"no-console": ["error", { "allow": ["log", "warn", "error"] }], | ||
"no-empty-function": "error", | ||
"no-floating-decimal": "error", | ||
"no-implied-eval": "error", | ||
"no-lone-blocks": "error", | ||
"no-multi-spaces": "error", | ||
"no-new-func": "error", | ||
"no-new-wrappers": "error", | ||
"no-new": "error", | ||
"no-octal-escape": "error", | ||
"no-return-assign": "error", | ||
"no-self-compare": "error", | ||
"no-sequences": "error", | ||
"no-unmodified-loop-condition": "error", | ||
"no-unused-expressions": "error", | ||
"no-useless-call": "error", | ||
"no-useless-concat": "error", | ||
"no-useless-escape": "error", | ||
"no-void": "error", | ||
"no-warning-comments": "warn", | ||
"wrap-iife": "error", | ||
"yoda": "error", | ||
|
||
"no-label-var": "error", | ||
"no-shadow": "error", | ||
"no-undef-init": "error", | ||
|
||
"callback-return": "error", | ||
"handle-callback-err": "error", | ||
"no-mixed-requires": "error", | ||
"no-new-require": "error", | ||
"no-path-concat": "error", | ||
|
||
"array-bracket-spacing": "error", | ||
"block-spacing": "error", | ||
"brace-style": ["error", "1tbs", { "allowSingleLine": true }], | ||
"camelcase": "error", | ||
"comma-dangle": "error", | ||
"comma-spacing": "error", | ||
"comma-style": "error", | ||
"computed-property-spacing": "error", | ||
"consistent-this": "error", | ||
"eol-last": "error", | ||
"func-names": "error", | ||
"func-style": ["error", "declaration", { "allowArrowFunctions": true }], | ||
"id-length": ["error", { "exceptions": ["i", "j", "a", "b", "e", "r", "m", "c"] }], | ||
"indent": [0, 4, { "SwitchCase": 1 }], | ||
"key-spacing": "error", | ||
"keyword-spacing": ["error", { | ||
"overrides": { | ||
"if": { "after": true }, | ||
"for": { "after": true }, | ||
"while": { "after": true }, | ||
"catch": { "after": true }, | ||
"switch": { "after": true } | ||
} | ||
}], | ||
"max-depth": "error", | ||
"max-len": ["error", 200, 2], | ||
"max-nested-callbacks": ["error", { "max": 4 }], | ||
"max-statements-per-line": ["error", { "max": 2 }], | ||
"new-cap": "error", | ||
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 6 }], | ||
"no-array-constructor": "error", | ||
"no-bitwise": "warn", | ||
"no-lonely-if": "error", | ||
"no-mixed-operators": "error", | ||
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }], | ||
"no-new-object": "error", | ||
"no-spaced-func": "error", | ||
"no-trailing-spaces": "error", | ||
"no-unneeded-ternary": ["error", { "defaultAssignment": false }], | ||
"no-whitespace-before-property": "error", | ||
"object-curly-newline": "error", | ||
"object-curly-spacing": ["error", "always"], | ||
"operator-assignment": "error", | ||
"operator-linebreak": [ | ||
"error", | ||
"before", | ||
{ | ||
"overrides": { | ||
"+": "after", | ||
"-": "after" | ||
} | ||
} | ||
], | ||
"padded-blocks": ["error", { "classes": "always", "blocks": "never", "switches": "never" }], | ||
"quote-props": ["error", "as-needed"], | ||
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }], | ||
"semi-spacing": "error", | ||
"semi": "error", | ||
"space-before-blocks": "error", | ||
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}], | ||
"space-in-parens": "error", | ||
"space-infix-ops": "error", | ||
"space-unary-ops": "error", | ||
"spaced-comment": "error", | ||
"unicode-bom": "error", | ||
|
||
"arrow-body-style": "error", | ||
"arrow-spacing": "error", | ||
"no-duplicate-imports": "error", | ||
"no-useless-computed-key": "error", | ||
"no-useless-constructor": "error", | ||
"prefer-arrow-callback": "error", | ||
"prefer-const": "error", | ||
"prefer-destructuring": ["error", { | ||
"VariableDeclarator": { | ||
"array": false, | ||
"object": true | ||
}, | ||
"AssignmentExpression": { | ||
"array": true, | ||
"object": true | ||
} | ||
}, { | ||
"enforceForRenamedProperties": false | ||
}], | ||
"prefer-rest-params": "error", | ||
"prefer-spread": "error", | ||
"prefer-template": "error", | ||
"rest-spread-spacing": "error", | ||
"template-curly-spacing": "error", | ||
"yield-star-spacing": "error" | ||
} | ||
} |
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,13 @@ | ||
Hi! Welcome to Steve's contribution guide. | ||
|
||
**The issue tracker is *only* for bugs/feature requests.** If you have a question about how to use Steve, or about how he works, ask Jonathan#0412 or BoedJ#5476 on Discord. | ||
|
||
Feel free to fork this repo and submit a pull request! | ||
|
||
### Running Steve Locally | ||
Follow the steps in the README, fam. | ||
|
||
### Guidelines | ||
- This is a Steve repo, not a Klasa or Discord.js repo. If you have an idea for improving one of those libraries, submit a PR to one of those repositories. | ||
- Any contributions should follow our ESLint rules and not produce any linter errors, even if that means you need to disable a rule for a single line. | ||
- Contributions should ideally add features that would be useful for a large number of our users, but if you have some random wild idea, we won't stop you. |
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,12 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [jwford] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: koalawranglers | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
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,17 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to reduce Steve suck | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
What exactly did you do to produce this bug? We can't fix it if we don't know how to make it happen. | ||
|
||
**Expected behavior** | ||
What *should* have happened? |
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,10 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for Steve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**What would you like Steve to do?** |
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 @@ | ||
|
||
name: Lint | ||
on: [push, pull_request] | ||
jobs: | ||
lint: | ||
name: ESLint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Node v12 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run ESLint | ||
run: npm test |
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,110 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# Next.js build output | ||
.next | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and *not* Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# bot config | ||
config.ts | ||
|
||
# lavalink | ||
lavalink/application.yml |
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,8 @@ | ||
{ | ||
"editor.detectIndentation": false, | ||
"editor.insertSpaces": false, | ||
"editor.tabSize": 4, | ||
"eslint.validate": ["typescript"], | ||
"typescript.tsdk": "node_modules\\typescript\\lib", | ||
"typescript.preferences.quoteStyle": "single" | ||
} |
Oops, something went wrong.