difftreelog
ci use same lint script as in development
in: master
7 files changed
.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 ]
js-packages/.eslintignorediffbeforeafterboth--- /dev/null
+++ b/js-packages/.eslintignore
@@ -0,0 +1 @@
+*.d.ts
js-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",
js-packages/package.jsondiffbeforeafterboth1{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 "lint": "eslint --ext .ts .",46 "fix": "yarn lint --fix",47 "polkadot-types-fetch-metadata": "yarn ts-node --esm scripts/fetchMetadata.ts",48 "polkadot-types-from-defs": "ts-node --esm ./node_modules/.bin/polkadot-types-from-defs --endpoint scripts/metadata.json --input types/ --package .",49 "polkadot-types-from-chain": "ts-node --esm ./node_modules/.bin/polkadot-types-from-chain --endpoint scripts/metadata.json --output types/ --package .",50 "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"51 },52 "resolutions": {53 "decode-uri-component": "^0.2.1"54 },55 "type": "module",56 "packageManager": "yarn@3.6.1",57 "workspaces": [58 "types",59 "playgrounds",60 "scripts",61 "tests"62 ]63}js-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"
},
js-packages/tsconfig.jsondiffbeforeafterboth--- a/js-packages/tsconfig.json
+++ b/js-packages/tsconfig.json
@@ -12,4 +12,7 @@
"strict": true,
"resolveJsonModule": true,
},
+ "include": [
+ "./**/*.ts"
+ ],
}
scripts/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