Update eslint config and plugins

This commit is contained in:
Simon Warta
2025-01-15 09:37:57 +01:00
parent cb2397fec7
commit 491381670f
7 changed files with 1468 additions and 1054 deletions
+8
View File
@@ -35,4 +35,12 @@ module.exports = {
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
},
overrides: [
{
files: ["*.config.js"],
rules: {
"@typescript-eslint/no-require-imports": "off",
},
},
],
};
@@ -18,7 +18,7 @@ export const getFieldCommissionSchema = (fieldName: string) =>
.transform((value) => {
try {
return String(value);
} catch (error) {
} catch {
return value;
}
}),
@@ -28,7 +28,7 @@ export const getFieldCommissionSchema = (fieldName: string) =>
.transform((value) => {
try {
return String(value);
} catch (error) {
} catch {
return value;
}
}),
@@ -38,7 +38,7 @@ export const getFieldCommissionSchema = (fieldName: string) =>
.transform((value) => {
try {
return String(value);
} catch (error) {
} catch {
return value;
}
}),
@@ -20,7 +20,7 @@ export const getFieldNumberSchema = (fieldName: string) => {
.transform((value) => {
try {
return BigInt(value);
} catch (error) {
} catch {
return value;
}
})
@@ -38,7 +38,7 @@ export const getFieldNumberSchema = (fieldName: string) => {
.transform((value) => {
try {
return String(value);
} catch (error) {
} catch {
return value;
}
});
@@ -17,7 +17,7 @@ export const getFieldTimeoutHeightSchema = (fieldName: string) =>
.transform((value) => {
try {
return BigInt(value);
} catch (error) {
} catch {
return value;
}
})
@@ -31,7 +31,7 @@ export const getFieldTimeoutHeightSchema = (fieldName: string) =>
.transform((value) => {
try {
return BigInt(value);
} catch (error) {
} catch {
return value;
}
})
+1449 -1043
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -57,8 +57,8 @@
"@types/node": "20.14.9",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"@typescript-eslint/eslint-plugin": "^8.20.0",
"@typescript-eslint/parser": "^8.20.0",
"autoprefixer": "10.4.19",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
@@ -67,7 +67,7 @@
"cosmjs-types": "^0.9.0",
"date-fns": "^3.6.0",
"eslint": "^8.57.0",
"eslint-config-next": "14.2.4",
"eslint-config-next": "^15.1.4",
"eslint-config-prettier": "^9.1.0",
"graphql": "^16.9.0",
"graphql-request": "^7.1.0",
+1 -1
View File
@@ -1,6 +1,6 @@
import { Window as KeplrWindow } from "@keplr-wallet/types";
declare global {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface Window extends KeplrWindow {}
}