Skip to content

Commit

Permalink
chore: run prettier in ci (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor authored Sep 2, 2024
1 parent 5630294 commit 2f83961
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ jobs:
run: npm ci
- name: Type check
run: npm run check
- name: Lint
run: npm run lint
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"build": "rollup -c",
"check": "tsc --noEmit",
"check:watch": "tsc --noEmit --watch",
"lint": "prettier --check .",
"format": "prettier --write .",
"test": "ava",
"prepare": "npm run build",
"prepublishOnly": "npm test"
Expand Down
2 changes: 1 addition & 1 deletion src/print/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
SlotTemplateNode,
StyleNode,
TitleNode,
WindowNode
WindowNode,
} from './nodes';
import { ParserOptions } from '../options';

Expand Down
4 changes: 2 additions & 2 deletions test/formatting/samples/syntax-error/options.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"expectSyntaxErrors": true
}
"expectSyntaxErrors": true
}
4 changes: 2 additions & 2 deletions test/printer/samples/allow-shorthand-false.options.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"svelteAllowShorthand": false
}
"svelteAllowShorthand": false
}
4 changes: 2 additions & 2 deletions test/printer/samples/allow-shorthand-true.options.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"svelteAllowShorthand": true
}
"svelteAllowShorthand": true
}
2 changes: 1 addition & 1 deletion wallaby.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function(w) {
module.exports = function (w) {
return {
files: ['src/**/*.ts', 'test/**/*.html'],
tests: ['test/**/*.ts'],
Expand Down

0 comments on commit 2f83961

Please sign in to comment.