Skip to content

Commit

Permalink
biomelint webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Maj committed Sep 4, 2024
1 parent 3d916c0 commit 3182d5a
Show file tree
Hide file tree
Showing 15 changed files with 164 additions and 255 deletions.
1 change: 0 additions & 1 deletion packages/webhook/.eslintignore

This file was deleted.

1 change: 0 additions & 1 deletion packages/webhook/.eslintrc.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/webhook/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
/dist

# coverage
/.nyc_output
/coverage
38 changes: 14 additions & 24 deletions packages/webhook/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Webhook Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--timeout",
"999999",
"--colors",
"${workspaceFolder}/src/*.spec.js"
],
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": [
"<node_internals>/**"
],
"cwd": "${workspaceFolder}"
},
]
}
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Webhook Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": ["--timeout", "999999", "--colors", "${workspaceFolder}/src/*.spec.js"],
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": ["<node_internals>/**"],
"cwd": "${workspaceFolder}"
}
]
}
2 changes: 1 addition & 1 deletion packages/webhook/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"typescript.tsdk": "./node_modules/typescript/lib"
"typescript.tsdk": "./node_modules/typescript/lib"
}
34 changes: 0 additions & 34 deletions packages/webhook/api-extractor.json

This file was deleted.

4 changes: 4 additions & 0 deletions packages/webhook/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"extends": ["../../biome.json"]
}
32 changes: 6 additions & 26 deletions packages/webhook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,10 @@
"description": "Official library for using the Slack Platform's Incoming Webhooks",
"author": "Slack Technologies, LLC",
"license": "MIT",
"keywords": [
"slack",
"request",
"client",
"http",
"api",
"proxy"
],
"keywords": ["slack", "request", "client", "http", "api", "proxy"],
"main": "dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**/*"
],
"files": ["dist/**/*"],
"engines": {
"node": ">= 18",
"npm": ">= 8.6.0"
Expand All @@ -33,36 +24,25 @@
"prepare": "npm run build",
"build": "npm run build:clean && tsc",
"build:clean": "shx rm -rf ./dist ./coverage",
"lint": "eslint --fix --ext .ts src",
"mocha": "mocha --config .mocharc.json src/*.spec.js",
"lint": "npx @biomejs/biome check --write .",
"mocha": "mocha --config .mocharc.json src/*.spec.ts",
"test": "npm run lint && npm run test:unit",
"test:unit": "npm run build && c8 npm run mocha",
"ref-docs:model": "api-extractor run"
"test:unit": "npm run build && c8 npm run mocha"
},
"dependencies": {
"@slack/types": "^2.9.0",
"@types/node": ">=18.0.0",
"axios": "^1.7.4"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.38.0",
"@biomejs/biome": "^1.8.3",
"@types/chai": "^4.3.5",
"@types/mocha": "^10.0.1",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.0",
"c8": "^9.1.0",
"chai": "^4.3.8",
"eslint": "^8.47.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-import-newlines": "^1.3.4",
"eslint-plugin-jsdoc": "^46.5.0",
"eslint-plugin-node": "^11.1.0",
"mocha": "^10.2.0",
"nock": "^13.3.3",
"shx": "^0.3.2",
"sinon": "^17.0.0",
"source-map-support": "^0.5.21",
"ts-node": "^8.2.0",
"typescript": "^4.1.0"
Expand Down
137 changes: 0 additions & 137 deletions packages/webhook/src/IncomingWebhook.spec.js

This file was deleted.

Loading

0 comments on commit 3182d5a

Please sign in to comment.