Skip to content

Commit

Permalink
fix: lint pipeline automatically formats files, misses errors in CI (s…
Browse files Browse the repository at this point in the history
…veltejs#5021)

* fix: Incorrectly-cached formatting

* stop formatting files before linting

* format changes in master

* rename the `autolint` script to `precommit`

Co-authored-by: mrkishi <mauriciokishi@gmail.com>
  • Loading branch information
1 parent 805b42a commit dacdfb0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"check": "turbo run check",
"lint": "turbo run lint",
"format": "turbo run format",
"precommit": "turbo run precommit",
"release": "changeset publish"
},
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export function get() {
answer: 42
}
};
}
}
2 changes: 1 addition & 1 deletion packages/kit/test/prerendering/paths-base/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config = {
adapter: adapter(),

paths: {
base: '/path-base',
base: '/path-base'
},

prerender: {
Expand Down
5 changes: 4 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"outputs": []
},
"lint": {
"dependsOn": ["format"],
"outputs": []
},
"precommit": {
"dependsOn": ["format", "lint"],
"outputs": []
},
"dev": {
Expand Down

0 comments on commit dacdfb0

Please sign in to comment.