Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(contract): more eslint dependencies and fixes #9

Merged
merged 3 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "exit 0",
"test": "ava --verbose",
"lint": "eslint '**/*.{js,jsx}'",
"lint": "yarn lint-check",
"lint-fix": "eslint --fix '**/*.{js,jsx}'",
"lint-check": "eslint '**/*.{js,jsx}'",
"lint-fix-jessie": "eslint -c '.eslintrc-jessie.js' --fix '**/*.{js,jsx}'",
Expand All @@ -17,11 +17,12 @@
"ava": "^6.1.3",
"@endo/ses-ava": "^1.2.2",
"eslint": "^8.50.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-jessie": "^0.0.6",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^2.1.2"
},
"dependencies": {
Expand All @@ -42,12 +43,7 @@
"@endo/eventual-send": "^0.14.8",
"@endo/init": "^0.5.37",
"@endo/marshal": "^0.6.9",
"@cosmjs/encoding": "^0.28.4",
"@endo/promise-kit": "^0.2.42",
"cosmjs-types": "agoric-labs/cosmjs-types#Agoric-built"
},
"resolutions": {
"protobufjs": "agoric-labs/protobuf.js#Agoric-built"
"@endo/promise-kit": "^0.2.42"
},
"ava": {
"files": [
Expand All @@ -70,9 +66,13 @@
"extends": [
"@agoric"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false
},
"settings": {
"jsdoc": {
"definedTags": ["import"]
"mode": "typescript"
}
}
},
Expand Down
3 changes: 1 addition & 2 deletions contract/src/ica.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* eslint-disable node/no-missing-import */
// @ts-check
import { E } from '@endo/far';
import { M } from '@agoric/store';
import { TxBody } from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
import { Any } from '@agoric/cosmic-proto/google/protobuf/any.js';
import { fromBase64, toBase64 } from '@cosmjs/encoding/build/base64.js';
import { decodeBase64 as fromBase64, encodeBase64 as toBase64 } from '@endo/base64';

/**
* @import { Msg, ICAProtocol, ICS27ICAPacket } from './types.js';
Expand Down
1 change: 0 additions & 1 deletion contract/test/prepare-test-env-ava.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable node/no-unpublished-import, node/no-missing-import */
// @ts-check
/**
* Like prepare-test-env but also sets up ses-ava and provides
Expand Down
1 change: 0 additions & 1 deletion contract/test/test-contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import '@agoric/babel-standalone';
// eslint-disable-next-line import/order
import { test, makeTestContext } from './prepare-test-env-ava.js';

// eslint-disable-next-line node/no-missing-import
import { MsgSend } from '@agoric/cosmic-proto/cosmos/bank/v1beta1/tx.js';

import path from 'path';
Expand Down
3 changes: 1 addition & 2 deletions integration-test/test-getting-started-workflow.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
import { test } from '@agoric/swingset-vat/tools/prepare-test-env-ava.js';
import { test } from '../contract/test/prepare-test-env-ava.js';

import { gettingStartedWorkflowTest } from 'agoric/tools/getting-started.js';

Expand Down
41 changes: 26 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,34 @@
"ui"
],
"devDependencies": {
"@babel/eslint-parser": "^7.22.10",
"@babel/core": "^7.22.10",
"@endo/eslint-plugin": "^0.3.24",
"@endo/ses-ava": "^1.2.2",
"@jessie.js/eslint-plugin": "^0.1.3",
"ava": "^6.1.3",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-jessie": "^0.0.6",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-github": "^4.9.2",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jsdoc": "^48.2.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^2.7.1",
"@agoric/solo": "agoric-upgrade-16",
"@agoric/cosmic-swingset": "agoric-upgrade-16",
"@agoric/eslint-config": "agoric-upgrade-16",
"patch-package": "latest",
"postinstall-postinstall": "latest",
"cosmjs-types": "agoric-labs/cosmjs-types#Agoric-built"
"postinstall-postinstall": "latest"
},
"resolutions": {
"protobufjs": "agoric-labs/protobuf.js#Agoric-built",
"cosmjs-types": "agoric-labs/cosmjs-types#Agoric-built",
"typescript": "5.5.1-rc",
"@babel/code-frame": "7.18.6",
"**/@endo/base64": "1.0.5",
"**/@endo/cjs-module-analyzer": "1.0.5",
Expand Down Expand Up @@ -71,8 +73,9 @@
"**/@endo/exo": "1.5.0"
},
"scripts": {
"lint": "yarn workspaces run lint-fix",
"lint": "yarn lint-check",
"lint-check": "yarn workspaces run lint-check",
"lint-fix": "yarn workspaces run lint-fix",
"test": "yarn workspaces run test",
"integration-test": "yarn ava",
"build": "yarn workspaces run build",
Expand Down Expand Up @@ -100,5 +103,13 @@
}
]
},
"eslintConfig": {
"root": true,
"settings": {
"jsdoc": {
"mode": "typescript"
}
}
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
Loading