Skip to content

Commit 01fbf1c

Browse files
authored
Update deps (#146)
* bump yarn * update deps * update deps * bump version
1 parent c52e3f4 commit 01fbf1c

File tree

9 files changed

+3026
-10667
lines changed

9 files changed

+3026
-10667
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.eslintrc.js
2+
node_modules/

.eslintrc.js

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,36 @@
1-
const base = require('@open-web3/dev-config/config/eslint.cjs');
2-
31
module.exports = {
4-
...base,
5-
ignorePatterns: [
6-
'.eslintrc.js',
7-
'.github/**',
8-
'.vscode/**',
9-
'.yarn/**',
10-
'**/lib/*',
11-
'**/bin/**',
12-
'**/build/*',
13-
'**/coverage/*',
14-
'**/node_modules/*'
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
parserOptions: { project: 'tsconfig.json' },
5+
plugins: ['@typescript-eslint', 'import', 'sort-imports-es6-autofix'],
6+
extends: [
7+
'eslint:recommended',
8+
'plugin:@typescript-eslint/recommended',
9+
'prettier',
10+
'plugin:import/recommended',
11+
'plugin:import/typescript',
1512
],
16-
parserOptions: {
17-
...base.parserOptions,
18-
project: ['./tsconfig.json'],
19-
},
2013
rules: {
21-
...base.rules,
22-
'@typescript-eslint/indent': 'off',
23-
'space-before-function-paren': 'off',
24-
'@typescript-eslint/explicit-function-return-type': 'off',
25-
'@typescript-eslint/no-explicit-any': 'off',
2614
'@typescript-eslint/no-empty-function': 'off',
27-
'no-useless-constructor': 'off',
28-
'no-unused-expressions': 'off',
29-
'@typescript-eslint/interface-name-prefix': 'off',
30-
'comma-dangle': 'off',
31-
'dot-notation': 'off',
32-
'no-useless-call': 'off',
3315
'@typescript-eslint/explicit-module-boundary-types': 'off',
34-
'@typescript-eslint/no-unsafe-member-access': 'off',
35-
'@typescript-eslint/no-unsafe-assignment': 'off',
36-
'@typescript-eslint/no-var-requires': 'warn',
37-
'@typescript-eslint/ban-types': 'warn',
16+
'sort-imports-es6-autofix/sort-imports-es6': 'error',
17+
'@typescript-eslint/no-explicit-any': 'off',
18+
'@typescript-eslint/ban-ts-comment': 'off',
19+
'@typescript-eslint/no-unused-vars': [
20+
'warn',
21+
{
22+
argsIgnorePattern: '^_',
23+
varsIgnorePattern: '^_',
24+
caughtErrorsIgnorePattern: '^_',
25+
},
26+
],
27+
'@typescript-eslint/no-floating-promises': ['error'],
28+
},
29+
settings: {
30+
'import/resolver': {
31+
typescript: {
32+
project: 'tsconfig.json',
33+
},
34+
},
3835
},
39-
};
36+
};

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.yarn
2+
*.yml
3+
*.md

.yarn/releases/yarn-3.4.1.cjs

Lines changed: 0 additions & 873 deletions
This file was deleted.

.yarn/releases/yarn-3.6.0.cjs

Lines changed: 874 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ plugins:
44
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
55
spec: "@yarnpkg/plugin-interactive-tools"
66

7-
yarnPath: .yarn/releases/yarn-3.4.1.cjs
7+
yarnPath: .yarn/releases/yarn-3.6.0.cjs

package.json

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@open-web3/parachain-launch",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"author": "Laminar Developers <hello@laminar.one>",
55
"license": "Apache-2.0",
66
"main": "lib/index.js",
@@ -21,29 +21,42 @@
2121
},
2222
"scripts": {
2323
"build": "tsc --build tsconfig.json",
24-
"lint": "polkadot-dev-run-lint",
24+
"lint": "tsc --noEmit && eslint . --ext .js,.ts && prettier --check .",
25+
"fix": "eslint . --ext .js,.ts --fix && prettier -w .",
2526
"start": "ts-node src/index.ts"
2627
},
2728
"dependencies": {
28-
"@polkadot/api": "^10.5.1",
29-
"@polkadot/keyring": "^12.1.1",
30-
"@polkadot/util": "^12.1.1",
31-
"@polkadot/util-crypto": "^12.1.1",
29+
"@polkadot/api": "^10.9.1",
30+
"@polkadot/keyring": "^12.3.2",
31+
"@polkadot/util": "^12.3.2",
32+
"@polkadot/util-crypto": "^12.3.2",
3233
"lodash": "^4.17.21",
3334
"readline-sync": "^1.4.10",
3435
"shelljs": "^0.8.5",
3536
"yaml": "^2.3.1",
3637
"yargs": "^17.7.2"
3738
},
3839
"devDependencies": {
39-
"@open-web3/dev-config": "^0.2.9",
4040
"@types/lodash": "^4.14.195",
4141
"@types/readline-sync": "^1.4.4",
4242
"@types/shelljs": "^0.8.12",
4343
"@types/yargs": "^17.0.24",
44+
"@typescript-eslint/eslint-plugin": "^5.59.11",
45+
"@typescript-eslint/parser": "^5.59.11",
46+
"eslint": "^8.42.0",
47+
"eslint-config-prettier": "^8.8.0",
48+
"eslint-import-resolver-typescript": "^3.5.5",
49+
"eslint-plugin-import": "^2.27.5",
50+
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
51+
"prettier": "^2.8.8",
4452
"ts-node": "^10.9.1",
45-
"typescript": "^5.0.4"
53+
"typescript": "~5.0.0"
4654
},
4755
"bin": "./bin/parachain-launch",
48-
"packageManager": "yarn@3.4.1"
56+
"packageManager": "yarn@3.6.0",
57+
"prettier": {
58+
"tabWidth": 2,
59+
"semi": true,
60+
"singleQuote": true
61+
}
4962
}

