소스 검색

actions: make all linter checks --quiet

Mokhtar Naamani 4 년 전
부모
커밋
1a9b67f468

+ 2 - 2
.github/workflows/joystream-cli.yml

@@ -17,7 +17,7 @@ jobs:
     - name: checks
       run: |
         yarn install --frozen-lockfile
-        yarn workspace @joystream/cli checks
+        yarn workspace @joystream/cli checks --quiet
     - name: yarn pack test
       run: |
         yarn workspace @joystream/cli pack --filename cli-pack-test.tgz
@@ -39,7 +39,7 @@ jobs:
     - name: checks
       run: |
         yarn install --frozen-lockfile --network-timeout 120000
-        yarn workspace @joystream/cli checks
+        yarn workspace @joystream/cli checks --quiet
     - name: yarn pack test
       run: |
         yarn workspace @joystream/cli pack --filename cli-pack-test.tgz

+ 2 - 2
.github/workflows/joystream-types.yml

@@ -17,7 +17,7 @@ jobs:
     - name: checks
       run: |
         yarn install --frozen-lockfile
-        yarn workspace @joystream/types checks
+        yarn workspace @joystream/types checks --quiet
     - name: npm pack test
       run: |
         cd types
@@ -40,7 +40,7 @@ jobs:
     - name: checks
       run: |
         yarn install --frozen-lockfile --network-timeout 120000
-        yarn workspace @joystream/types checks
+        yarn workspace @joystream/types checks --quiet
     - name: npm pack test
       run: |
         cd types

+ 2 - 2
.github/workflows/network-tests.yml

@@ -17,7 +17,7 @@ jobs:
     - name: checks
       run: |
         yarn install --frozen-lockfile
-        yarn workspace joystream-testing checks
+        yarn workspace joystream-testing checks --quiet
 
   network_build_osx:
     name: MacOS Checks
@@ -34,4 +34,4 @@ jobs:
     - name: checks
       run: |
         yarn install --frozen-lockfile --network-timeout 120000
-        yarn workspace joystream-testing checks
+        yarn workspace joystream-testing checks --quiet

+ 2 - 2
.github/workflows/pioneer.yml

@@ -51,7 +51,7 @@ jobs:
     - name: lint
       run: |
         yarn install --frozen-lockfile
-        yarn workspace pioneer lint
+        yarn workspace pioneer lint --quiet
 
   pioneer_lint_osx:
     name: MacOS Linting
@@ -68,4 +68,4 @@ jobs:
     - name: lint
       run: |
         yarn install --frozen-lockfile --network-timeout 120000
-        yarn workspace pioneer lint
+        yarn workspace pioneer lint --quiet

+ 2 - 2
.github/workflows/storage-node.yml

@@ -17,7 +17,7 @@ jobs:
     - name: checks
       run: |
         yarn install --frozen-lockfile
-        yarn workspace storage-node checks
+        yarn workspace storage-node checks --quiet
 
   storage_node_build_osx:
     name: MacOS Checks
@@ -34,4 +34,4 @@ jobs:
     - name: checks
       run: |
         yarn install --frozen-lockfile --network-timeout 120000
-        yarn workspace storage-node checks
+        yarn workspace storage-node checks --quiet

+ 2 - 2
cli/package.json

@@ -101,8 +101,8 @@
     "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
     "build": "tsc --build tsconfig.json",
     "version": "oclif-dev readme && git add README.md",
-    "lint": "eslint ./ --quiet --ext .ts",
-    "checks": "yarn lint && tsc --noEmit --pretty && prettier ./ --check",
+    "lint": "eslint ./ --ext .ts",
+    "checks": "tsc --noEmit --pretty && prettier ./ --check && yarn lint",
     "format": "prettier ./ --write"
   },
   "types": "lib/index.d.ts"

+ 3 - 3
pioneer/package.json

@@ -17,10 +17,10 @@
     "docs": "echo \"skipping docs\"",
     "clean": "polkadot-dev-clean-build",
     "clean:i18n": "rm -rf packages/apps/public/locales/en && mkdir -p packages/apps/public/locales/en",
-    "lint": "eslint --ext .js,.jsx,.ts,.tsx . && tsc --noEmit --pretty",
+    "lint": "tsc --noEmit --pretty && eslint --ext .js,.jsx,.ts,.tsx .",
     "lint:css": "stylelint './packages/**/src/**/*.tsx'",
-    "lint-only-errors": "eslint --quiet --ext .js,.jsx,.ts,.tsx . && tsc --noEmit --pretty",
-    "lint-autofix": "eslint --fix --ext .js,.jsx,.ts,.tsx . && tsc --noEmit --pretty",
+    "lint-only-errors": "yarn lint --quiet",
+    "lint-autofix": "yarn lint --fix",
     "postinstall": "polkadot-dev-yarn-only",
     "test": "echo \"skipping tests\"",
     "vanitygen": "node packages/app-accounts/scripts/vanitygen.js",

+ 1 - 1
storage-node/package.json

@@ -34,7 +34,7 @@
     "test": "wsrun --serial test",
     "lint": "eslint --ext .js,.ts --ignore-path .gitignore .",
     "build": "yarn workspace @joystream/storage-cli run build",
-    "checks": "yarn lint && prettier . --check",
+    "checks": "prettier . --check && yarn lint",
     "format": "prettier . --write"
   },
   "devDependencies": {

+ 2 - 2
tests/network-tests/package.json

@@ -8,8 +8,8 @@
     "test-migration-constantinople": "tap --files src/rome/tests/romeRuntimeUpgradeTest.ts --files src/constantinople/tests/electingCouncilTest.ts -T",
     "test-migration-nicaea": "tap --files src/constantinople/tests/proposals/updateRuntimeTest.ts --files src/nicaea/tests/electingCouncilTest.ts -T",
     "debug": "tap --files src/iznik/tests/workingGroup/workerPayoutTest.ts -T",
-    "lint": "eslint . --quiet --ext .ts",
-    "checks": "yarn lint && tsc --noEmit --pretty && prettier ./ --check",
+    "lint": "eslint . --ext .ts",
+    "checks": "tsc --noEmit --pretty && prettier ./ --check && yarn lint",
     "format": "prettier ./ --write "
   },
   "dependencies": {

+ 2 - 2
types/package.json

@@ -7,10 +7,10 @@
   "scripts": {
     "prepublish": "npm run build",
     "build": "tsc --build tsconfig.json",
-    "lint": "eslint ./ --quiet --ext .ts",
+    "lint": "eslint ./ --ext .ts",
     "format": "prettier ./ --write",
     "check:augment": "tsc --build tsconfig-augment.json && tsc --build tsconfig-augment-codec.json",
-    "checks": "yarn build && madge --circular ./ && yarn lint && prettier ./ --check && yarn check:augment",
+    "checks": "yarn build && madge --circular ./ && prettier ./ --check && yarn check:augment && yarn lint",
     "generate:defs": "ts-node node_modules/.bin/polkadot-types-from-defs --package . --input ./augment",
     "generate:meta": "ts-node node_modules/.bin/polkadot-types-from-chain --package . --endpoint ws://127.0.0.1:9944 --output ./augment --strict",
     "generate:codec-defs": "ts-node ./src/scripts/generateCodecDefs.ts",