Skip to content

Commit

Permalink
biomelint web-api
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Maj committed Sep 4, 2024
1 parent 74990e8 commit dd3ce0c
Show file tree
Hide file tree
Showing 403 changed files with 27,072 additions and 25,509 deletions.
1 change: 0 additions & 1 deletion packages/web-api/.eslintignore

This file was deleted.

1 change: 0 additions & 1 deletion packages/web-api/.eslintrc.js

This file was deleted.

16 changes: 3 additions & 13 deletions packages/web-api/.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": "Web API Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--timeout",
"999999",
"--colors",
"${workspaceFolder}/src/*.spec.js"
],
"args": ["--timeout", "999999", "--colors", "${workspaceFolder}/src/*.spec.js"],
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": [
"<node_internals>/**"
],
"skipFiles": ["<node_internals>/**"],
"cwd": "${workspaceFolder}"
},
}
]
}
2 changes: 1 addition & 1 deletion packages/web-api/.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/web-api/api-extractor.json

This file was deleted.

19 changes: 19 additions & 0 deletions packages/web-api/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"extends": ["../../biome.json"],
"overrides": [
{
"include": ["src/types/response/**/*.ts"],
"linter": {
"rules": {
"complexity": {
"noBannedTypes": "off"
},
"suspicious": {
"noExplicitAny": "off"
}
}
}
}
]
}
33 changes: 6 additions & 27 deletions packages/web-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,10 @@
"description": "Official library for using the Slack Platform's Web API",
"author": "Slack Technologies, LLC",
"license": "MIT",
"keywords": [
"slack",
"web-api",
"bot",
"client",
"http",
"api",
"proxy",
"rate-limiting",
"pagination"
],
"keywords": ["slack", "web-api", "bot", "client", "http", "api", "proxy", "rate-limiting", "pagination"],
"main": "dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**/*"
],
"files": ["dist/**/*"],
"engines": {
"node": ">= 18",
"npm": ">= 8.6.0"
Expand All @@ -36,14 +24,13 @@
"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:types && npm run test:integration && npm run test:unit",
"test:integration": "npm run build && node test/integration/commonjs-project/index.js && node test/integration/esm-project/index.mjs && npm run test:integration:ts",
"test:integration:ts": "cd test/integration/ts-4.7-project && npm i && npm run build",
"test:unit": "npm run build && c8 npm run mocha",
"test:types": "tsd",
"ref-docs:model": "api-extractor run",
"watch": "npx nodemon --watch 'src' --ext 'ts' --exec npm run build"
},
"dependencies": {
Expand All @@ -61,23 +48,15 @@
"retry": "^0.13.1"
},
"devDependencies": {
"@microsoft/api-extractor": "^7",
"@biomejs/biome": "^1.8.3",
"@tsconfig/recommended": "^1",
"@types/busboy": "^1.5.4",
"@types/chai": "^4",
"@types/mocha": "^10",
"@types/sinon": "^17",
"@typescript-eslint/eslint-plugin": "^6",
"@typescript-eslint/parser": "^6",
"busboy": "^1",
"c8": "^10.1.2",
"chai": "^4",
"eslint": "^8",
"eslint-config-airbnb-base": "^15",
"eslint-config-airbnb-typescript": "^17",
"eslint-plugin-import": "^2",
"eslint-plugin-import-newlines": "^1.3.4",
"eslint-plugin-jsdoc": "^48",
"eslint-plugin-node": "^11",
"mocha": "^10",
"nock": "^13",
"shx": "^0.3.2",
Expand Down
Loading

0 comments on commit dd3ce0c

Please sign in to comment.