Skip to content

Commit

Permalink
Merge branch 'feat/update-dependencies' into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKozAllB committed Jan 15, 2025
2 parents bb88826 + c2e8fc6 commit d1c5e49
Show file tree
Hide file tree
Showing 98 changed files with 12,325 additions and 12,191 deletions.
3 changes: 2 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"node_modules/**",
"src/configs/",
"src/__tests__/services/liquidity-pool/sol/data/",
"src/services/models/srb/token-contract.ts",
"src/services/models/srb/",
"src/services/models/abi/",
"src/services/utils/srb/assembled-tx.ts"
]
}
63 changes: 0 additions & 63 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion esbuild-hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const cache = {};

function esbuildHook(code, filepath) {
const result = transformSync(code, {
target: "node16",
target: "node22",
sourcemap: "both",
loader: "ts",
format: "cjs",
Expand Down
90 changes: 90 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
import _import from "eslint-plugin-import";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["scripts/*", "**/esbuild-hook.js"],
}, ...fixupConfigRules(compat.extends(
"eslint:recommended",
"plugin:eslint-comments/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier",
)), {
plugins: {
import: fixupPluginRules(_import),
"@typescript-eslint": fixupPluginRules(typescriptEslint),
},

languageOptions: {
globals: {
...globals.node,
},

parser: tsParser,
ecmaVersion: 5,
sourceType: "commonjs",

parserOptions: {
project: "./tsconfig.lint.json",
},
},

settings: {
"import/resolver": {
typescript: {
project: "tsconfig.json",
},
},
},

rules: {
"import/order": ["error", {
alphabetize: {
order: "asc",
caseInsensitive: true,
},
}],

"import/no-extraneous-dependencies": "error",
"import/no-mutable-exports": "error",
"import/no-unused-modules": "error",

"@typescript-eslint/no-unused-vars": ["warn", {
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^ignore"
}],

"eslint-comments/no-unlimited-disable": "off",
"eslint-comments/disable-enable-pair": "off",
"@typescript-eslint/ban-tslint-comment": "off",
"@typescript-eslint/ban-ts-comment": ["warn", {
minimumDescriptionLength: 3,
}],

"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-explicit-any": "off",
},
}];
Loading

0 comments on commit d1c5e49

Please sign in to comment.