Skip to content

Commit dacdfb0

Browse files
fix: lint pipeline automatically formats files, misses errors in CI (#5021)
* fix: Incorrectly-cached formatting * stop formatting files before linting * format changes in master * rename the `autolint` script to `precommit` Co-authored-by: mrkishi <[email protected]>
1 parent 805b42a commit dacdfb0

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -9,6 +9,7 @@
9
"check": "turbo run check",
9
"check": "turbo run check",
10
"lint": "turbo run lint",
10
"lint": "turbo run lint",
11
"format": "turbo run format",
11
"format": "turbo run format",
12+
"precommit": "turbo run precommit",
12
"release": "changeset publish"
13
"release": "changeset publish"
13
},
14
},
14
"repository": {
15
"repository": {

packages/kit/test/apps/basics/src/routes/load/window-fetch/data.json.js

Lines changed: 1 addition & 1 deletion
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -5,4 +5,4 @@ export function get() {
5
answer: 42
5
answer: 42
6
}
6
}
7
};
7
};
8-
}
8+
}

packages/kit/test/prerendering/paths-base/svelte.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -7,7 +7,7 @@ const config = {
7
adapter: adapter(),
7
adapter: adapter(),
8

8

9
paths: {
9
paths: {
10-
base: '/path-base',
10+
base: '/path-base'
11
},
11
},
12

12

13
prerender: {
13
prerender: {

turbo.json

Lines changed: 4 additions & 1 deletion
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -25,7 +25,10 @@
25
"outputs": []
25
"outputs": []
26
},
26
},
27
"lint": {
27
"lint": {
28-
"dependsOn": ["format"],
28+
"outputs": []
29+
},
30+
"precommit": {
31+
"dependsOn": ["format", "lint"],
29
"outputs": []
32
"outputs": []
30
},
33
},
31
"dev": {
34
"dev": {

0 commit comments

Comments
 (0)