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

🧹 lint on commit #1917

Merged
merged 13 commits into from
Jan 18, 2022
Merged
Show file tree
Hide file tree
Changes from 11 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
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
run: yarn

- name: Run Code Lint
run: yarn lint:quiet
run: yarn lint:fix
25 changes: 0 additions & 25 deletions .github/workflows/prettier.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint:fix
20 changes: 18 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,21 @@
"generate": "nuxt generate",
"lint": "eslint --ignore-path .gitignore --ext .js,.ts,.vue .",
"lint:quiet": "eslint --quiet --ignore-path .gitignore --ext .js,.ts,.vue .",
"test": "jest --verbose ./tests"
"lint:fix": "eslint --fix --quiet --ignore-path .gitignore --ext .js,.ts,.vue .",
"test": "jest --verbose ./tests",
"prepare": "husky install"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts,vue,json,css,scss,md}": [
"prettier --write",
"yarn lint",
"git add"
]
},
"engines": {
"node": ">=16"
Expand Down Expand Up @@ -47,8 +61,8 @@
"chartjs-adapter-luxon": "^1.1.0",
"chartjs-plugin-annotation": "^1.2.1",
"chartjs-plugin-zoom": "^1.1.1",
"css-loader": "4.3.0",
"core-js": "^3.20.1",
"css-loader": "4.3.0",
"date-fns": "^2.25.0",
"emoji-unicode": "^2.0.1",
"file-saver": "^2.0.5",
Expand Down Expand Up @@ -111,7 +125,9 @@
"eslint": "^8.4.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.2.0",
"husky": "^7.0.0",
"jest": "^27.4.7",
"lint-staged": "^12.1.7",
"netlify-lambda": "^2.0.14",
"prettier": "2.5.1",
"sass": "^1.42.1",
Expand Down
8 changes: 4 additions & 4 deletions pages/teleport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ export default class Transfer extends mixins(
)
}

protected getExplorerUrl(): void {
const url = this.getUrl()
window.open(url, '_blank')
}
protected getExplorerUrl(): void {
const url = this.getUrl()
window.open(url, '_blank')
}
roiLeo marked this conversation as resolved.
Show resolved Hide resolved

protected generatePaymentLink(): string {
return `${window.location.origin}/transfer?target=${this.destinationAddress}&usdamount=${this.usdValue}&donation=true`
Expand Down
Loading