Skip to content

Commit

Permalink
ci: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-gray committed Sep 6, 2023
1 parent ceb42be commit a49e0da
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 19 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run lint

on:
pull_request:
push:
branches:
- development
- staging
- production
- mainnet

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"
- run: npm ci
- run: npm run lint:ci
18 changes: 0 additions & 18 deletions .github/workflows/wormhole-connect.yml

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ dist
build
*.md
builder
wormhole-connect-loader
1 change: 1 addition & 0 deletions builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"lint:ci": "prettier -c ./src && eslint --max-warnings=0 ./src",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"workspaces": [
"sdk",
"wormhole-connect",
"wormhole-connect-loader",
"builder"
],
"scripts": {
"build": "npm run build --workspaces --if-present",
"compile": "npm run compile --workspaces --if-present",
"lint": "npm run lint --workspaces --if-present",
"lint:ci": "npm run lint:ci --workspaces --if-present",
"wormhole-connect": "npm run workspace @wormhole-foundation/wormhole-connect",
"sdk": "npm run workspace @wormhole-foundation/wormhole-connect-sdk",
"builder": "npm run workspace wormhole-connect-builder",
Expand Down
1 change: 1 addition & 0 deletions sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
},
"scripts": {
"lint": "npm run prettier && eslint --fix",
"lint:ci": "prettier -c ./src && eslint --max-warnings=0 ./src",
"prettier": "prettier --write ./src",
"build": "tsc --build",
"check": "tsc --noEmit",
Expand Down
1 change: 1 addition & 0 deletions wormhole-connect-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"react-dom": "^18.2.0"
},
"scripts": {
"lint:ci": "prettier -c ./src && eslint --max-warnings=0 ./src",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build": "rm -rf lib && npm run build:cjs && npm run build:esm"
Expand Down
1 change: 1 addition & 0 deletions wormhole-connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
},
"scripts": {
"lint": "npm run prettier && eslint --fix ./src",
"lint:ci": "prettier -c ./src && eslint --max-warnings=0 ./src",
"prettier": "prettier --write ./src",
"start": "react-app-rewired start",
"build": "NODE_ENV=production GENERATE_SOURCEMAP=false react-app-rewired build --max_old_space_size=4096 build",
Expand Down

0 comments on commit a49e0da

Please sign in to comment.