Skip to content

Commit

Permalink
Improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
ablok committed Oct 20, 2022
1 parent 5e103b6 commit 939fdb9
Show file tree
Hide file tree
Showing 18 changed files with 4,716 additions and 24,749 deletions.
17 changes: 17 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["standard", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"no-useless-constructor": "off"
},
"ignorePatterns": ["node_modules"]
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
.DS_store
courses.json
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run prettier
npm run lint
npm run prettier
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
14 changes: 14 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"printWidth": 120,
"tabWidth": 4,
"proseWrap": "always",
"overrides": [
{
"files": "*.json",
"options": {
"tabWidth": 4,
"useTabs": false
}
}
]
}
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# TestAutomationUniversity

Code project to automatically scrape and store course answers. You can then also submit them.
Project to automatically gather and submit course answers to the Test Automation University website. Run `npm run go` to
start.

DISCLAIMER: I didn't use it in ages, so I have no idea if this still works.
DISCLAIMER: Don't cheat.

DISCLAIMER2: Don't cheat.
TODO:

1. Add github actions
1. Abstract API calls, so it is easier to have a try catch/retry on all API's.
Loading

0 comments on commit 939fdb9

Please sign in to comment.