Skip to content

Commit

Permalink
ci: continuing linting when one kind errors (#4416)
Browse files Browse the repository at this point in the history
* format: prettier .github yml files

* for code quality checks, skip matrix and use the active LTS

* separate types-check from lint-check

* exclude types from lint-fix

* Revert "separate types-check from lint-check"

This reverts commit 7fc4f39.

* single 'yarn lint' for all linting

* single 'yarn lint' for all linting

* remove 'lint-check', redundant with 'lint'

* include Jessie linting

* remove broken lint..jessie commands

* back out CI matrix and formatting change

* use run-s consistently

* fix typo
  • Loading branch information
turadg authored Feb 1, 2022
1 parent 7e7547e commit f0eba3c
Show file tree
Hide file tree
Showing 45 changed files with 91 additions and 91 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test-all-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: lint check
run: yarn lint-check
- name: format check
run: yarn format-check
run: yarn lint

dev-canary:
if: ${{github.event_name == 'push'}}
Expand Down
2 changes: 1 addition & 1 deletion golang/cosmos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test:xs": "exit 0",
"build": "exit 0",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
"lint": "eslint '**/*.js'"
},
"dependencies": {
"bindings": "^1.2.1"
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"eslint-plugin-jsx-a11y": "^6.4.0",
"eslint-plugin-prettier": "^3.2.0",
"lerna": "^3.20.2",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"typescript": "^4.2.3"
},
Expand All @@ -81,10 +82,10 @@
"link-cli": "yarn run create-agoric-cli",
"create-agoric-cli": "node ./scripts/create-agoric-cli.cjs",
"format": "yarn prettier --write 'packages/**/*.{js,jsx,ts,tsx}' 'golang/**/*.{js,jsx,ts,tsx}'",
"format-check": "yarn prettier --check 'packages/**/*.{js,jsx,ts,tsx}' 'golang/**/*.{js,jsx,ts,tsx}'",
"lint:format": "yarn prettier --check 'packages/**/*.{js,jsx,ts,tsx}' 'golang/**/*.{js,jsx,ts,tsx}'",
"lint-fix": "yarn workspaces run lint-fix",
"lint-check": "yarn workspaces run lint-check",
"lint": "yarn workspaces run lint-check",
"lint": "run-s --continue-on-error lint:*",
"lint:packages": "yarn workspaces run lint",
"test": "yarn workspaces run test",
"test:c8-all": "rm -rf coverage/tmp && C8_OPTIONS=\"--clean=false --temp-directory=$PWD/coverage/tmp\" lerna run test:c8",
"test:xs": "yarn workspaces run test:xs",
Expand Down
5 changes: 2 additions & 3 deletions packages/ERTP/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
"test:xs": "yarn test:xs-unit && yarn test:xs-worker",
"test:xs-unit": "ava-xs",
"test:xs-worker": "SWINGSET_WORKER_TYPE=xs-worker ava -c 2 'test/swingsetTests/**/test-*.js'",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint '**/*.js'",
"lint:types": "tsc --maxNodeModuleJsDepth 3 -p jsconfig.json"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/SwingSet/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
command: npm test
- run: &lint
name: Lint
command: npm run lint-check
command: npm run lint


