-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️ upgrade to eslint 9, prettier 3 and migrate configs (#740)
* ⬆️ upgrade to eslint 9 * ⬆️ upgrade to prettier 3 and migrate config to mjs * 🎨 apply format
- Loading branch information
Showing
235 changed files
with
37,437 additions
and
36,923 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
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
# next.js | ||
.next | ||
public | ||
node_modules | ||
|
||
# Ignore artifacts: | ||
build | ||
coverage | ||
|
||
# Ignore all HTML files: | ||
**/*.html | ||
|
||
# IDEs | ||
.idea | ||
.vscode |
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
// prettier.config.js, .prettierrc.js, prettier.config.mjs, or .prettierrc.mjs | ||
|
||
/** | ||
* @see https://prettier.io/docs/en/configuration.html | ||
* @type {import("prettier").Config} | ||
*/ | ||
const config = { | ||
trailingComma: 'es5', | ||
tabWidth: 4, | ||
semi: false, | ||
singleQuote: true, | ||
} | ||
|
||
export default config |
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,29 +1,29 @@ | ||
const { App, ExpressReceiver, LogLevel } = require("@slack/bolt"); | ||
const { homePage } = require("./src/home"); | ||
const { commandsHandler } = require("./src/commands/commandsHandler"); | ||
const { actionsHandler } = require("./src/actions/actionsHandler"); | ||
const { viewHandler } = require("./src/views/viewHandler"); | ||
const { monthlyCron } = require("./src/cron/monthlyCron"); | ||
const { getAllTopics } = require("./src/lib/requestsHasura/getAllTopics"); | ||
const { App, ExpressReceiver, LogLevel } = require('@slack/bolt') | ||
const { homePage } = require('./src/home') | ||
const { commandsHandler } = require('./src/commands/commandsHandler') | ||
const { actionsHandler } = require('./src/actions/actionsHandler') | ||
const { viewHandler } = require('./src/views/viewHandler') | ||
const { monthlyCron } = require('./src/cron/monthlyCron') | ||
const { getAllTopics } = require('./src/lib/requestsHasura/getAllTopics') | ||
|
||
const receiver = new ExpressReceiver({ | ||
signingSecret: process.env.BOT_SLACK_SIGNING_SECRET, | ||
logLevel: LogLevel.INFO, | ||
}); | ||
signingSecret: process.env.BOT_SLACK_SIGNING_SECRET, | ||
logLevel: LogLevel.INFO, | ||
}) | ||
|
||
const app = new App({ | ||
token: process.env.BOT_SLACK_BOT_TOKEN, | ||
logLevel: LogLevel.INFO, | ||
receiver, | ||
}); | ||
token: process.env.BOT_SLACK_BOT_TOKEN, | ||
logLevel: LogLevel.INFO, | ||
receiver, | ||
}) | ||
|
||
(async () => { | ||
homePage(app); | ||
actionsHandler(app); | ||
commandsHandler(app); | ||
viewHandler(app); | ||
getAllTopics(); | ||
await app.start({ port: process.env.BOT_PORT }); | ||
await monthlyCron(app); | ||
console.log("⚡️ Skillz-Bot started"); | ||
})(); | ||
;(async () => { | ||
homePage(app) | ||
actionsHandler(app) | ||
commandsHandler(app) | ||
viewHandler(app) | ||
getAllTopics() | ||
await app.start({ port: process.env.BOT_PORT }) | ||
await monthlyCron(app) | ||
console.log('⚡️ Skillz-Bot started') | ||
})() |
Oops, something went wrong.