Skip to content

Commit

Permalink
feat: add vite plugin tests
Browse files Browse the repository at this point in the history
chore: add linting / formatting
  • Loading branch information
jacob-ebey committed May 21, 2024
1 parent 03b27b3 commit e58d66b
Show file tree
Hide file tree
Showing 13 changed files with 2,345 additions and 1,240 deletions.
20 changes: 20 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.1/schema.json",
"files": {
"ignore": [
"**/dist/**/*",
"**/docs/**/*",
"**/node_modules/**/*",
"package-lock.json"
]
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
}
}
7 changes: 7 additions & 0 deletions fixture/server-inline.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export function hasSub(name: string) {
const sayHello = () => {
"use server";
return `Hello, ${name}!`;
};
return sayHello;
}
5 changes: 5 additions & 0 deletions fixture/server-module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use server";

export function sayHello(name: string) {
return `Hello, ${name}!`;
}
Loading

0 comments on commit e58d66b

Please sign in to comment.