Skip to content

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck committed May 30, 2024
1 parent 7c74964 commit e49badc
Show file tree
Hide file tree
Showing 9 changed files with 137 additions and 443 deletions.
4 changes: 2 additions & 2 deletions bundestag.io/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@vanilla-extract/css": "^1.14.2",
"@vanilla-extract/next-plugin": "^2.4.0",
"babel-plugin-styled-components": "^2.1.4",
"eslint": "9.0.0",
"eslint": "8",
"eslint-config-next": "14.1.4",
"typescript": "^5.4.4"
"typescript": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions bundestag.io/admin/src/__generated/gql-ai/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./fragment-masking";
export * from "./gql";
export * from './fragment-masking';
export * from './gql';
4 changes: 2 additions & 2 deletions bundestag.io/admin/src/__generated/gql/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./fragment-masking";
export * from "./gql";
export * from './fragment-masking';
export * from './gql';
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, { useRef, useState } from 'react';
import { Form, Input, Button, InputNumber, Radio, Row, Col, notification, Switch, FormInstance } from 'antd';
import React from 'react';
import { Form, Input, Button, InputNumber, Radio, Row, Col, notification, Switch } from 'antd';
import { axiosClient } from '../../lib/axios';
import { AiVotes, AiVotesProps } from './AiVotes';
import { Vote } from '@/__generated/gql-ai/graphql';

// Ant Design Sub-Elements
const { TextArea } = Input;
Expand Down Expand Up @@ -74,7 +73,7 @@ const VoteResultsForm = ({ data, type, procedureId, period }) => {
});
};

const onFinishFailed = (...args) => {
const onFinishFailed = () => {
notification.error({
message: 'Speichern Fehlgeschlagen!',
description: 'Überprüfe deine eingaben',
Expand Down
14 changes: 4 additions & 10 deletions bundestag.io/admin/src/graphql/mutations/saveVoteResults.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { gql } from "@apollo/client";
import VoteResults from "../fragments/voteResults";
import { gql } from '@apollo/client';
import VoteResults from '../fragments/voteResults';

export const SAVE_VOTE_RESULTS = gql`
mutation saveProcedureCustomData(
Expand All @@ -24,14 +24,8 @@ export const SAVE_VOTE_RESULTS = gql`
`;

export const SAVE_VOTE_RESULTS_NAMED_POLL = gql`
mutation saveProcedurenamedPollCustomData(
$procedureId: String!
$toggleDecision: Boolean!
) {
saveProcedurenamedPollCustomData(
procedureId: $procedureId
toggleDecision: $toggleDecision
) {
mutation saveProcedurenamedPollCustomData($procedureId: String!, $toggleDecision: Boolean!) {
saveProcedurenamedPollCustomData(procedureId: $procedureId, toggleDecision: $toggleDecision) {
...VoteResults
procedureId
}
Expand Down
2 changes: 1 addition & 1 deletion bundestag.io/admin/src/lib/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let errors: string[] = [];
const errors: string[] = [];
const AI_SIMULATION = process.env.AI_SIMULATION === 'true';

if (!process.env.BUNDESTAGIO_SERVER_URL) {
Expand Down
1 change: 1 addition & 0 deletions bundestag.io/admin/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion democracy/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"autoprefixer": "10.4.19",
"cross-env": "7.0.3",
"cssnano": "7.0.1",
"eslint": "9.3.0",
"eslint": "8",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-airbnb-typescript": "18.0.0",
"eslint-config-next": "14.2.3",
Expand Down
Loading

0 comments on commit e49badc

Please sign in to comment.