-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update NPM packages - Move to ESLint flat config - Add funding button - Rename clientID to ClientId - Rename maxBadges to MaxBadges - Fix REST API processing being inside console.log()
- Loading branch information
Showing
10 changed files
with
137 additions
and
154 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 @@ | ||
github: someaspy |
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,7 +1,7 @@ | ||
{ | ||
"clientID": "BotID", | ||
"ClientId": "Bot ID", | ||
"DatabaseName": "GlobalBadges", | ||
"CollectionName": "database", | ||
"maxBadges": 5, | ||
"MaxBadges": 5, | ||
"promptChannel": "ChannelID" | ||
} |
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,30 @@ | ||
import ts from '@typescript-eslint/eslint-plugin'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import json from 'eslint-plugin-json'; | ||
|
||
export default { | ||
parser: tsParser, | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
extraFileExtensions: ['.json'], | ||
|
||
}, | ||
plugins: { | ||
'@typescript-eslint': ts, | ||
ts, | ||
json | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"plugin:json/recommended", | ||
], | ||
rules: { | ||
semi: ["error", "always"], | ||
"prefer-const": ["error"], | ||
"@typescript-eslint/no-non-null-assertion": "off" | ||
}, | ||
files: ["**/*.ts", "**/*.json"] | ||
}; |
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
Oops, something went wrong.