Skip to content

Commit 96d846a

Browse files
authored
ci: check for changes to lints separate from writing changes (#2117)
1 parent 4cbe2cf commit 96d846a

File tree

14 files changed

+35
-46
lines changed

14 files changed

+35
-46
lines changed

.github/workflows/ci-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
- webhook
2727
runs-on: ${{ matrix.os }}
2828
steps:
29+
- name: Configure git settings (Windows)
30+
if: matrix.os == 'windows-latest'
31+
run: |
32+
git config --global core.autocrlf false
33+
git config --global core.eol lf
2934
- uses: actions/checkout@v4
3035
- name: Use Node.js ${{ matrix.node-version }}
3136
uses: actions/setup-node@v4

packages/cli-hooks/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"prebuild": "shx rm -rf ./coverage",
3535
"build": "shx chmod +x src/*.js",
3636
"prelint": "tsc --noemit --module es2022 --maxNodeModuleJsDepth 0 --project ./jsconfig.json",
37-
"lint": "npx @biomejs/biome check --write .",
37+
"lint": "npx @biomejs/biome check .",
38+
"lint:fix": "npx @biomejs/biome check --write .",
3839
"pretest": "npm run lint",
3940
"test": "c8 mocha src/*.spec.js"
4041
},

packages/cli-test/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
"url": "https://github.com/slackapi/node-slack-sdk/issues"
2020
},
2121
"scripts": {
22-
"lint": "npx @biomejs/biome check --write .",
2322
"build": "npm run build:clean && tsc",
2423
"build:clean": "shx rm -rf ./dist ./coverage",
24+
"lint": "npx @biomejs/biome check .",
25+
"lint:fix": "npx @biomejs/biome check --write .",
2526
"prepare": "npm run build",
2627
"mocha": "cross-env SLACK_CLI_PATH=/doesnt/matter mocha --config .mocharc.json src/*.spec.ts src/**/*.spec.ts src/**/**/*.spec.ts",
2728
"test": "npm run lint && npm run build && c8 npm run mocha"

packages/logger/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"prepare": "npm run build",
2525
"build": "npm run build:clean && tsc",
2626
"build:clean": "shx rm -rf ./dist ./coverage",
27-
"lint": "npx @biomejs/biome check --write .",
27+
"lint": "npx @biomejs/biome check .",
28+
"lint:fix": "npx @biomejs/biome check --write .",
2829
"mocha": "mocha --config .mocharc.json src/*.spec.js",
2930
"test:unit": "npm run build && npm run mocha",
3031
"test": "npm run lint && npm run coverage",

packages/logger/tsconfig.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,16 @@
1616
"moduleResolution": "node",
1717
"baseUrl": ".",
1818
"paths": {
19-
"*": [
20-
"./types/*"
21-
]
19+
"*": ["./types/*"]
2220
},
2321
"esModuleInterop": true
2422
// Not using this setting because its only used to require the package.json file, and that would change the
2523
// structure of the files in the dist directory because package.json is not located inside src. It would be nice
2624
// to use import instead of require(), but its not worth the tradeoff of restructuring the build (for now).
2725
// "resolveJsonModule": true,
2826
},
29-
"include": [
30-
"src/**/*"
31-
],
32-
"exclude": [
33-
"src/**/*.spec.*"
34-
],
27+
"include": ["src/**/*"],
28+
"exclude": ["src/**/*.spec.*"],
3529
"jsdoc": {
3630
"out": "support/jsdoc",
3731
"access": "public"

packages/oauth/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"prepare": "npm run build",
2424
"build": "npm run build:clean && tsc",
2525
"build:clean": "shx rm -rf ./dist ./coverage",
26-
"lint": "npx @biomejs/biome check --write .",
26+
"lint": "npx @biomejs/biome check .",
27+
"lint:fix": "npx @biomejs/biome check --write .",
2728
"test": "npm run lint && npm run coverage",
2829
"coverage": "npm run build && c8 npm run test:mocha",
2930
"test:mocha": "mocha --config .mocharc.json src/*.spec.ts src/**/*.spec.ts",

packages/oauth/tsconfig.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,16 @@
1616
"moduleResolution": "node",
1717
"baseUrl": ".",
1818
"paths": {
19-
"*": [
20-
"./types/*"
21-
]
19+
"*": ["./types/*"]
2220
},
2321
"esModuleInterop": true
2422
// Not using this setting because its only used to require the package.json file, and that would change the
2523
// structure of the files in the dist directory because package.json is not located inside src. It would be nice
2624
// to use import instead of require(), but its not worth the tradeoff of restructuring the build (for now).
2725
// "resolveJsonModule": true,
2826
},
29-
"include": [
30-
"src/**/*"
31-
],
32-
"exclude": [
33-
"src/**/spec-utils.ts",
34-
"src/**/*.spec.*"
35-
],
27+
"include": ["src/**/*"],
28+
"exclude": ["src/**/spec-utils.ts", "src/**/*.spec.*"],
3629
"jsdoc": {
3730
"out": "support/jsdoc",
3831
"access": "public"

packages/rtm-api/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"prepare": "npm run build",
2525
"build": "npm run build:clean && tsc",
2626
"build:clean": "shx rm -rf ./dist",
27-
"lint": "npx @biomejs/biome check --write .",
27+
"lint": "npx @biomejs/biome check .",
28+
"lint:fix": "npx @biomejs/biome check --write .",
2829
"test": "npm run lint && npm run build && npm run test:integration",
2930
"test:integration": "mocha --config .mocharc.json test/integration.spec.js"
3031
},

packages/rtm-api/tsconfig.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,16 @@
1616
"moduleResolution": "node",
1717
"baseUrl": ".",
1818
"paths": {
19-
"*": [
20-
"./types/*"
21-
]
19+
"*": ["./types/*"]
2220
},
2321
"esModuleInterop": true
2422
// Not using this setting because its only used to require the package.json file, and that would change the
2523
// structure of the files in the dist directory because package.json is not located inside src. It would be nice
2624
// to use import instead of require(), but its not worth the tradeoff of restructuring the build (for now).
2725
// "resolveJsonModule": true,
2826
},
29-
"include": [
30-
"src/**/*"
31-
],
32-
"exclude": [
33-
"src/**/*.spec.*"
34-
],
27+
"include": ["src/**/*"],
28+
"exclude": ["src/**/*.spec.*"],
3529
"jsdoc": {
3630
"out": "support/jsdoc",
3731
"access": "public"

packages/socket-mode/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"prepare": "npm run build",
3838
"build": "npm run build:clean && tsc",
3939
"build:clean": "shx rm -rf ./dist ./coverage",
40-
"lint": "npx @biomejs/biome check --write .",
40+
"lint": "npx @biomejs/biome check .",
41+
"lint:fix": "npx @biomejs/biome check --write .",
4142
"test:unit": "mocha --config .mocharc.json src/**/*.spec.ts",
4243
"test:coverage": "c8 npm run test:unit",
4344
"test:integration": "mocha --config .mocharc.json test/integration.spec.js",

0 commit comments

Comments
 (0)