feat: add lint and format scripts

This commit is contained in:
Valerio Ageno
2024-04-27 10:40:14 +02:00
parent 5d28ffcf33
commit df8d1659c7
11 changed files with 200 additions and 1 deletions
+2
View File
@@ -1,5 +1,7 @@
# [Tuono] Vite FS Router
> 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.
+13
View File
@@ -0,0 +1,13 @@
{
"name": "vite-fs-router",
"version": "0.1.0",
"description": "",
"main": "src/index.js",
"scripts": {
"lint": "eslint --ext .ts,.tsx ./src -c ../../eslintrc.cjs",
"format": "prettier --ignore-unknown '**/*'"
},
"keywords": [],
"author": "Valerio Ageno",
"license": "MIT"
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.json",
"include": ["src", "vite.config.ts", "tests"],
"exclude": ["tests/test-files/**", "tests/snapshots/**"],
"compilerOptions": {
"jsx": "react",
},
}