diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 32d8ebbaa..425342823 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -26,6 +26,11 @@ jobs: - webhook runs-on: ${{ matrix.os }} steps: + - name: Configure git settings (Windows) + if: matrix.os == 'windows-latest' + run: | + git config --global core.autocrlf false + git config --global core.eol lf - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 diff --git a/packages/cli-hooks/package.json b/packages/cli-hooks/package.json index cab7b1199..0c536782d 100644 --- a/packages/cli-hooks/package.json +++ b/packages/cli-hooks/package.json @@ -34,7 +34,8 @@ "prebuild": "shx rm -rf ./coverage", "build": "shx chmod +x src/*.js", "prelint": "tsc --noemit --module es2022 --maxNodeModuleJsDepth 0 --project ./jsconfig.json", - "lint": "npx @biomejs/biome check --write .", + "lint": "npx @biomejs/biome check .", + "lint:fix": "npx @biomejs/biome check --write .", "pretest": "npm run lint", "test": "c8 mocha src/*.spec.js" }, diff --git a/packages/cli-test/package.json b/packages/cli-test/package.json index c26ba3c96..1b48f33a9 100644 --- a/packages/cli-test/package.json +++ b/packages/cli-test/package.json @@ -19,9 +19,10 @@ "url": "https://github.com/slackapi/node-slack-sdk/issues" }, "scripts": { - "lint": "npx @biomejs/biome check --write .", "build": "npm run build:clean && tsc", "build:clean": "shx rm -rf ./dist ./coverage", + "lint": "npx @biomejs/biome check .", + "lint:fix": "npx @biomejs/biome check --write .", "prepare": "npm run build", "mocha": "cross-env SLACK_CLI_PATH=/doesnt/matter mocha --config .mocharc.json src/*.spec.ts src/**/*.spec.ts src/**/**/*.spec.ts", "test": "npm run lint && npm run build && c8 npm run mocha" diff --git a/packages/logger/package.json b/packages/logger/package.json index 678e945f3..76ebd4f59 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -24,7 +24,8 @@ "prepare": "npm run build", "build": "npm run build:clean && tsc", "build:clean": "shx rm -rf ./dist ./coverage", - "lint": "npx @biomejs/biome check --write .", + "lint": "npx @biomejs/biome check .", + "lint:fix": "npx @biomejs/biome check --write .", "mocha": "mocha --config .mocharc.json src/*.spec.js", "test:unit": "npm run build && npm run mocha", "test": "npm run lint && npm run coverage", diff --git a/packages/logger/tsconfig.json b/packages/logger/tsconfig.json index 139d474c6..3aea2d775 100644 --- a/packages/logger/tsconfig.json +++ b/packages/logger/tsconfig.json @@ -16,9 +16,7 @@ "moduleResolution": "node", "baseUrl": ".", "paths": { - "*": [ - "./types/*" - ] + "*": ["./types/*"] }, "esModuleInterop": true // Not using this setting because its only used to require the package.json file, and that would change the @@ -26,12 +24,8 @@ // to use import instead of require(), but its not worth the tradeoff of restructuring the build (for now). // "resolveJsonModule": true, }, - "include": [ - "src/**/*" - ], - "exclude": [ - "src/**/*.spec.*" - ], + "include": ["src/**/*"], + "exclude": ["src/**/*.spec.*"], "jsdoc": { "out": "support/jsdoc", "access": "public" diff --git a/packages/oauth/package.json b/packages/oauth/package.json index 4029b9075..75283afde 100644 --- a/packages/oauth/package.json +++ b/packages/oauth/package.json @@ -23,7 +23,8 @@ "prepare": "npm run build", "build": "npm run build:clean && tsc", "build:clean": "shx rm -rf ./dist ./coverage", - "lint": "npx @biomejs/biome check --write .", + "lint": "npx @biomejs/biome check .", + "lint:fix": "npx @biomejs/biome check --write .", "test": "npm run lint && npm run coverage", "coverage": "npm run build && c8 npm run test:mocha", "test:mocha": "mocha --config .mocharc.json src/*.spec.ts src/**/*.spec.ts", diff --git a/packages/oauth/tsconfig.json b/packages/oauth/tsconfig.json index 2077d7927..db4ff83dc 100644 --- a/packages/oauth/tsconfig.json +++ b/packages/oauth/tsconfig.json @@ -16,9 +16,7 @@ "moduleResolution": "node", "baseUrl": ".", "paths": { - "*": [ - "./types/*" - ] + "*": ["./types/*"] }, "esModuleInterop": true // Not using this setting because its only used to require the package.json file, and that would change the @@ -26,13 +24,8 @@ // to use import instead of require(), but its not worth the tradeoff of restructuring the build (for now). // "resolveJsonModule": true, }, - "include": [ - "src/**/*" - ], - "exclude": [ - "src/**/spec-utils.ts", - "src/**/*.spec.*" - ], + "include": ["src/**/*"], + "exclude": ["src/**/spec-utils.ts", "src/**/*.spec.*"], "jsdoc": { "out": "support/jsdoc", "access": "public" diff --git a/packages/rtm-api/package.json b/packages/rtm-api/package.json index 6b01ce4f2..cc40dd9f1 100644 --- a/packages/rtm-api/package.json +++ b/packages/rtm-api/package.json @@ -24,7 +24,8 @@ "prepare": "npm run build", "build": "npm run build:clean && tsc", "build:clean": "shx rm -rf ./dist", - "lint": "npx @biomejs/biome check --write .", + "lint": "npx @biomejs/biome check .", + "lint:fix": "npx @biomejs/biome check --write .", "test": "npm run lint && npm run build && npm run test:integration", "test:integration": "mocha --config .mocharc.json test/integration.spec.js" }, diff --git a/packages/rtm-api/tsconfig.json b/packages/rtm-api/tsconfig.json index 139d474c6..3aea2d775 100644 --- a/packages/rtm-api/tsconfig.json +++ b/packages/rtm-api/tsconfig.json @@ -16,9 +16,7 @@ "moduleResolution": "node", "baseUrl": ".", "paths": { - "*": [ - "./types/*" - ] + "*": ["./types/*"] }, "esModuleInterop": true // Not using this setting because its only used to require the package.json file, and that would change the @@ -26,12 +24,8 @@ // to use import instead of require(), but its not worth the tradeoff of restructuring the build (for now). // "resolveJsonModule": true, }, - "include": [ - "src/**/*" - ], - "exclude": [ - "src/**/*.spec.*" - ], + "include": ["src/**/*"], + "exclude": ["src/**/*.spec.*"], "jsdoc": { "out": "support/jsdoc", "access": "public" diff --git a/packages/socket-mode/package.json b/packages/socket-mode/package.json index 6608055ad..017e66161 100644 --- a/packages/socket-mode/package.json +++ b/packages/socket-mode/package.json @@ -37,7 +37,8 @@ "prepare": "npm run build", "build": "npm run build:clean && tsc", "build:clean": "shx rm -rf ./dist ./coverage", - "lint": "npx @biomejs/biome check --write .", + "lint": "npx @biomejs/biome check .", + "lint:fix": "npx @biomejs/biome check --write .", "test:unit": "mocha --config .mocharc.json src/**/*.spec.ts", "test:coverage": "c8 npm run test:unit", "test:integration": "mocha --config .mocharc.json test/integration.spec.js", diff --git a/packages/types/package.json b/packages/types/package.json index 2cd868b18..843c44df1 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -24,7 +24,8 @@ "prepare": "npm run build", "build": "npm run build:clean && tsc", "build:clean": "shx rm -rf ./dist", - "lint": "npx @biomejs/biome check --write .", + "lint": "npx @biomejs/biome check .", + "lint:fix": "npx @biomejs/biome check --write .", "test": "npm run lint && npm run build && npm run test:types", "test:types": "tsd" }, diff --git a/packages/web-api/package.json b/packages/web-api/package.json index 01ea92fa3..859e3eae0 100644 --- a/packages/web-api/package.json +++ b/packages/web-api/package.json @@ -24,7 +24,8 @@ "prepare": "npm run build", "build": "npm run build:clean && tsc", "build:clean": "shx rm -rf ./dist ./coverage", - "lint": "npx @biomejs/biome check --write .", + "lint": "npx @biomejs/biome check .", + "lint:fix": "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", diff --git a/packages/webhook/package.json b/packages/webhook/package.json index 6de7bd9b2..02cd13d9e 100644 --- a/packages/webhook/package.json +++ b/packages/webhook/package.json @@ -24,7 +24,8 @@ "prepare": "npm run build", "build": "npm run build:clean && tsc", "build:clean": "shx rm -rf ./dist ./coverage", - "lint": "npx @biomejs/biome check --write .", + "lint": "npx @biomejs/biome check .", + "lint:fix": "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" diff --git a/packages/webhook/tsconfig.json b/packages/webhook/tsconfig.json index 139d474c6..3aea2d775 100644 --- a/packages/webhook/tsconfig.json +++ b/packages/webhook/tsconfig.json @@ -16,9 +16,7 @@ "moduleResolution": "node", "baseUrl": ".", "paths": { - "*": [ - "./types/*" - ] + "*": ["./types/*"] }, "esModuleInterop": true // Not using this setting because its only used to require the package.json file, and that would change the @@ -26,12 +24,8 @@ // to use import instead of require(), but its not worth the tradeoff of restructuring the build (for now). // "resolveJsonModule": true, }, - "include": [ - "src/**/*" - ], - "exclude": [ - "src/**/*.spec.*" - ], + "include": ["src/**/*"], + "exclude": ["src/**/*.spec.*"], "jsdoc": { "out": "support/jsdoc", "access": "public"