Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanblock committed Jan 2, 2025
1 parent 25b2a4f commit eb274c7
Show file tree
Hide file tree
Showing 16 changed files with 799 additions and 798 deletions.
6 changes: 3 additions & 3 deletions src/http/any-catchall/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import algolia from '@architect/views/modules/components/algolia.mjs'
const staticProxy = asap({
alias: { '/playground': '/playground.html' },
passthru: true,
spa: false
spa: false,
})

async function robots (req) {
Expand All @@ -34,8 +34,8 @@ async function notFound (req) {
html: NotFound({ term }),
scripts: [ '/index.js' ],
thirdparty: algolia,
toc
})
toc,
}),
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/http/get-api-package/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ export async function handler (req) {
body = JSON.stringify({
name: e.name,
message: e.message,
stack: e.stack
stack: e.stack,
})
}

return {
statusCode,
body
body,
}
}
5 changes: 3 additions & 2 deletions src/http/get-docs-000lang-catchall/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ async function handler (req) {
editURL += join(lang, ...parts, doc)

const filePath = join(

new URL('.', import.meta.url).pathname,
'node_modules',
'@architect',
Expand Down Expand Up @@ -63,7 +64,7 @@ async function handler (req) {
markdownItAnchor: {
permalink: anchor.permalink.headerLink({
class: 'text-p1 text-h1 text-a2 no-underline underline-h',
})
}),
},
},
})
Expand Down Expand Up @@ -106,7 +107,7 @@ async function handler (req) {
state: { notFoundTerm: docName },
thirdparty: algolia(lang),
toc,
})
}),
}
}
}
Expand Down
28 changes: 14 additions & 14 deletions src/http/get-docs-000lang-catchall/markdown-class-mappings.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,43 @@ export default {
h1: [
'mb3',
'font-semibold',
'text5'
'text5',
],
h2: [
'mt3',
'mb-1',
'font-semibold',
'text4'
'text4',
],
h3: [
'mt3',
'mb-1',
'font-semibold',
'text3'
'text3',
],
h4: [
'mt3',
'mb-1',
'font-semibold',
'text2'
'text2',
],
h5: [
'mt3',
'mb-1',
'font-semibold',
'text1'
'text1',
],
p: [
'mb-1'
'mb-1',
],
ol: [
'mb1'
'mb1',
],
ul: [
'mb1'
'mb1',
],
li: [
'ml-1'
'ml-1',
],
blockquote: [
'mb-1',
Expand All @@ -50,7 +50,7 @@ export default {
'border-r0',
'border-b0',
'border-l4',
'border-g3'
'border-g3',
],
a: [
'font-medium',
Expand All @@ -67,15 +67,15 @@ export default {
],
strong: [
'font-semibold',
'text-g9'
'text-g9',
],
table: [
'w-full',
'mb1',
'border-collapse',
'border-solid',
'border-g3',
'border1'
'border1',
],
th: [
'pt-3',
Expand All @@ -85,7 +85,7 @@ export default {
'border-solid',
'border1',
'border-g3',
'bg-g1'
'bg-g1',
],
td: [
'pt-3',
Expand All @@ -96,5 +96,5 @@ export default {
'border-g1',
'border1',
'bg-g0',
]
],
}
4 changes: 2 additions & 2 deletions src/http/get-index/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function handler () {
'cache-control': process.env.ARC_ENV === 'production'
? 'max-age=86400'
: 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0',
'content-type': 'text/html; charset=utf8'
'content-type': 'text/html; charset=utf8',
},
body: html`
<!DOCTYPE html>
Expand Down Expand Up @@ -81,6 +81,6 @@ export async function handler () {
<arc-landing></arc-landing>
</body>
</html>
`
`,
}
}
4 changes: 2 additions & 2 deletions src/plugins/spellcheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ module.exports = {
res()
})
})
}
}
},
},
}
4 changes: 2 additions & 2 deletions src/shared/not-found-response.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default {
statusCode: 404,
headers: {
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0',
'content-type': 'text/html; charset=utf8'
'content-type': 'text/html; charset=utf8',
},
body: '<p>404: Not found</p>'
body: '<p>404: Not found</p>',
}
4 changes: 2 additions & 2 deletions src/shared/redirect-map.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ export async function redirect (req) {
return {
statusCode: tempRedirects[reqPath] ? 302 : 301,
headers: {
location
}
location,
},
}
}
return
Expand Down
6 changes: 3 additions & 3 deletions src/views/docs/table-of-contents.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const Guides = [
'GitHub Actions',
'GitLab Pipelines',
'AWS EC2',
]
}
],
},
],
'Frontend': [
'Sessions',
Expand Down Expand Up @@ -103,7 +103,7 @@ const About = [
'Contribute',
'Upgrade guide',
'Playground',
'Ejecting from Architect'
'Ejecting from Architect',
]

export default {
Expand Down
Loading

0 comments on commit eb274c7

Please sign in to comment.