Skip to content

Commit eb274c7

Browse files
committed
Lint
1 parent 25b2a4f commit eb274c7

File tree

16 files changed

+799
-798
lines changed

16 files changed

+799
-798
lines changed

src/http/any-catchall/index.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import algolia from '@architect/views/modules/components/algolia.mjs'
1111
const staticProxy = asap({
1212
alias: { '/playground': '/playground.html' },
1313
passthru: true,
14-
spa: false
14+
spa: false,
1515
})
1616

1717
async function robots (req) {
@@ -34,8 +34,8 @@ async function notFound (req) {
3434
html: NotFound({ term }),
3535
scripts: [ '/index.js' ],
3636
thirdparty: algolia,
37-
toc
38-
})
37+
toc,
38+
}),
3939
}
4040
}
4141

src/http/get-api-package/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ export async function handler (req) {
1515
body = JSON.stringify({
1616
name: e.name,
1717
message: e.message,
18-
stack: e.stack
18+
stack: e.stack,
1919
})
2020
}
2121

2222
return {
2323
statusCode,
24-
body
24+
body,
2525
}
2626
}

src/http/get-docs-000lang-catchall/index.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ async function handler (req) {
3434
editURL += join(lang, ...parts, doc)
3535

3636
const filePath = join(
37+
3738
new URL('.', import.meta.url).pathname,
3839
'node_modules',
3940
'@architect',
@@ -63,7 +64,7 @@ async function handler (req) {
6364
markdownItAnchor: {
6465
permalink: anchor.permalink.headerLink({
6566
class: 'text-p1 text-h1 text-a2 no-underline underline-h',
66-
})
67+
}),
6768
},
6869
},
6970
})
@@ -106,7 +107,7 @@ async function handler (req) {
106107
state: { notFoundTerm: docName },
107108
thirdparty: algolia(lang),
108109
toc,
109-
})
110+
}),
110111
}
111112
}
112113
}

src/http/get-docs-000lang-catchall/markdown-class-mappings.mjs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,43 @@ export default {
22
h1: [
33
'mb3',
44
'font-semibold',
5-
'text5'
5+
'text5',
66
],
77
h2: [
88
'mt3',
99
'mb-1',
1010
'font-semibold',
11-
'text4'
11+
'text4',
1212
],
1313
h3: [
1414
'mt3',
1515
'mb-1',
1616
'font-semibold',
17-
'text3'
17+
'text3',
1818
],
1919
h4: [
2020
'mt3',
2121
'mb-1',
2222
'font-semibold',
23-
'text2'
23+
'text2',
2424
],
2525
h5: [
2626
'mt3',
2727
'mb-1',
2828
'font-semibold',
29-
'text1'
29+
'text1',
3030
],
3131
p: [
32-
'mb-1'
32+
'mb-1',
3333
],
3434
ol: [
35-
'mb1'
35+
'mb1',
3636
],
3737
ul: [
38-
'mb1'
38+
'mb1',
3939
],
4040
li: [
41-
'ml-1'
41+
'ml-1',
4242
],
4343
blockquote: [
4444
'mb-1',
@@ -50,7 +50,7 @@ export default {
5050
'border-r0',
5151
'border-b0',
5252
'border-l4',
53-
'border-g3'
53+
'border-g3',
5454
],
5555
a: [
5656
'font-medium',
@@ -67,15 +67,15 @@ export default {
6767
],
6868
strong: [
6969
'font-semibold',
70-
'text-g9'
70+
'text-g9',
7171
],
7272
table: [
7373
'w-full',
7474
'mb1',
7575
'border-collapse',
7676
'border-solid',
7777
'border-g3',
78-
'border1'
78+
'border1',
7979
],
8080
th: [
8181
'pt-3',
@@ -85,7 +85,7 @@ export default {
8585
'border-solid',
8686
'border1',
8787
'border-g3',
88-
'bg-g1'
88+
'bg-g1',
8989
],
9090
td: [
9191
'pt-3',
@@ -96,5 +96,5 @@ export default {
9696
'border-g1',
9797
'border1',
9898
'bg-g0',
99-
]
99+
],
100100
}

src/http/get-index/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function handler () {
1717
'cache-control': process.env.ARC_ENV === 'production'
1818
? 'max-age=86400'
1919
: 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0',
20-
'content-type': 'text/html; charset=utf8'
20+
'content-type': 'text/html; charset=utf8',
2121
},
2222
body: html`
2323
<!DOCTYPE html>
@@ -81,6 +81,6 @@ export async function handler () {
8181
<arc-landing></arc-landing>
8282
</body>
8383
</html>
84-
`
84+
`,
8585
}
8686
}

src/plugins/spellcheck.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ module.exports = {
3434
res()
3535
})
3636
})
37-
}
38-
}
37+
},
38+
},
3939
}

src/shared/not-found-response.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default {
22
statusCode: 404,
33
headers: {
44
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0',
5-
'content-type': 'text/html; charset=utf8'
5+
'content-type': 'text/html; charset=utf8',
66
},
7-
body: '<p>404: Not found</p>'
7+
body: '<p>404: Not found</p>',
88
}

src/shared/redirect-map.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ export async function redirect (req) {
269269
return {
270270
statusCode: tempRedirects[reqPath] ? 302 : 301,
271271
headers: {
272-
location
273-
}
272+
location,
273+
},
274274
}
275275
}
276276
return

src/views/docs/table-of-contents.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const Guides = [
2525
'GitHub Actions',
2626
'GitLab Pipelines',
2727
'AWS EC2',
28-
]
29-
}
28+
],
29+
},
3030
],
3131
'Frontend': [
3232
'Sessions',
@@ -103,7 +103,7 @@ const About = [
103103
'Contribute',
104104
'Upgrade guide',
105105
'Playground',
106-
'Ejecting from Architect'
106+
'Ejecting from Architect',
107107
]
108108

109109
export default {

0 commit comments

Comments
 (0)