Skip to content

Commit c959b6a

Browse files
Adding linter and formatter
1 parent 60b9152 commit c959b6a

20 files changed

Lines changed: 1123 additions & 71 deletions
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
NODE_ENV="dev"
2+
13
SLACK_BOT_TOKEN=
24
SLACK_SIGNING_SECRET=
35
SLACK_APP_TOKEN=
4-
DEV_URI=
5-
PROD_URI=
6+
7+
DATABASE_URI=
8+
69
FORM_TRACKER_ID=
710
TRACKER_SHEET_NAME=
811
FORM_INFO_SHEET_NAME=
12+
913
PORT=3000

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore artifacts:
2+
build
3+
coverage

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,7 @@ Big Red Bot is an internal tool used by AppDev to boost member productivity and
3030

3131
### Configuration
3232

33-
1. Create a `.env` file in the root directory with the following variables:
34-
35-
```
36-
SLACK_BOT_TOKEN=xoxb-your-bot-token
37-
SLACK_SIGNING_SECRET=your-signing-secret
38-
SLACK_APP_TOKEN=xapp-your-app-token
39-
MONGODB_URI=your-mongodb-connection-string
40-
PORT=3000
41-
```
33+
1. Create a `.env` file in the root directory by copying the `.env.template` and populating the values.
4234

4335
2. Add your Google Service Account credentials:
4436
- Place your `service_account.json` file in the root directory

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ services:
44
env_file: .env
55
ports:
66
- "3000:3000"
7-
- "8000:8000"
87
volumes:
98
- ./service_account.json:/usr/app/service_account.json:ro
109
restart: on-failure

eslint.config.mts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import tseslint from "typescript-eslint";
4+
import { defineConfig } from "eslint/config";
5+
6+
export default defineConfig([
7+
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.browser } },
8+
tseslint.configs.recommended,
9+
]);

0 commit comments

Comments
 (0)