Skip to content

Commit 2f83961

Browse files
authored
chore: run prettier in ci (#452)
1 parent 5630294 commit 2f83961

File tree

7 files changed

+12
-8
lines changed

7 files changed

+12
-8
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ jobs:
3434
run: npm ci
3535
- name: Type check
3636
run: npm run check
37+
- name: Lint
38+
run: npm run lint

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
"build": "rollup -c",
2323
"check": "tsc --noEmit",
2424
"check:watch": "tsc --noEmit --watch",
25+
"lint": "prettier --check .",
26+
"format": "prettier --write .",
2527
"test": "ava",
2628
"prepare": "npm run build",
2729
"prepublishOnly": "npm test"

src/print/helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
SlotTemplateNode,
1818
StyleNode,
1919
TitleNode,
20-
WindowNode
20+
WindowNode,
2121
} from './nodes';
2222
import { ParserOptions } from '../options';
2323

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"expectSyntaxErrors": true
3-
}
2+
"expectSyntaxErrors": true
3+
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"svelteAllowShorthand": false
3-
}
2+
"svelteAllowShorthand": false
3+
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"svelteAllowShorthand": true
3-
}
2+
"svelteAllowShorthand": true
3+
}

wallaby.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = function(w) {
1+
module.exports = function (w) {
22
return {
33
files: ['src/**/*.ts', 'test/**/*.html'],
44
tests: ['test/**/*.ts'],

0 commit comments

Comments
 (0)