Skip to content

Commit

Permalink
chore(prettier): use dedicated .prettierignore
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Apr 9, 2024
1 parent 67147fe commit dae9843
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tests/e2e
lib
dist
tests/**/*.json
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"test": "vitest -r tests",
"test:e2e": "node tests/test-e2e",
"format": "prettier --write \"{src,tests,playground}/**/*.{js,ts,svelte,md}\" --ignore-path \".gitignore\"",
"format": "prettier --write \".\"",
"build": "tsc -p tsconfig.build.json"
},
"dependencies": {
Expand Down
5 changes: 1 addition & 4 deletions playground/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
<meta
name="description"
content="Generate TypeScript definitions for your Svelte components."
/>
<meta name="description" content="Generate TypeScript definitions for your Svelte components." />
</head>
<body>
<script type="module">
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fg from "fast-glob";
import fs from "node:fs"
import fs from "node:fs";
import fsp from "node:fs/promises";
import path from "node:path";
import ComponentParser from "../src/ComponentParser";
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"module": "CommonJS",
"module": "CommonJS"
},
"include": ["src/**/*"]
}

0 comments on commit dae9843

Please sign in to comment.