Unify lint configs

pull/2435/head
Yorke Rhodes 1 year ago
parent d0b2a6a249
commit 638b3f5474
No known key found for this signature in database
GPG Key ID: 9EEACF1DA75C5627
  1. 7
      .github/workflows/node.yml
  2. 2
      package.json
  3. 2
      rust/utils/run-locally/src/main.rs
  4. 185
      yarn.lock

@ -76,8 +76,8 @@ jobs:
.yarn/cache
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}
- name: lint-ts
run: yarn lint-ts
- name: lint
run: yarn lint
- name: prettier
run: |
@ -171,9 +171,6 @@ jobs:
- name: Unit tests
run: yarn workspace @hyperlane-xyz/core run test
- name: lint
run: yarn workspace @hyperlane-xyz/core run lint
- name: Run Slither
uses: crytic/slither-action@main
id: slither

@ -19,7 +19,7 @@
"clean": "yarn workspaces foreach --verbose --parallel run clean",
"postinstall": "husky install",
"prettier": "yarn workspaces foreach --verbose --parallel run prettier",
"lint-ts": "eslint . --ext .ts",
"lint": "yarn workspaces foreach --verbose --parallel run lint",
"test": "yarn workspaces foreach --verbose --parallel run test",
"version:check": "yarn version check --interactive",
"version:prepare": "yarn workspaces foreach --no-private --verbose --topological version --immediate",

@ -297,7 +297,7 @@ fn main() -> ExitCode {
// don't need to clean in the CI
build_cmd(&["yarn", "clean"], Some("../"), None);
}
build_cmd(&["yarn", "build:e2e"], Some("../"), None);
build_cmd(&["yarn", "build"], Some("../"), None);
let mut state = State::default();
state.build_log = build_log;

