Skip to content

Commit

Permalink
chore: update lint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Jan 29, 2024
1 parent 58ad25f commit 781686d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ jobs:
bun-version: 1.0.25
- run: bunx playwright install --with-deps
- run: bun install
- run: bun run format
- run: bun run lint
- run: bun run build
- run: bun run test
Binary file modified bun.lockb
Binary file not shown.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
"typecheck": "tsc --noEmit",
"build": "tsup && publint",
"watch": "tsup --watch",
"lint": "eslint src/**.ts",
"lint:fix": "eslint src/**.ts --fix",
"lint": "eslint --ext js,ts src test",
"lint:fix": "eslint --ext js,ts src test --fix",
"format": "prettier --check \"src/**/*.{js,ts}\" \"test/**/*.{js,ts}\"",
"format:fix": "prettier --write \"src/**/*.{js,ts}\" \"test/**/*.{js,ts}\"",
"prerelease": "bun run test && bun run build",
"release": "np"
},
Expand Down Expand Up @@ -92,7 +94,7 @@
"@hono/vite-dev-server": "^0.4.1"
},
"devDependencies": {
"@hono/eslint-config": "^0.0.3",
"@hono/eslint-config": "^0.0.4",
"@mdx-js/rollup": "^3.0.0",
"@playwright/test": "^1.41.0",
"@types/babel__generator": "^7",
Expand All @@ -115,4 +117,4 @@
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.9.6"
}
}
}
4 changes: 3 additions & 1 deletion src/vite/island-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export const transformJsxTags = (contents: string, componentName: string) => {
ExportDefaultDeclaration(path) {
if (path.node.declaration.type === 'FunctionDeclaration') {
const functionId = path.node.declaration.id
if (!functionId) return
if (!functionId) {
return
}
const isAsync = path.node.declaration.async
const originalFunctionId = identifier(functionId.name + 'Original')

Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
# bun ./bun.lockb --hash: 165D151D5F77B704-388c216106d1736d-4FC703E209C19307-90189d2aadc94b12
# bun ./bun.lockb --hash: 89CC3BEDD16A5A1A-88432543ffb3e4d3-9F4B5F73AB384EF5-8902a16b1dc4a914


"@aashutoshrathi/word-wrap@^1.2.3":
Expand Down Expand Up @@ -174,10 +174,10 @@
resolved "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz"
integrity sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==

"@hono/eslint-config@^0.0.3":
version "0.0.3"
resolved "https://registry.npmjs.org/@hono/eslint-config/-/eslint-config-0.0.3.tgz"
integrity sha512-A4pbMilmx+HpY9TPZuC7+1eEhdTfTWKo7wJjWULOkJiH3pf580ZhaRZ+GvArCDPW6YkvTVvaGxr0wkt8VApzDg==
"@hono/eslint-config@^0.0.4":
version "0.0.4"
resolved "https://registry.npmjs.org/@hono/eslint-config/-/eslint-config-0.0.4.tgz"
integrity sha512-CaL3LBdI2tw7Luo4vGDhhrdntA02Nsts6P0FjAz3U5piy3UhWzgEvEN+L9M0fsG7Mm1cgd+kM3hF8CRJOH0aGA==
dependencies:
"@typescript-eslint/eslint-plugin" "^6.14.0"
"@typescript-eslint/parser" "^6.14.0"
Expand Down

0 comments on commit 781686d

Please sign in to comment.