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.jsondiffbeforeafterboth--- a/js-packages/package.json
+++ b/js-packages/package.json
@@ -42,6 +42,7 @@
]
},
"scripts": {
+ "prepublish": "yarn tsc",
"lint": "eslint --ext .ts .",
"fix": "yarn lint --fix",
"polkadot-types-fetch-metadata": "yarn ts-node --esm scripts/fetchMetadata.ts",
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.jsondiffbeforeafterboth1{2 "exclude": [3 "**/node_modules"4 ],5 "compilerOptions": {6 "skipLibCheck": true,7 "module": "ESNext",8 "moduleResolution": "Bundler",9 "target": "ES2022",10 "declaration": true,11 "checkJs": false,12 "strict": true,13 "resolveJsonModule": true,14 },15}1{2 "exclude": [3 "**/node_modules"4 ],5 "compilerOptions": {6 "skipLibCheck": true,7 "module": "ESNext",8 "moduleResolution": "Bundler",9 "target": "ES2022",10 "declaration": true,11 "checkJs": false,12 "strict": true,13 "resolveJsonModule": true,14 },15 "include": [16 "./**/*.ts"17 ],18}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