fix: 🐛 Fixes lint errors
This commit is contained in:
parent
d26fd62e5c
commit
e19c8a7747
|
@ -20,7 +20,9 @@ export const Notification = ({ item }: NotificationProps) => {
|
|||
const displayDate = date ? moment(date).fromNow() : null
|
||||
|
||||
const sharedCookiesEnabled = Boolean(
|
||||
item.url && (item.url.startsWith('https://start.unikum.net/') || item.url.startsWith('https://hjarntorget.goteborg.se'))
|
||||
item.url &&
|
||||
(item.url.startsWith('https://start.unikum.net/') ||
|
||||
item.url.startsWith('https://hjarntorget.goteborg.se'))
|
||||
)
|
||||
|
||||
return (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable no-useless-escape */
|
||||
export const calendars = () => ({
|
||||
"url": "https://hjarntorget.goteborg.se/pp/system/calendar/cal_events.jsp",
|
||||
"headers": {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { Fetcher } from '../../../api/lib/fetcher'
|
||||
import { Response } from '../../../api/lib/types'
|
||||
import { Fetcher, Response } from '@skolplattformen/api'
|
||||
import { calendars, calendar_14241345 } from './calendars';
|
||||
import { currentUser } from './current-user';
|
||||
import { events } from './events';
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable no-useless-escape */
|
||||
export const information = () => ({
|
||||
"url": "https://hjarntorget.goteborg.se/api/information/messages-by-date-desc?messageStatus=CURRENT&offset=0&limit=10&language=en",
|
||||
"headers": {
|
||||
|
|
|
@ -62,6 +62,7 @@ function requestLogger(httpModule) {
|
|||
content.text = data
|
||||
break
|
||||
case 'blob':
|
||||
// eslint-disable-next-line no-case-declarations
|
||||
const buffer = await data.arrayBuffer()
|
||||
content.blob = Buffer.from(buffer).toString('base64')
|
||||
break
|
||||
|
|
|
@ -111,6 +111,7 @@
|
|||
"babel-jest": "^27.2.5",
|
||||
"detox": "18.20.2",
|
||||
"eslint": "7.32.0",
|
||||
"eslint-config-airbnb-typescript": "^16.0.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-import": "2.22.1",
|
||||
"eslint-plugin-jsx-a11y": "6.4.1",
|
||||
|
|
21
yarn.lock
21
yarn.lock
|
@ -5009,7 +5009,7 @@ concat-with-sourcemaps@^1.1.0:
|
|||
dependencies:
|
||||
source-map "^0.6.1"
|
||||
|
||||
confusing-browser-globals@^1.0.9:
|
||||
confusing-browser-globals@^1.0.10, confusing-browser-globals@^1.0.9:
|
||||
version "1.0.10"
|
||||
resolved "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.10.tgz"
|
||||
integrity sha512-gNld/3lySHwuhaVluJUKLePYirM3QNCKzVxqAdhJII9/WXKVX5PURzMVJspS1jTslSqjeuG4KMVTSouit5YPHA==
|
||||
|
@ -6198,6 +6198,23 @@ escodegen@^2.0.0:
|
|||
optionalDependencies:
|
||||
source-map "~0.6.1"
|
||||
|
||||
eslint-config-airbnb-base@^15.0.0:
|
||||
version "15.0.0"
|
||||
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz#6b09add90ac79c2f8d723a2580e07f3925afd236"
|
||||
integrity sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==
|
||||
dependencies:
|
||||
confusing-browser-globals "^1.0.10"
|
||||
object.assign "^4.1.2"
|
||||
object.entries "^1.1.5"
|
||||
semver "^6.3.0"
|
||||
|
||||
eslint-config-airbnb-typescript@^16.0.0:
|
||||
version "16.0.0"
|
||||
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-typescript/-/eslint-config-airbnb-typescript-16.0.0.tgz#75007e27d5a7fb75530721f48197817c1d2ad4d1"
|
||||
integrity sha512-qDOyD0YYZo5Us1YvOnWig2Ly/+IlQKmMZpnqKnJgVtHdK8SkjaSyVBHKbD41dEaQxk8vRVGBC94PuR2ceSwbLQ==
|
||||
dependencies:
|
||||
eslint-config-airbnb-base "^15.0.0"
|
||||
|
||||
eslint-config-prettier@^6.10.1:
|
||||
version "6.15.0"
|
||||
resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.15.0.tgz"
|
||||
|
@ -10695,7 +10712,7 @@ object.assign@^4.1.0, object.assign@^4.1.2:
|
|||
has-symbols "^1.0.1"
|
||||
object-keys "^1.1.1"
|
||||
|
||||
object.entries@^1.1.3, object.entries@^1.1.4:
|
||||
object.entries@^1.1.3, object.entries@^1.1.4, object.entries@^1.1.5:
|
||||
version "1.1.5"
|
||||
resolved "https://registry.npmjs.org/object.entries/-/object.entries-1.1.5.tgz"
|
||||
integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==
|
||||
|
|
Loading…
Reference in New Issue