Skip to content

chore: run prettier in ci #452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
@@ -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"
2 changes: 1 addition & 1 deletion src/print/helpers.ts
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ import {
SlotTemplateNode,
StyleNode,
TitleNode,
WindowNode
WindowNode,
} from './nodes';
import { ParserOptions } from '../options';

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'],