Skip to content

Commit

Permalink
Lint fixed and removed unwanted packages (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
vipinpaul authored Jun 14, 2024
1 parent 3a4ba4b commit 3b41bbc
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 23 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/control-has-associated-label": "off",
"react/require-default-props": "off",
"react/forbid-prop-types": "off",
"linebreak-style": 0,
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@
"@mui/icons-material": "^5.10.9",
"@mui/lab": "^5.0.0-alpha.104",
"@mui/material": "^5.10.12",
"@ory/kratos-client": "^0.10.1",
"@radix-ui/react-dialog": "^1.0.3",
"@radix-ui/react-dropdown-menu": "^2.0.4",
"@supabase/supabase-js": "^2.26.0",
Expand Down Expand Up @@ -232,7 +231,6 @@
"workbox-routing": "^7.0.0",
"workbox-strategies": "^7.0.0",
"workbox-streams": "^7.0.0",
"ws": "^8.8.0",
"xregexp": "^5.1.1",
"yarn": "^1.22.19"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import React, { useEffect, useState } from 'react';
import { HtmlPerfEditor } from '@xelah/type-perf-html';
import { getCurrentCursorPosition, pasteTextAtCursorPosition } from '@/util/cursorUtils';
import { getCurrentVerse, getCurrentChapter } from '@/components/EditorPage/JuxtaTextEditor/utils/getReferences';
import { on } from 'ws';

const getTarget = ({ content }) => {
const div = document.createElement('div');
Expand Down
1 change: 1 addition & 0 deletions renderer/src/components/EditorPage/Reference/OBS/ObsTn.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ function ObsTnCard({
}, [chapter, languageId, owner, resourceId, offlineResource, scrollLock]);

return (
// eslint-disable-next-line no-nested-ternary
markdown ? (
<ObsResourceCard
{...props}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { getCurrentCursorPosition, pasteTextAtCursorPosition } from '@/util/curs
import {
getCurrentVerse, getCurrentChapter,
} from '@/components/EditorPage/TextEditor/utils/getReferences';
import { on } from 'ws';

const getTarget = ({ content }) => {
const div = document.createElement('div');
Expand Down
2 changes: 1 addition & 1 deletion renderer/src/components/Error/Error.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import { Configuration, PublicApi } from '@ory/kratos-client';
// import { Configuration, PublicApi } from '@ory/kratos-client';
import React from 'react';
// import configData from '../../config.json';

Expand Down
2 changes: 1 addition & 1 deletion renderer/src/components/Login/useAuthentication.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable */
import * as localForage from 'localforage';
import React from 'react';
import { Configuration, PublicApi } from '@ory/kratos-client';
// import { Configuration, PublicApi } from '@ory/kratos-client';
import * as logger from '../../logger';
// import configData from '../../config.json';
// import { isElectron } from '../../core/handleElectron';
Expand Down
2 changes: 1 addition & 1 deletion renderer/src/components/Signup/useApi.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import { Configuration, PublicApi } from '@ory/kratos-client';
// import { Configuration, PublicApi } from '@ory/kratos-client';
import React from 'react';
// import configData from '../../config.json';

Expand Down
18 changes: 2 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3513,13 +3513,6 @@
read-package-json-fast "^2.0.3"
which "^2.0.2"

"@ory/kratos-client@^0.10.1":
version "0.10.1"
resolved "https://registry.yarnpkg.com/@ory/kratos-client/-/kratos-client-0.10.1.tgz#4957233e4ef6e1845e28765d32244ef89e69b93b"
integrity sha512-WfoEW1HKeKUkG+57oShb6D3xENM3DpRbUxvVxbPZkJUKzFlXpBzbX71k2oQ6ajv6cy0ULVEKFLNcHpAoGjraNA==
dependencies:
axios "^0.21.4"

"@parcel/[email protected]":
version "2.4.1"
resolved "https://registry.yarnpkg.com/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.4.1.tgz#c2c19a3c442313ff007d2d7a9c2c1dd3e1c9ca84"
Expand Down Expand Up @@ -5961,13 +5954,6 @@ [email protected]:
follow-redirects "1.5.10"
is-buffer "^2.0.2"

axios@^0.21.4:
version "0.21.4"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575"
integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==
dependencies:
follow-redirects "^1.14.0"

axios@^0.27.2:
version "0.27.2"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.27.2.tgz#207658cc8621606e586c85db4b41a750e756d972"
Expand Down Expand Up @@ -10204,7 +10190,7 @@ [email protected]:
dependencies:
debug "=3.1.0"

follow-redirects@^1.0.0, follow-redirects@^1.14.0, follow-redirects@^1.14.9, follow-redirects@^1.15.2:
follow-redirects@^1.0.0, follow-redirects@^1.14.9, follow-redirects@^1.15.2:
version "1.15.6"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b"
integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==
Expand Down Expand Up @@ -22264,7 +22250,7 @@ ws@^7.4.6:
resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591"
integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==

ws@^8.13.0, ws@^8.14.2, ws@^8.8.0:
ws@^8.13.0, ws@^8.14.2:
version "8.16.0"
resolved "https://registry.yarnpkg.com/ws/-/ws-8.16.0.tgz#d1cd774f36fbc07165066a60e40323eab6446fd4"
integrity sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==
Expand Down

0 comments on commit 3b41bbc

Please sign in to comment.