Skip to content

Commit

Permalink
Fix troubles with eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
semkedaniil committed Oct 13, 2023
1 parent 8591331 commit c09f8c2
Show file tree
Hide file tree
Showing 6 changed files with 512 additions and 130 deletions.
3 changes: 3 additions & 0 deletions cassandra-distributed-task-queue-ui/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"plugin:prettier/recommended"
],
"rules": {
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-unused-vars": "warn",
"react/jsx-uses-react": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/ban-types": [
"error",
Expand Down
2 changes: 1 addition & 1 deletion cassandra-distributed-task-queue-ui/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import ReactDom from "react-dom";
import { Route, Navigate, Routes, BrowserRouter } from "react-router-dom";

import { RemoteTaskQueueApplication, RtqMonitoringApi } from "./src";
import { RtqMonitoringApiFake } from "./stories/Api/RtqMonitoringApiFake";
import { CustomRenderer } from "./src/Domain/CustomRenderer";
import { RtqMonitoringApiFake } from "./stories/Api/RtqMonitoringApiFake";

const rtqApiPrefix = "/remote-task-queue/";

Expand Down
2 changes: 1 addition & 1 deletion cassandra-distributed-task-queue-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-node": "^0.3.4",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.24.0",
"jsdom": "^22.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { RangeSelector } from "../components/DateTimeRangePicker/RangeSelector";

import { RtqMonitoringSearchRequest } from "./Api/RtqMonitoringSearchRequest";
import { RtqMonitoringTaskModel } from "./Api/RtqMonitoringTaskModel";
import {RangeSelector} from "../components/DateTimeRangePicker/RangeSelector";
import {TimeUtils} from "./Utils/TimeUtils";
import { TimeUtils } from "./Utils/TimeUtils";

export interface ICustomRenderer {
renderDetails: (target: any, path: string[]) => null | JSX.Element;
Expand Down Expand Up @@ -40,4 +41,4 @@ export class CustomRenderer implements ICustomRenderer {
public renderDetails(target: any, path: string[]): null | JSX.Element {
return null;
}
}
}
2 changes: 1 addition & 1 deletion cassandra-distributed-task-queue-ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineConfig(({ mode }) => {
server: {
proxy: {
"/remote-task-queue": "http://localhost:4413/",
}
},
},
test: {
include: ["./tests/**/*.tsx"],
Expand Down
Loading

0 comments on commit c09f8c2

Please sign in to comment.