Skip to content

Commit

Permalink
🍺 init ts to project
Browse files Browse the repository at this point in the history
  • Loading branch information
itchakhun committed Aug 25, 2021
1 parent efad474 commit 50914f6
Show file tree
Hide file tree
Showing 9 changed files with 1,313 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": [
"plugin:prettier/recommended", // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
"prettier/@typescript-eslint" // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
.vscode
.env.yaml
.env.yaml
dist/
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"arrowParens": "avoid"
}
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const axios = require("axios");

const GREY = 9545382;
const BLUE = 39393;
// const BLUE = 39393
const RED = 16333359;
const GREEN = 53606;
const YELLOW = 16302848;
Expand All @@ -14,7 +14,7 @@ const SUCCESS_IMG = "https://img.icons8.com/flat_round/2x/checkmark.png";
const addFeild = (inline = false) =>
(name) => (value) => ({ inline, name, value });

module.exports.subscribeDiscord = function (event, context) {
module.exports.subscribeDiscord = function (event) {
const build = eventToBuild(event.data);
const status = [
"WORKING",
Expand Down
Loading

0 comments on commit 50914f6

Please sign in to comment.