Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FIT-Connect
Entwicklungsportal
Commits
add5b03f
Commit
add5b03f
authored
Jun 29, 2022
by
René Rösner
Browse files
FIX: Eslint multiline config(
planning#428
)
parent
9bdfa419
Changes
5
Hide whitespace changes
Inline
Side-by-side
.eslintrc.json
View file @
add5b03f
{
"env"
:
{
"browser"
:
true
,
"es2021"
:
true
},
"extends"
:
[
"plugin:vue/essential"
,
"standard"
"env"
:
{
"browser"
:
true
,
"es2021"
:
true
},
"extends"
:
[
"plugin:vue/essential"
,
"standard"
],
"parserOptions"
:
{
"ecmaVersion"
:
"latest"
,
"parser"
:
"@typescript-eslint/parser"
,
"sourceType"
:
"module"
},
"plugins"
:
[
"vue"
,
"@typescript-eslint"
],
"rules"
:
{
"indent"
:
[
"error"
,
4
],
"parserOptions"
:
{
"ecmaVersion"
:
"latest"
,
"parser"
:
"@typescript-eslint/parser"
,
"sourceType"
:
"module"
},
"plugins"
:
[
"vue"
,
"@typescript-eslint"
"space-before-function-paren"
:
[
"error"
,
{
"anonymous"
:
"always"
,
"named"
:
"never"
,
"asyncArrow"
:
"always"
}
],
"rules"
:
{
"indent"
:
[
"error"
,
4
],
"space-before-function-paren"
:
[
"error"
,
{
"anonymous"
:
"always"
,
"named"
:
"never"
,
"asyncArrow"
:
"always"
}
],
"eqeqeq"
:
0
,
"array-callback-return"
:
0
,
"id-length"
:
[
"error"
,
{
"min"
:
4
,
"exceptions"
:
[
"alt"
,
"App"
,
"id"
,
"img"
,
"key"
,
"src"
,
"tag"
]
}
],
"comma-dangle"
:
"off"
,
"@typescript-eslint/comma-dangle"
:
[
"error"
,
{
"arrays"
:
"never"
,
"objects"
:
"always-multiline"
,
"imports"
:
"never"
,
"exports"
:
"never"
,
"functions"
:
"never"
}
"eqeqeq"
:
0
,
"array-callback-return"
:
0
,
"id-length"
:
[
"error"
,
{
"min"
:
4
,
"exceptions"
:
[
"alt"
,
"App"
,
"id"
,
"img"
,
"key"
,
"src"
,
"tag"
]
}
}
\ No newline at end of file
}
],
"comma-dangle"
:
"off"
,
"@typescript-eslint/comma-dangle"
:
[
"error"
,
{
"arrays"
:
"always-multiline"
,
"objects"
:
"always-multiline"
,
"imports"
:
"never"
,
"exports"
:
"never"
,
"functions"
:
"never"
}
]
}
}
components/layout.tsx
View file @
add5b03f
...
...
@@ -23,10 +23,10 @@ export function Layout({ children }) {
<
FooterColumn
title
=
{
'
Rechtliches
'
}
links
=
{
[
{
label
:
'
Impressum
'
,
href
:
'
https://www.fitko.de/impressum
'
},
{
label
:
'
Datenschutz
'
,
href
:
'
https://www.fitko.de/datenschutz
'
},
{
label
:
'
Barrierefreiheit
'
,
href
:
'
https://www.fitko.de/barrierefreiheitserklaerung
'
}
{
label
:
'
Barrierefreiheit
'
,
href
:
'
https://www.fitko.de/barrierefreiheitserklaerung
'
}
,
]
}
/>
<
FooterColumn
title
=
{
''
}
links
=
{
[
{
label
:
''
,
href
:
'
/
'
}
{
label
:
''
,
href
:
'
/
'
}
,
]
}
/>
</
Footer
>
</>
...
...
lib/contentful/index.ts
View file @
add5b03f
...
...
@@ -44,7 +44,6 @@ export async function fetchServices(): Promise<Entry<any>[]> {
content_type
:
'
service
'
,
})
if
(
services
.
items
)
return
services
.
items
console
.
log
(
'
Error getting Entries for services.
'
)
}
export
async
function
fetchService
(
slug
):
Promise
<
Entry
<
any
>>
{
...
...
next.config.js
View file @
add5b03f
...
...
@@ -4,6 +4,5 @@ const conf = {
basePath
:
`
${
process
.
env
.
NEXT_PUBLIC_BASE_PATH
?
process
.
env
.
NEXT_PUBLIC_BASE_PATH
:
''
}
`
,
trailingSlash
:
!
process
.
env
.
TRAILING_SLASH
||
process
.
env
.
TRAILING_SLASH
!==
'
off
'
}
console
.
log
(
'
conf:
'
,
conf
)
module
.
exports
=
conf
pages/404.tsx
View file @
add5b03f
...
...
@@ -27,7 +27,7 @@ export default function NotFound() {
title
:
'
Blog
'
,
description
:
'
Read our latest news and articles
'
,
icon
:
IconRss
,
}
}
,
]
return
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment