Skip to content

Commit

Permalink
chore: fix ci error (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi authored Jul 9, 2024
1 parent a77445e commit 06b2a12
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
package-lock=false
package-lock=false
force=true
2 changes: 1 addition & 1 deletion docs-build/src/components/LeftSidebar/LeftSidebar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const sidebarSections = SIDEBAR.en.reduce((col, item, i) => {

<script is:inline>
window.addEventListener("DOMContentLoaded", (_event) => {
let target = document.querySelector('[aria-current="page"]')
const target = document.querySelector('[aria-current="page"]')
if (target && target.offsetTop > window.innerHeight - 100) {
document.querySelector(".nav-groups").scrollTop = target.offsetTop
}
Expand Down
12 changes: 12 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,18 @@ module.exports = [
"@typescript-eslint/no-explicit-any": "off",
},
},
...tseslint.config({
files: ["**/*.astro/*.ts"],
extends: [tseslint.configs.disableTypeChecked],
languageOptions: {
parserOptions: {
project: null,
},
},
rules: {
"prettier/prettier": "off",
},
}),
...tseslint.config(
{
files: ["tests/fixtures/rules/**"],
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-exports-from-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default createRule("no-exports-from-components", {
})
},
ExportDefaultDeclaration(node) {
if (node.exportKind === "type") return
if ((node.exportKind as "value" | "type") === "type") return
verifyDeclaration(node.declaration)
},
ExportNamedDeclaration(node) {
Expand Down

0 comments on commit 06b2a12

Please sign in to comment.