git.delta.rocks / unique-network / refs/commits / 086739e0956b

difftreelog

ci use same lint script as in development

Yaroslav Bolyukin2023-11-14parent: #acb1833.patch.diff
in: master

7 files changed

modified.github/workflows/codestyle.ymldiffbeforeafterboth
--- a/.github/workflows/codestyle.yml
+++ b/.github/workflows/codestyle.yml
@@ -44,8 +44,8 @@
       - name: Install modules
         run: cd js-packages && yarn
       - name: Run ESLint
-        # run: cd js-packages && yarn eslint --ext .ts,.js --max-warnings=0 src/
-        run: cd js-packages && yarn eslint --ext .ts,.js ./*/src
+        # run: cd js-packages && yarn lint --max-warnings=0
+        run: cd js-packages && yarn lint
 
   clippy:
     runs-on: [ self-hosted-ci ]
addedjs-packages/.eslintignorediffbeforeafterboth
--- /dev/null
+++ b/js-packages/.eslintignore
@@ -0,0 +1 @@
+*.d.ts
modifiedjs-packages/.eslintrc.jsondiffbeforeafterboth
--- a/js-packages/.eslintrc.json
+++ b/js-packages/.eslintrc.json
@@ -11,7 +11,7 @@
     "parserOptions": {
         "ecmaVersion": 11,
         "sourceType": "module",
-        "project": "**/tsconfig.json"
+        "project": "./tsconfig.json"
     },
     "plugins": [
         "@typescript-eslint",
modifiedjs-packages/package.jsondiffbeforeafterboth
after · js-packages/package.json
1{2  "name": "unique-tests",3  "version": "1.0.0",4  "description": "Unique Chain Tests",5  "author": "",6  "license": "SEE LICENSE IN ../LICENSE",7  "homepage": "",8  "main": "",9  "private": true,10  "dependencies": {11    "@openzeppelin/contracts": "^4.9.2",12    "chai-as-promised": "^7.1.1",13    "chai-like": "^1.1.1",14    "csv-writer": "^1.6.0",15    "lossless-json": "^3.0.1",16    "solc": "^0.8.22",17    "typechain": "^8.3.2",18    "web3": "1.10.0"19  },20  "devDependencies": {21    "@types/chai": "^4.3.9",22    "@types/chai-as-promised": "^7.1.7",23    "@types/chai-like": "^1.1.2",24    "@types/chai-subset": "^1.3.4",25    "@types/mocha": "^10.0.3",26    "@types/node": "^20.8.10",27    "@typescript-eslint/eslint-plugin": "^6.10.0",28    "@typescript-eslint/parser": "^6.10.0",29    "@unique/opal-types": "workspace:*",30    "@unique/playgrounds": "workspace:*",31    "chai": "^4.3.10",32    "chai-subset": "^1.6.0",33    "eslint": "^8.53.0",34    "eslint-plugin-mocha": "^10.2.0",35    "ts-node": "^10.9.1",36    "typescript": "^5.2.2"37  },38  "mocha": {39    "timeout": 9999999,40    "require": [41      "ts-node/register"42    ]43  },44  "scripts": {45    "prepublish": "yarn tsc",46    "lint": "eslint --ext .ts .",47    "fix": "yarn lint --fix",48    "polkadot-types-fetch-metadata": "yarn ts-node --esm scripts/fetchMetadata.ts",49    "polkadot-types-from-defs": "ts-node --esm ./node_modules/.bin/polkadot-types-from-defs --endpoint scripts/metadata.json --input types/ --package .",50    "polkadot-types-from-chain": "ts-node --esm ./node_modules/.bin/polkadot-types-from-chain --endpoint scripts/metadata.json --output types/ --package .",51    "polkadot-types": "echo \"export default {}\" > types/lookup.ts && yarn polkadot-types-fetch-metadata && yarn polkadot-types-from-defs && yarn polkadot-types-from-defs && yarn polkadot-types-from-chain && rm types/registry.ts"52  },53  "resolutions": {54    "decode-uri-component": "^0.2.1"55  },56  "type": "module",57  "packageManager": "yarn@3.6.1",58  "workspaces": [59    "types",60    "playgrounds",61    "scripts",62    "tests"63  ]64}
modifiedjs-packages/playgrounds/package.jsondiffbeforeafterboth
--- a/js-packages/playgrounds/package.json
+++ b/js-packages/playgrounds/package.json
@@ -1,7 +1,7 @@
 {
   "author": "",
   "license": "SEE LICENSE IN ../../../LICENSE",
-  "description": "Interfaces for interacting with contracts and contract ABIs",
+  "description": "Playground scripts",
   "engines": {
     "node": ">=16"
   },
modifiedjs-packages/tsconfig.jsondiffbeforeafterboth
--- a/js-packages/tsconfig.json
+++ b/js-packages/tsconfig.json
@@ -12,4 +12,7 @@
 		"strict": true,
 		"resolveJsonModule": true,
 	},
+	"include": [
+		"./**/*.ts"
+	],
 }
deletedscripts/init.shdiffbeforeafterboth
--- a/scripts/init.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-echo "*** Initializing WASM build environment"
-
-if [ -z $CI_PROJECT_NAME ] ; then
-   rustup update nightly
-   rustup update stable
-fi
-
-rustup target add wasm32-unknown-unknown --toolchain nightly