src/index.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1+
import * as readline from 'readline-sync';
2+
import * as shell from 'shelljs';
3+
import { Keyring } from '@polkadot/api';
4+
import { cryptoWaitReady, decodeAddress, encodeAddress } from '@polkadot/util-crypto';
5+
import { hideBin } from 'yargs/helpers';
6+
import { waitReady } from '@polkadot/wasm-crypto';
17
import YAML from 'yaml';
8+
import _ from 'lodash';
29
import fs from 'fs';
310
import path from 'path';
4-
import readline from 'readline-sync';
5-
import shell from 'shelljs';
6-
import { Keyring } from '@polkadot/api';
7-
import { cryptoWaitReady, encodeAddress, decodeAddress } from '@polkadot/util-crypto';
8-
import { waitReady } from '@polkadot/wasm-crypto';
911
import yargs from 'yargs';
10-
import { hideBin } from 'yargs/helpers';
11-
import _ from 'lodash';
1212

13-
import { Config, Parachain, Chain, DockerConfig, DockerNode } from './types';
13+
import { Chain, Config, DockerConfig, DockerNode, Parachain } from './types';
1414

1515
/**
1616
* Check can override file
@@ -240,7 +240,9 @@ const getAddress = (val: string) => {
240240
try {
241241
const addr = decodeAddress(val);
242242
return encodeAddress(addr);
243-
} catch {}
243+
} catch {
244+
// ignore
245+
}
244246

245247
const keyring = new Keyring();
246248
const pair = keyring.createFromUri(`//${_.startCase(val)}`, undefined, 'sr25519');
@@ -557,7 +559,7 @@ const generate = async (config: Config, { output, yes }: { output: string; yes:
557559
console.log('docker-compose.yml generated at', dockerComposePath);
558560
};
559561

560-
yargs(hideBin(process.argv))
562+
void yargs(hideBin(process.argv))
561563
.strict()
562564
.options({
563565
output: {

0 commit comments

Comments
 (0)