git.delta.rocks / unique-network / refs/commits / 12f45baa529e

difftreelog

Merge pull request #240 from UniqueNetwork/feature/types-repo

kozyrevdev2021-12-02parents: #767e0d8 #26aa849.patch.diff
in: master

2 files changed

modifiedtests/.eslintrc.jsondiffbeforeafterboth
before · tests/.eslintrc.json
1{2    "env": {3        "browser": true,4        "es2020": true5    },6    "extends": [7        "eslint:recommended",8        "plugin:@typescript-eslint/recommended"9    ],10    "parser": "@typescript-eslint/parser",11    "parserOptions": {12        "ecmaVersion": 11,13        "sourceType": "module"14    },15    "plugins": [16        "@typescript-eslint"17    ],18    "rules": {19        "indent": [20            "error",21            2,22            {23                "SwitchCase": 124            }25        ],26        "function-call-argument-newline": [27            "error",28            "consistent"29        ],30        "function-paren-newline": [31            "error",32            "multiline"33        ],34        "linebreak-style": [35            "error",36            "unix"37        ],38        "quotes": [39            "error",40            "single",41            {42                "avoidEscape": true43            }44        ],45        "semi": [46            "error",47            "always"48        ],49        "@typescript-eslint/explicit-module-boundary-types": "off",50        "comma-dangle": [51            "error",52            "always-multiline"53        ],54        "no-unused-vars": "off",55        "@typescript-eslint/no-empty-function": "off",56        "@typescript-eslint/no-non-null-assertion": "off",57        "@typescript-eslint/no-explicit-any": "off",58        "@typescript-eslint/no-unused-vars": "warn",59        "no-async-promise-executor": "warn",60        "@typescript-eslint/no-empty-interface": "off",61        "prefer-const": [62            "error",63            {64                "destructuring": "all"65            }66        ],67        "object-curly-spacing": "warn",68        "arrow-spacing": "warn",69        "array-bracket-spacing": "warn",70        "template-curly-spacing": "warn",71        "space-in-parens": "warn",72        "@typescript-eslint/naming-convention": [73            "warn",74            {75                "selector": "default",76                "format": [77                    "camelCase"78                ],79                "leadingUnderscore": "allow",80                "trailingUnderscore": "allow"81            },82            {83                "selector": "variable",84                "format": [85                    "camelCase",86                    "UPPER_CASE"87                ],88                "leadingUnderscore": "allow",89                "trailingUnderscore": "allow"90            },91            {92                "selector": "typeLike",93                "format": [94                    "PascalCase"95                ]96            },97            {98                "selector": "memberLike",99                "format": null100            }101        ]102    }103}
after · tests/.eslintrc.json
1{2    "env": {3        "browser": true,4        "es2020": true5    },6    "extends": [7        "eslint:recommended",8        "plugin:@typescript-eslint/recommended"9    ],10    "parser": "@typescript-eslint/parser",11    "parserOptions": {12        "ecmaVersion": 11,13        "sourceType": "module"14    },15    "plugins": [16        "@typescript-eslint"17    ],18    "rules": {19        "indent": [20            "error",21            2,22            {23                "SwitchCase": 124            }25        ],26        "function-call-argument-newline": [27            "error",28            "consistent"29        ],30        "function-paren-newline": [31            "error",32            "multiline"33        ],34        "linebreak-style": [35            "error",36            "unix"37        ],38        "quotes": [39            "error",40            "single",41            {42                "avoidEscape": true43            }44        ],45        "semi": [46            "error",47            "always"48        ],49        "@typescript-eslint/explicit-module-boundary-types": "off",50        "comma-dangle": [51            "error",52            "always-multiline"53        ],54        "no-unused-vars": "off",55        "@typescript-eslint/no-empty-function": "off",56        "@typescript-eslint/no-non-null-assertion": "off",57        "@typescript-eslint/no-explicit-any": "off",58        "@typescript-eslint/no-unused-vars": "warn",59        "no-async-promise-executor": "warn",60        "@typescript-eslint/no-empty-interface": "off",61        "prefer-const": [62            "error",63            {64                "destructuring": "all"65            }66        ],67        "@typescript-eslint/ban-ts-comment": "off",68        "object-curly-spacing": "warn",69        "arrow-spacing": "warn",70        "array-bracket-spacing": "warn",71        "template-curly-spacing": "warn",72        "space-in-parens": "warn",73        "@typescript-eslint/naming-convention": [74            "warn",75            {76                "selector": "default",77                "format": [78                    "camelCase"79                ],80                "leadingUnderscore": "allow",81                "trailingUnderscore": "allow"82            },83            {84                "selector": "variable",85                "format": [86                    "camelCase",87                    "UPPER_CASE"88                ],89                "leadingUnderscore": "allow",90                "trailingUnderscore": "allow"91            },92            {93                "selector": "typeLike",94                "format": [95                    "PascalCase"96                ]97            },98            {99                "selector": "memberLike",100                "format": null101            }102        ]103    }104}
addedtests/update_types.shdiffbeforeafterboth
--- /dev/null
+++ b/tests/update_types.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env sh
+
+yarn polkadot-types
+
+cd ../..
+if [ ! -f unique-types-js ]; then
+	git clone git@github.com:UniqueNetwork/unique-types-js.git
+fi
+
+rsync -ar --delete unique-chain/tests/src/interfaces/ unique-types-js/src/interfaces
+for file in unique-types-js/src/interfaces/augment-*; do
+	sed -i '1s;^;//@ts-nocheck\n;' $file
+done
+
+cd unique-types-js
+git add src/interfaces/
+git commit -m "chore: regenerate types"
+cd ../unique-chain/tests
\ No newline at end of file