Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fakefeik committed Jan 17, 2024
1 parent 8d48f99 commit eb9c332
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 86 deletions.
7 changes: 3 additions & 4 deletions db-viewer-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,13 @@
"eslint-plugin-react": "^7.24.0",
"jsdom": "^22.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"prettier": "^3.2.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-refresh": "^0.10.0",
"react-router-dom": "^6.11.1",
"react-router-dom": "^6.21.2",
"rimraf": "^3.0.2",
"storybook-addon-react-router-v6": "^2.0.10",
"typescript": "^4.3.5",
"typescript": "^5.3.3",
"vite": "^5.0.11",
"vitest": "^1.2.0"
},
Expand Down
3 changes: 3 additions & 0 deletions db-viewer-ui/src/Containers/ObjectDetailsContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export const ObjectDetailsContainer = ({
}

const { allowEdit, allowDelete } = objectMeta?.schemaDescription || { allowEdit: false, allowDelete: false };
// @ts-ignore

Check failure on line 111 in db-viewer-ui/src/Containers/ObjectDetailsContainer.tsx

View workflow job for this annotation

GitHub Actions / test

Do not use "@ts-ignore" because it alters compilation errors
return (
<CommonLayout withArrow>
{useErrorHandlingContainer && <ErrorHandlingContainer />}
Expand Down Expand Up @@ -143,6 +144,8 @@ export const ObjectDetailsContainer = ({
<ObjectKeys
keys={(objectMeta?.typeMetaInformation?.properties || [])
.filter(x => x.isIdentity)
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
.map(x => ({ name: x.name, value: String(objectInfo[x.name]) }))}
/>
</CommonLayout.Header>
Expand Down
4 changes: 4 additions & 0 deletions db-viewer-ui/src/Containers/ObjectTableContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ export const ObjectTableContainer = ({
return properties
.filter(x => x.isIdentity)
.map(x => ({
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
value: item[x.name],
path: x.name,
operator: ObjectFieldFilterOperator.Equals,
Expand All @@ -380,6 +382,8 @@ export const ObjectTableContainer = ({
const query = {};
for (const prop of properties) {
if (prop.isIdentity) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
query[prop.name] = item[prop.name];
}
}
Expand Down
2 changes: 1 addition & 1 deletion db-viewer-ui/src/Domain/ApiBase/ApiBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ interface ParamsMap {
[key: string]: null | undefined | number | string | any[] | boolean;
}

function getExceptionInfo(exception: object, path: string): string {
function getExceptionInfo(exception: any, path: string): string {
return (
exception["Exception" + path] ||
exception["exception" + path] ||
Expand Down
8 changes: 1 addition & 7 deletions db-viewer-ui/stories/Themes/ObjectDetails.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
DEFAULT_THEME,
DARK_THEME,
THEME_2022,
THEME_2022_DARK,
ThemeContext,
} from "@skbkontur/react-ui";
import { DEFAULT_THEME, DARK_THEME, THEME_2022, THEME_2022_DARK, ThemeContext } from "@skbkontur/react-ui";
import { Theme } from "@skbkontur/react-ui/lib/theming/Theme";
import React from "react";
import { MemoryRouter, Route, Routes } from "react-router-dom";
Expand Down
8 changes: 1 addition & 7 deletions db-viewer-ui/stories/Themes/ObjectError.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
DEFAULT_THEME,
DARK_THEME,
THEME_2022,
THEME_2022_DARK,
ThemeContext,
} from "@skbkontur/react-ui";
import { DEFAULT_THEME, DARK_THEME, THEME_2022, THEME_2022_DARK, ThemeContext } from "@skbkontur/react-ui";
import { Theme } from "@skbkontur/react-ui/lib/theming/Theme";
import React from "react";
import { MemoryRouter, Route, Routes } from "react-router-dom";
Expand Down
8 changes: 1 addition & 7 deletions db-viewer-ui/stories/Themes/ObjectNotFound.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
DEFAULT_THEME,
DARK_THEME,
THEME_2022,
THEME_2022_DARK,
ThemeContext,
} from "@skbkontur/react-ui";
import { DEFAULT_THEME, DARK_THEME, THEME_2022, THEME_2022_DARK, ThemeContext } from "@skbkontur/react-ui";
import { Theme } from "@skbkontur/react-ui/lib/theming/Theme";
import React from "react";
import { MemoryRouter, Route, Routes } from "react-router-dom";
Expand Down
8 changes: 1 addition & 7 deletions db-viewer-ui/stories/Themes/ObjectTable.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
DEFAULT_THEME,
DARK_THEME,
THEME_2022,
THEME_2022_DARK,
ThemeContext,
} from "@skbkontur/react-ui";
import { DEFAULT_THEME, DARK_THEME, THEME_2022, THEME_2022_DARK, ThemeContext } from "@skbkontur/react-ui";
import { Theme } from "@skbkontur/react-ui/lib/theming/Theme";
import React from "react";
import { MemoryRouter, Route, Routes } from "react-router-dom";
Expand Down
8 changes: 1 addition & 7 deletions db-viewer-ui/stories/Themes/ObjectTableNoEntries.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
DEFAULT_THEME,
DARK_THEME,
THEME_2022,
THEME_2022_DARK,
ThemeContext,
} from "@skbkontur/react-ui";
import { DEFAULT_THEME, DARK_THEME, THEME_2022, THEME_2022_DARK, ThemeContext } from "@skbkontur/react-ui";
import { Theme } from "@skbkontur/react-ui/lib/theming/Theme";
import React from "react";
import { MemoryRouter, Route, Routes } from "react-router-dom";
Expand Down
8 changes: 1 addition & 7 deletions db-viewer-ui/stories/Themes/ObjectTypes.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
DEFAULT_THEME,
DARK_THEME,
THEME_2022,
THEME_2022_DARK,
ThemeContext,
} from "@skbkontur/react-ui";
import { DEFAULT_THEME, DARK_THEME, THEME_2022, THEME_2022_DARK, ThemeContext } from "@skbkontur/react-ui";
import { Theme } from "@skbkontur/react-ui/lib/theming/Theme";
import React from "react";
import { MemoryRouter, Route, Routes } from "react-router-dom";
Expand Down
1 change: 0 additions & 1 deletion db-viewer-ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"maxNodeModuleJsDepth": 5,
"experimentalDecorators": true,
"noImplicitReturns": true,
"suppressImplicitAnyIndexErrors": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "Node",
Expand Down
68 changes: 30 additions & 38 deletions db-viewer-ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2384,10 +2384,10 @@ __metadata:
languageName: node
linkType: hard

"@remix-run/router@npm:1.9.0":
version: 1.9.0
resolution: "@remix-run/router@npm:1.9.0"
checksum: a3d7bee87ba30e32961550e102cc3253e0056b8de9edb46aed4aad0dad740bc613e2a27f0e991df17e60b9678aeb58fcda0ee396d384d6e5f62960a82b573928
"@remix-run/router@npm:1.14.2":
version: 1.14.2
resolution: "@remix-run/router@npm:1.14.2"
checksum: 422844e88b985f1e287301b302c6cf8169c9eea792f80d40464f97b25393bb2e697228ebd7a7b61444d5a51c5873c4a637aad20acde5886a5caf62e833c5ceee
languageName: node
linkType: hard

Expand Down Expand Up @@ -2539,15 +2539,14 @@ __metadata:
jsdom: "npm:^22.1.0"
lodash: "npm:^4.17.20"
npm-run-all: "npm:^4.1.5"
prettier: "npm:^3.0.3"
prettier: "npm:^3.2.2"
react: "npm:^17.0.2"
react-dom: "npm:^17.0.2"
react-refresh: "npm:^0.10.0"
react-router-dom: "npm:^6.11.1"
react-router-dom: "npm:^6.21.2"
rimraf: "npm:^3.0.2"
storybook-addon-react-router-v6: "npm:^2.0.10"
tslib: "npm:^2.3.0"
typescript: "npm:^4.3.5"
typescript: "npm:^5.3.3"
vite: "npm:^5.0.11"
vitest: "npm:^1.2.0"
peerDependencies:
Expand Down Expand Up @@ -9019,12 +9018,12 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:^3.0.3":
version: 3.0.3
resolution: "prettier@npm:3.0.3"
"prettier@npm:^3.2.2":
version: 3.2.2
resolution: "prettier@npm:3.2.2"
bin:
prettier: bin/prettier.cjs
checksum: ccf1ead9794b017be6b42d0873f459070beef2069eb393c8b4c0d11aa3430acefc54f6d5f44a5b7ce9af05ad8daf694b912f0aa2808d1c22dfa86e61e9d563f8
checksum: ab9470ff6cfd19f28bc424f22e58f2fc4a488d148b9384f6c3739235017c8350cae82b3697392c23d9b098b9d8dfaa1cc9ff4ef25fd45f54c97b95f9cc7a1f7d
languageName: node
linkType: hard

Expand Down Expand Up @@ -9380,41 +9379,34 @@ __metadata:
languageName: node
linkType: hard

"react-refresh@npm:^0.10.0":
version: 0.10.0
resolution: "react-refresh@npm:0.10.0"
checksum: 0050bb02847477459d879bf3a065b106b18fdeaf80bb5a8820dc40fc8a22264edf118bbb4112242c8d5708cee2dac42d63dad296726bafb5bce9e06598d3fe6e
languageName: node
linkType: hard

"react-refresh@npm:^0.14.0":
version: 0.14.0
resolution: "react-refresh@npm:0.14.0"
checksum: 75941262ce3ed4fc79b52492943fd59692f29b84f30f3822713b7e920f28e85c62a4386f85cbfbaea95ed62d3e74209f0a0bb065904b7ab2f166a74ac3812e2a
languageName: node
linkType: hard

"react-router-dom@npm:^6.11.1":
version: 6.16.0
resolution: "react-router-dom@npm:6.16.0"
"react-router-dom@npm:^6.21.2":
version: 6.21.2
resolution: "react-router-dom@npm:6.21.2"
dependencies:
"@remix-run/router": "npm:1.9.0"
react-router: "npm:6.16.0"
"@remix-run/router": "npm:1.14.2"
react-router: "npm:6.21.2"
peerDependencies:
react: ">=16.8"
react-dom: ">=16.8"
checksum: 31dc3bcfd28ae08bb802347d0d637d8ac7e2db530b92e4c0763a19cee2e40a90d1621519ef304bd2add2bb8e6ef13e94970b2e901cc73159692e04a57fff9080
checksum: 24d1470e68f11369776c623b8873c8cf0af476d102317cb3aa6b13b48c86908f10a6e51209ce24dccf40e429538d4e23fda796c190f2ff98f894cb476d51f44d
languageName: node
linkType: hard

"react-router@npm:6.16.0":
version: 6.16.0
resolution: "react-router@npm:6.16.0"
"react-router@npm:6.21.2":
version: 6.21.2
resolution: "react-router@npm:6.21.2"
dependencies:
"@remix-run/router": "npm:1.9.0"
"@remix-run/router": "npm:1.14.2"
peerDependencies:
react: ">=16.8"
checksum: b509cf2a72884e31bf500c823b95bbfdf006c829ca1e97c31366aea1c0e5e43a896b020af5cfba18d23e2d18f5f707a890e4fc13493a2fb8efbdb7330390fb81
checksum: 08701bfe9e7b860442dd0f3c6e36d3ea6106d86db5ec9da930fd56d5782a13b82612826de7dd31bb38832f3fa76437d7a0ca36e63a76256f62d5b738f529a48c
languageName: node
linkType: hard

Expand Down Expand Up @@ -10909,23 +10901,23 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^4.3.5":
version: 4.9.5
resolution: "typescript@npm:4.9.5"
"typescript@npm:^5.3.3":
version: 5.3.3
resolution: "typescript@npm:5.3.3"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 458f7220ab11e0fc191514cc41be1707645ec9a8c2d609448a448e18c522cef9646f58728f6811185a4c35613dacdf6c98cf8965c88b3541d0288c47291e4300
checksum: 6e4e6a14a50c222b3d14d4ea2f729e79f972fa536ac1522b91202a9a65af3605c2928c4a790a4a50aa13694d461c479ba92cedaeb1e7b190aadaa4e4b96b8e18
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A^4.3.5#optional!builtin<compat/typescript>":
version: 4.9.5
resolution: "typescript@patch:typescript@npm%3A4.9.5#optional!builtin<compat/typescript>::version=4.9.5&hash=289587"
"typescript@patch:typescript@npm%3A^5.3.3#optional!builtin<compat/typescript>":
version: 5.3.3
resolution: "typescript@patch:typescript@npm%3A5.3.3#optional!builtin<compat/typescript>::version=5.3.3&hash=e012d7"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 5659316360b5cc2d6f5931b346401fa534107b68b60179cf14970e27978f0936c1d5c46f4b5b8175f8cba0430f522b3ce355b4b724c0ea36ce6c0347fab25afd
checksum: c93786fcc9a70718ba1e3819bab56064ead5817004d1b8186f8ca66165f3a2d0100fee91fa64c840dcd45f994ca5d615d8e1f566d39a7470fc1e014dbb4cf15d
languageName: node
linkType: hard

Expand Down

0 comments on commit eb9c332

Please sign in to comment.