Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance #80

Merged
merged 15 commits into from
Dec 10, 2024
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

53 changes: 0 additions & 53 deletions .eslintrc.js

This file was deleted.

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## Version 2.1.11

* Added a caching mechanism to reduce the number of requests to the RPC provider.
* Removed handling of network errors due to the high instability of the current implementation of the network handler.
* Updated packages and replaced `require` with `await import` to load migration files.
* Updated the version of the eslint package to the latest one.
* Added the `reportContractsMD` function to the public reporter.
* Fixed a bug where migration files were missing when running the migration command from outside the project root.

## Version 2.1.10

* Added an ability to change signer during the migration
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ This plugin helps you deploy and verify the source code for your Solidity contra
- Enjoy full Typechain support for `Ethers-v6`, `Ethers-v5`, and `Truffle`.
- Leverage the "migration recovery mode" that automatically syncs up the deployment to the last failed transaction.
- Observe the real-time status of transactions being executed.
- Benefit from "reconnection spinner" if the network goes down during the deployment.
- Simplify the `libraries` usage via auto-linking mechanics.
- And much more.

Expand Down
61 changes: 61 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
const js = require("@eslint/js");

const typescript = require("@typescript-eslint/eslint-plugin");
const tsParser = require("@typescript-eslint/parser");

module.exports = [
js.configs.recommended,
{
ignores: ["dist/*.js", "*.md", "test/fixture-projects/**/*.*"],
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
parser: tsParser,
ecmaVersion: "latest",
},
plugins: {
"@typescript-eslint": typescript,
},
rules: {
"arrow-parens": "off",
"no-debugger": "warn",
"no-undef": "off",
"no-unused-var": "off",
"no-unused-vars": "off",
"no-warning-comments": [
"warn",
{
terms: ["hardcoded"],
location: "anywhere",
},
],
"no-return-await": "warn",
"object-curly-spacing": ["error", "always"],
"no-var": "error",
"comma-dangle": ["warn", "always-multiline"],
"linebreak-style": ["error", "unix"],
"generator-star-spacing": "off",
"no-tabs": "error",
"max-len": [
"warn",
{
code: 120,
comments: 120,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
},
],
"no-console": [
"warn",
{
allow: ["warn", "error"],
},
],
"no-multiple-empty-lines": ["error", { max: 1, maxEOF: 0, maxBOF: 0 }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-expressions": "off",
},
},
];
Loading
Loading