@ -2707,6 +2707,24 @@ __metadata:
languageName: node
linkType: hard
"@eslint-community/eslint-utils@npm:^4.2.0":
version: 4.4.0
resolution: "@eslint-community/eslint-utils@npm:4.4.0"
dependencies:
eslint-visitor-keys: ^3.3.0
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
checksum: cdfe3ae42b4f572cbfb46d20edafe6f36fc5fb52bf2d90875c58aefe226892b9677fef60820e2832caf864a326fe4fc225714c46e8389ccca04d5f9288aabd22
languageName: node
linkType: hard
"@eslint-community/regexpp@npm:^4.4.0":
version: 4.5.1
resolution: "@eslint-community/regexpp@npm:4.5.1"
checksum: 6d901166d64998d591fab4db1c2f872981ccd5f6fe066a1ad0a93d4e11855ecae6bfb76660869a469563e8882d4307228cebd41142adb409d182f2966771e57e
languageName: node
linkType: hard
"@eslint/eslintrc@npm:^1.3.0":
version: 1.3.0
resolution: "@eslint/eslintrc@npm:1.3.0"
@ -2724,6 +2742,30 @@ __metadata:
languageName: node
linkType: hard
"@eslint/eslintrc@npm:^2.0.3":
version: 2.0.3
resolution: "@eslint/eslintrc@npm:2.0.3"
dependencies:
ajv: ^6.12.4
debug: ^4.3.2
espree: ^9.5.2
globals: ^13.19.0
ignore: ^5.2.0
import-fresh: ^3.2.1
js-yaml: ^4.1.0
minimatch: ^3.1.2
strip-json-comments: ^3.1.1
checksum: ddc51f25f8524d8231db9c9bf03177e503d941a332e8d5ce3b10b09241be4d5584a378a529a27a527586bfbccf3031ae539eb891352033c340b012b4d0c81d92
languageName: node
linkType: hard
"@eslint/js@npm:8.43.0":
version: 8.43.0
resolution: "@eslint/js@npm:8.43.0"
checksum: 580487a09c82ac169744d36e4af77bc4f582c9a37749d1e9481eb93626c8f3991b2390c6e4e69e5642e3b6e870912b839229a0e23594fae348156ea5a8ed7e2e
languageName: node
linkType: hard
"@eth-optimism/contracts-bedrock@npm:0.11.0":
version: 0.11.0
resolution: "@eth-optimism/contracts-bedrock@npm:0.11.0"
@ -3905,6 +3947,17 @@ __metadata:
languageName: node
linkType: hard
"@humanwhocodes/config-array@npm:^0.11.10":
version: 0.11.10
resolution: "@humanwhocodes/config-array@npm:0.11.10"
dependencies:
"@humanwhocodes/object-schema": ^1.2.1
debug: ^4.1.1
minimatch: ^3.0.5
checksum: 1b1302e2403d0e35bc43e66d67a2b36b0ad1119efc704b5faff68c41f791a052355b010fb2d27ef022670f550de24cd6d08d5ecf0821c16326b7dcd0ee5d5d8a
languageName: node
linkType: hard
"@humanwhocodes/config-array@npm:^0.9.2":
version: 0.9.5
resolution: "@humanwhocodes/config-array@npm:0.9.5"
@ -3916,6 +3969,13 @@ __metadata:
languageName: node
linkType: hard
"@humanwhocodes/module-importer@npm:^1.0.1":
version: 1.0.1
resolution: "@humanwhocodes/module-importer@npm:1.0.1"
checksum: 0fd22007db8034a2cdf2c764b140d37d9020bbfce8a49d3ec5c05290e77d4b0263b1b972b752df8c89e5eaa94073408f2b7d977aed131faf6cf396ebb5d7fb61
languageName: node
linkType: hard
"@humanwhocodes/object-schema@npm:^1.2.1":
version: 1.2.1
resolution: "@humanwhocodes/object-schema@npm:1.2.1"
@ -4093,6 +4153,7 @@ __metadata:
cross-fetch: ^3.1.5
debug: ^4.3.4
dotenv: ^10.0.0
eslint: ^8.43.0
ethereum-waffle: ^3.4.4
ethers: ^5.7.2
fs: 0.0.1-security
@ -4324,7 +4385,7 @@ __metadata:
languageName: node
linkType: hard
"@nodelib/fs.walk@npm:^1.2.3":
"@nodelib/fs.walk@npm:^1.2.3, @nodelib/fs.walk@npm:^1.2.8":
version: 1.2.8
resolution: "@nodelib/fs.walk@npm:1.2.8"
dependencies:
@ -5704,6 +5765,15 @@ __metadata:
languageName: node
linkType: hard
"acorn@npm:^8.8.0":
version: 8.9.0
resolution: "acorn@npm:8.9.0"
bin:
acorn: bin/acorn
checksum: 25dfb94952386ecfb847e61934de04a4e7c2dc21c2e700fc4e2ef27ce78cb717700c4c4f279cd630bb4774948633c3859fc16063ec8573bda4568e0a312e6744
languageName: node
linkType: hard
"address@npm:^1.0.1":
version: 1.2.0
resolution: "address@npm:1.2.0"
@ -9029,6 +9099,16 @@ __metadata:
languageName: node
linkType: hard
"eslint-scope@npm:^7.2.0":
version: 7.2.0
resolution: "eslint-scope@npm:7.2.0"
dependencies:
esrecurse: ^4.3.0
estraverse: ^5.2.0
checksum: 64591a2d8b244ade9c690b59ef238a11d5c721a98bcee9e9f445454f442d03d3e04eda88e95a4daec558220a99fa384309d9faae3d459bd40e7a81b4063980ae
languageName: node
linkType: hard
"eslint-utils@npm:^1.3.1":
version: 1.4.3
resolution: "eslint-utils@npm:1.4.3"
@ -9070,6 +9150,13 @@ __metadata:
languageName: node
linkType: hard
"eslint-visitor-keys@npm:^3.4.1":
version: 3.4.1
resolution: "eslint-visitor-keys@npm:3.4.1"
checksum: f05121d868202736b97de7d750847a328fcfa8593b031c95ea89425333db59676ac087fa905eba438d0a3c5769632f828187e0c1a0d271832a2153c1d3661c2c
languageName: node
linkType: hard
"eslint@npm:^5.6.0":
version: 5.16.0
resolution: "eslint@npm:5.16.0"
@ -9161,6 +9248,55 @@ __metadata:
languageName: node
linkType: hard
"eslint@npm:^8.43.0":
version: 8.43.0
resolution: "eslint@npm:8.43.0"
dependencies:
"@eslint-community/eslint-utils": ^4.2.0
"@eslint-community/regexpp": ^4.4.0
"@eslint/eslintrc": ^2.0.3
"@eslint/js": 8.43.0
"@humanwhocodes/config-array": ^0.11.10
"@humanwhocodes/module-importer": ^1.0.1
"@nodelib/fs.walk": ^1.2.8
ajv: ^6.10.0
chalk: ^4.0.0
cross-spawn: ^7.0.2
debug: ^4.3.2
doctrine: ^3.0.0
escape-string-regexp: ^4.0.0
eslint-scope: ^7.2.0
eslint-visitor-keys: ^3.4.1
espree: ^9.5.2
esquery: ^1.4.2
esutils: ^2.0.2
fast-deep-equal: ^3.1.3
file-entry-cache: ^6.0.1
find-up: ^5.0.0
glob-parent: ^6.0.2
globals: ^13.19.0
graphemer: ^1.4.0
ignore: ^5.2.0
import-fresh: ^3.0.0
imurmurhash: ^0.1.4
is-glob: ^4.0.0
is-path-inside: ^3.0.3
js-yaml: ^4.1.0
json-stable-stringify-without-jsonify: ^1.0.1
levn: ^0.4.1
lodash.merge: ^4.6.2
minimatch: ^3.1.2
natural-compare: ^1.4.0
optionator: ^0.9.1
strip-ansi: ^6.0.1
strip-json-comments: ^3.1.0
text-table: ^0.2.0
bin:
eslint: bin/eslint.js
checksum: 55654ce00b0d128822b57526e40473d0497c7c6be3886afdc0b41b6b0dfbd34d0eae8159911b18451b4db51a939a0e6d2e117e847ae419086884fc3d4fe23c7c
languageName: node
linkType: hard
"espree@npm:^5.0.1":
version: 5.0.1
resolution: "espree@npm:5.0.1"
@ -9183,6 +9319,17 @@ __metadata:
languageName: node
linkType: hard
"espree@npm:^9.5.2":
version: 9.5.2
resolution: "espree@npm:9.5.2"
dependencies:
acorn: ^8.8.0
acorn-jsx: ^5.3.2
eslint-visitor-keys: ^3.4.1
checksum: 6506289d6eb26471c0b383ee24fee5c8ae9d61ad540be956b3127be5ce3bf687d2ba6538ee5a86769812c7c552a9d8239e8c4d150f9ea056c6d5cbe8399c03c1
languageName: node
linkType: hard
"esprima@npm:2.7.x, esprima@npm:^2.7.1":
version: 2.7.3
resolution: "esprima@npm:2.7.3"
@ -9212,6 +9359,15 @@ __metadata:
languageName: node
linkType: hard
"esquery@npm:^1.4.2":
version: 1.5.0
resolution: "esquery@npm:1.5.0"
dependencies:
estraverse: ^5.1.0
checksum: aefb0d2596c230118656cd4ec7532d447333a410a48834d80ea648b1e7b5c9bc9ed8b5e33a89cb04e487b60d622f44cf5713bf4abed7c97343edefdc84a35900
languageName: node
linkType: hard
"esrecurse@npm:^4.1.0, esrecurse@npm:^4.3.0":
version: 4.3.0
resolution: "esrecurse@npm:4.3.0"
@ -10223,7 +10379,7 @@ __metadata:
languageName: node
linkType: hard
"find-up@npm:5.0.0":
"find-up@npm:5.0.0, find-up@npm:^5.0.0":
version: 5.0.0
resolution: "find-up@npm:5.0.0"
dependencies:
@ -10807,7 +10963,7 @@ __metadata:
languageName: node
linkType: hard
"glob-parent@npm:^6.0.1":
"glob-parent@npm:^6.0.1, glob-parent@npm:^6.0.2":
version: 6.0.2
resolution: "glob-parent@npm:6.0.2"
dependencies:
@ -10944,6 +11100,15 @@ __metadata:
languageName: node
linkType: hard
"globals@npm:^13.19.0":
version: 13.20.0
resolution: "globals@npm:13.20.0"
dependencies:
type-fest: ^0.20.2
checksum: ad1ecf914bd051325faad281d02ea2c0b1df5d01bd94d368dcc5513340eac41d14b3c61af325768e3c7f8d44576e72780ec0b6f2d366121f8eec6e03c3a3b97a
languageName: node
linkType: hard
"globals@npm:^9.18.0":
version: 9.18.0
resolution: "globals@npm:9.18.0"
@ -11029,6 +11194,13 @@ __metadata:
languageName: node
linkType: hard
"graphemer@npm:^1.4.0":
version: 1.4.0
resolution: "graphemer@npm:1.4.0"
checksum: bab8f0be9b568857c7bec9fda95a89f87b783546d02951c40c33f84d05bb7da3fd10f863a9beb901463669b6583173a8c8cc6d6b306ea2b9b9d5d3d943c3a673
languageName: node
linkType: hard
"growl@npm:1.10.5":
version: 1.10.5
resolution: "growl@npm:1.10.5"
@ -12057,6 +12229,13 @@ __metadata:
languageName: node
linkType: hard
"is-path-inside@npm:^3.0.3":
version: 3.0.3
resolution: "is-path-inside@npm:3.0.3"
checksum: abd50f06186a052b349c15e55b182326f1936c89a78bf6c8f2b707412517c097ce04bc49a0ca221787bc44e1049f51f09a2ffb63d22899051988d3a618ba13e9
languageName: node
linkType: hard
"is-plain-obj@npm:^1.1.0":
version: 1.1.0
resolution: "is-plain-obj@npm:1.1.0"

Loading…
Cancel
Save