-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix(contract): linting #33
Changes from all commits
5211007
7dd5c9a
a8a339e
1a734ac
fccae72
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Lint and Test | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
all: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js 18.8.x | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. here's hoping we can do both major LTS versions There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 fccae72 |
||
uses: actions/setup-node@v3 | ||
with: | ||
# use node 18.8.x until Agoric/agoric-sdk#8636 | ||
node-version: '18.8.x' | ||
- name: yarn install | ||
run: yarn | ||
- name: yarn lint | ||
run: yarn lint | ||
- name: yarn test | ||
run: yarn test |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,17 +13,17 @@ | |
"start": "yarn docker:make clean start-contract print-key", | ||
"build": "exit 0", | ||
"test": "ava --verbose", | ||
"lint": "eslint '**/*.{js,jsx}'", | ||
"lint-fix": "eslint --fix '**/*.{js,jsx}'", | ||
"lint-fix-jessie": "eslint -c '.eslintrc-jessie.js' --fix '**/*.{js,jsx}'", | ||
"lint-jessie": "eslint -c '.eslintrc-jessie.js' '**/*.{js,jsx}'" | ||
"lint": "eslint '**/*.js'", | ||
"lint:fix": "eslint --fix '**/*.js'" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
}, | ||
"devDependencies": { | ||
"agoric": "^0.21.2-u12.0", | ||
"@agoric/deploy-script-support": "^0.10.4-u12.0", | ||
"@endo/bundle-source": "^2.8.0", | ||
"@agoric/eslint-config": "dev", | ||
"@endo/eslint-plugin": "^0.5.2", | ||
"@endo/init": "^0.5.60", | ||
"@endo/promise-kit": "0.2.56", | ||
"@endo/ses-ava": "^0.2.44", | ||
"@jessie.js/eslint-plugin": "^0.4.0", | ||
"@typescript-eslint/eslint-plugin": "^6.7.0", | ||
|
@@ -73,6 +73,10 @@ | |
}, | ||
"homepage": "https://github.com/agoric-labs/dapp-join-game#readme", | ||
"eslintConfig": { | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 2021 | ||
}, | ||
"extends": [ | ||
"@agoric" | ||
] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