Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 0 additions & 60 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ This project is licensed under the Apache License - see the [LICENSE.md](LICENSE

- **Documentation**: Check our documentation
- **Issues**: Report bugs and request features on GitHub Issues
- **Discord**: Join our Discord community for support at [https://discord.gg/jQZVcMbdKU](https://discord.gg/jQZVcMbdKU)
- **Discord**: Join our Discord community for support at [https://discord.gg/eyTT9k2KZq](https://discord.gg/eyTT9k2KZq) look for ask multisig platform.


---
Expand Down
80 changes: 80 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import { fixupConfigRules } from "@eslint/compat";
import { FlatCompat } from "@eslint/eslintrc";
import js from "@eslint/js";
import typescriptParser from "@typescript-eslint/parser";
import { dirname } from "path";
import { fileURLToPath } from "url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
});

export default [
...fixupConfigRules(
compat.extends(
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked"
)
),
{
files: ["**/*.{js,jsx,ts,tsx}"],
languageOptions: {
parser: typescriptParser,
parserOptions: {
project: true,
},
},
rules: {
"@typescript-eslint/array-type": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/consistent-type-imports": [
"warn",
{
prefer: "type-imports",
fixStyle: "inline-type-imports",
},
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
},
],
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-misused-promises": [
"error",
{
checksVoidReturn: {
attributes: false,
},
},
],
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/non-nullable-type-assertion-style": "warn",
"react/no-unescaped-entities": "warn",
"@typescript-eslint/no-empty-object-type": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/consistent-indexed-object-style": "warn",
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-argument": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unsafe-call": "warn",
"no-var": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/prefer-includes": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
"@typescript-eslint/restrict-template-expressions": "warn",
},
},
];

10 changes: 10 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ const config = {
defaultLocale: "en",
},
transpilePackages: ["geist"],
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
typescript: {
// Warning: This allows production builds to successfully complete even if
// your project has type errors.
ignoreBuildErrors: false,
},
images: {
remotePatterns: [
{
Expand Down
Loading
Loading