fix: prettier package config

This commit is contained in:
Valerio Ageno
2024-04-28 11:12:05 +02:00
parent d9544fa18f
commit a336695f3c
8 changed files with 12 additions and 15 deletions
+1
View File
@@ -0,0 +1 @@
dist/
-2
View File
@@ -3,5 +3,3 @@
> Strongly inspired by [@tanstack/router/router-vite-plugin](https://github.com/TanStack/router/tree/main/packages/router-vite-plugin)
This is the [vite](https://vitejs.dev/) plugin that automatically handles the file system routing.
+1 -2
View File
@@ -4,10 +4,9 @@
"description": "",
"main": "src/index.ts",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"lint": "eslint --ext .ts,.tsx ./src -c ../../.eslintrc",
"format": "prettier --ignore-unknown '**/*'",
"format": "prettier -u --write '**/*'",
"test": "vitest --typecheck --watch=false",
"types": "tsc --noEmit"
},
@@ -1,3 +1,3 @@
export const ImportedRoute(): JSX.Element => {
return <h1>Imported route</h1>
export const ImportedRoute = (): JSX.Element => {
return <h1>Imported route</h1>
}
@@ -1,3 +1,3 @@
export default function Route(): JSX.Element {
return <h1>Test route</h1>;
}
return <h1>Test route</h1>
}
@@ -1,4 +1,4 @@
function PostsRoute() {
return <h1>Post route</h1>;
return <h1>Post route</h1>
}
export default PostsRoute;
export default PostsRoute
@@ -1,2 +1,2 @@
import { ImportedRoute } from '../shared/imported';
export default ImportedRoute;
import { ImportedRoute } from '../shared/imported'
export default ImportedRoute
+2 -3
View File
@@ -3,7 +3,6 @@
"include": ["src", "vite.config.ts", "tests"],
"exclude": ["tests/test-files/**", "tests/snapshots/**"],
"compilerOptions": {
"jsx": "react",
},
"jsx": "react"
}
}