Skip to content

update to ts-eslint 7.x, eslint-plugin-import #1440

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
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
16 changes: 13 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,29 @@
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"project": true,
"sourceType": "module"
},
"plugins": ["prettier"],
"plugins": ["import", "prettier"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier",
"plugin:prettier/recommended"
],
"ignorePatterns": "**/*.d.ts",
"settings": {
"import/resolver": {
"typescript": {}
},
},
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
Expand All @@ -25,7 +33,9 @@
}
],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-duplicate-imports": "error",
"import/no-duplicates": "error",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"no-undef": "off"
}
}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@
"@rollup/plugin-node-resolve": "15.3.0",
"@rollup/plugin-wasm": "^6.2.2",
"@types/jest": "^30.0.0",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"dotenv": "^16.0.3",
"eslint": "^8.31.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^8.6.0",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.0",
"jest": "^30.0.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/xchain-aggregator/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-aggregator/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-aggregator/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-arbitrum/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-avax/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-base/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-base/__test__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-bitcoin/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-bitcoin/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-bitcoin/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-bitcoincash/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-bitcoincash/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-bitcoincash/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
2 changes: 1 addition & 1 deletion packages/xchain-bitcoincash/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export { ClientLedger } from './clientLedger'
/**
* Export the 'defaultBchParams' constant from the 'client' file
*/
export * from './client'
export { defaultBchParams } from './client'

/**
* Re-exports all utility functions from the 'utils' module.
Expand Down
4 changes: 4 additions & 0 deletions packages/xchain-bsc/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-cardano/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-cardano/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-cosmos-sdk/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-cosmos/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-cosmos/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-crypto/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-dash/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-dash/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-dash/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-doge/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-doge/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-doge/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-ethereum/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-evm-providers/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-evm/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-evm/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-evm/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-kujira/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-kujira/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-litecoin/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-litecoin/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-litecoin/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-mayachain-amm/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-mayachain-amm/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-mayachain-amm/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-mayachain-query/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-mayachain-query/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-mayachain-query/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-mayachain/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-mayachain/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-mayamidgard-query/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-mayamidgard-query/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-midgard-query/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-midgard-query/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-midgard-query/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-radix/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-radix/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-radix/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-ripple/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-solana/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-solana/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-solana/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-thorchain-amm/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-thorchain-amm/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-thorchain-amm/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-thorchain-query/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-thorchain-query/__mocks__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-thorchain-query/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
3 changes: 0 additions & 3 deletions packages/xchain-thorchain-query/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,3 @@ export * from './types'

// Export everything from 'utils.ts' which contains utility functions used across the application
export * from './utils'

// Export everything from 'chain-defaults.ts' again (assuming it's a duplicate, can be removed if not needed)
export * from './chain-defaults'
4 changes: 4 additions & 0 deletions packages/xchain-thorchain/__e2e__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
4 changes: 4 additions & 0 deletions packages/xchain-thorchain/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [ "**/*" ]
}
Loading