# Automated Npm Audit Fix PR
Expand Down
3 changes: 1 addition & 2 deletions packages/SwingSet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
"test": "ava",
"test:xs": "SWINGSET_WORKER_TYPE=xs-worker ava",
"test:xs-worker": "ava test/workers/test-worker.js -m 'xs vat manager'",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "yarn lint:types&&yarn lint:eslint",
"lint:types": "tsc --maxNodeModuleJsDepth 3 -p jsconfig.json",
"lint:eslint": "eslint '**/*.js'"
Expand Down
1 change: 0 additions & 1 deletion packages/access-token/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint": "eslint '**/*.js'"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/agoric-cli/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- *save_cache
- run: &lint
name: Lint
command: npm run lint-check
command: npm run lint
- run: &test
name: Test
command: npm test
Expand Down
5 changes: 2 additions & 3 deletions packages/agoric-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"integration-test": "ava --config .ava-integration-test.config.js",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc --maxNodeModuleJsDepth 4 -p jsconfig.json",
"lint:eslint": "eslint '**/*.js'"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
"test": "exit 0",
"test:nyc": "exit 0",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint '**/*.js'",
"lint:types": "tsc -p jsconfig.json"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/bundle-source/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- *save_cache
- run: &lint
name: Lint
command: npm run lint-check
command: npm run lint
- run: &test
name: Test
command: npm test
Expand Down
3 changes: 0 additions & 3 deletions packages/bundle-source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "yarn lint",
"lint-fix-jessie": "eslint -c '.eslintrc-jessie.js' --fix '**/*.js'",
"lint-check-jessie": "eslint -c '.eslintrc-jessie.js' '**/*.js'",
"lint": "eslint '**/*.js'"
},
"devDependencies": {
Expand Down
5 changes: 2 additions & 3 deletions packages/cosmic-swingset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc --maxNodeModuleJsDepth 3 -p jsconfig.json",
"lint:eslint": "eslint '**/*.js'"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/deploy-script-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
"build": "exit 0",
"test": "ava",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint-fix": "yarn lint:eslint --fix",
"lint:eslint": "eslint '**/*.js'",
"lint:types": "tsc --maxNodeModuleJsDepth 5 -p jsconfig.json",
"lint": "yarn lint:types && yarn lint:eslint"
"lint": "run-s --continue-on-error lint:*"
},
"repository": {
"type": "git",
Expand Down
1 change: 0 additions & 1 deletion packages/deployment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"test": "exit 0",
"test:xs": "exit 0",
"build": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint": "eslint '**/*.js'"
},
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"test:nyc": "exit 0",
"test:xs": "exit 0",
"build": "exit 0",
"lint-check": "exit 0",
"lint-fix": "exit 0",
"lint": "exit 0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/eventual-send/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
<<: *save_cache
- run:
name: Lint
command: npm run lint-check
command: npm run lint
- run:
name: Test
command: npm test
Expand Down
5 changes: 2 additions & 3 deletions packages/eventual-send/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"build": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint '**/*.js'"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/governance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint '**/*.js'",
"lint:types": "tsc --maxNodeModuleJsDepth 3 -p jsconfig.json"
},
Expand Down
1 change: 0 additions & 1 deletion packages/import-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"build": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint": "eslint '**/*.js'"
},
Expand Down
1 change: 0 additions & 1 deletion packages/import-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "yarn lint",
"lint": "eslint '**/*.js'"
},
"repository": {
Expand Down
5 changes: 2 additions & 3 deletions packages/notifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint '**/*.js'",
"lint:types": "tsc --maxNodeModuleJsDepth 3 -p jsconfig.json"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/pegasus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint '**/*.js'",
"lint:types": "tsc --maxNodeModuleJsDepth 4 -p jsconfig.json"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/promise-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
"build": "exit 0",
"test": "exit 0",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint '**/*.js'",
"lint:types": "tsc -p jsconfig.json"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/run-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint '**/*.js'",
"lint:types": "tsc --maxNodeModuleJsDepth 5 -p jsconfig.json"
},
Expand Down
1 change: 0 additions & 1 deletion packages/same-structure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"build": "exit 0",
"test": "exit 0",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint": "eslint '**/*.js'"
},
Expand Down
1 change: 0 additions & 1 deletion packages/sharing-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint": "eslint '**/*.js'"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/solo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc --maxNodeModuleJsDepth 4 -p jsconfig.json",
"lint:eslint": "eslint '**/*.js'"
},
Expand Down
1 change: 0 additions & 1 deletion packages/sparse-ints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"build": "exit 0",
"test": "exit 0",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint": "eslint '**/*.js'"
},
Expand Down
1 change: 0 additions & 1 deletion packages/spawner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint": "eslint '**/*.js'"
},
Expand Down
1 change: 0 additions & 1 deletion packages/stat-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"build": "exit 0",
"test": "exit 0",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint": "eslint '**/*.js'"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
"build": "exit 0",
"test": "ava",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc --maxNodeModuleJsDepth 3 -p jsconfig.json",
"lint:eslint": "eslint '**/*.js'"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/swing-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint '**/*.js'"
},
Expand Down
1 change: 0 additions & 1 deletion packages/swingset-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "yarn lint",
"lint": "eslint '**/*.js'",
"ci:autobench": "./autobench.js"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/telemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint '**/*.js'"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/ui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"build:src": "rm -rf dist && BABEL_ENV='test' ./node_modules/.bin/babel src --out-dir dist",
"build": "yarn build:src && yarn build:tests",
"lint-fix": "yarn lint --fix",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint": "run-s --continue-on-error lint:*",
"lint:eslint": "eslint '**/*.js'",
"lint:types": "tsc --maxNodeModuleJsDepth 4 -p jsconfig.json"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/vats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-fix": "yarn lint:eslint --fix",
"lint": "run-s --continue-on-error lint:*",
"lint:types": "tsc --maxNodeModuleJsDepth 4 -p jsconfig.json",
"lint:eslint": "eslint '**/*.js'"
},
Expand Down
1 change: 0 additions & 1 deletion packages/wallet-connection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"test:c8": "exit 0",
"test:xs": "exit 0",
"lint-fix": "exit 0",
"lint-check": "exit 0",
"lint": "exit 0",
"lint:types": "exit 0",
"lint:eslint": "exit 0"
Expand Down
Loading

0 comments on commit f0eba3c

Please sign in to comment.