Added ESLint

I used a fairly minimal ESLint configuration, other plugins can be added
This commit is contained in:
Burner 2022-07-25 20:37:06 -05:00
parent 6cef702845
commit 2d5b87ccd3
No known key found for this signature in database
GPG key ID: 0DDB54067D8055E7
3 changed files with 1819 additions and 1 deletions

5
.eslintrc.yml Normal file
View file

@ -0,0 +1,5 @@
root: true
extends:
- typescript
- prettier

1807
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -9,14 +9,20 @@
"log": "wrangler tail", "log": "wrangler tail",
"reload": "wrangler publish && wrangler tail", "reload": "wrangler publish && wrangler tail",
"register": "node src/register.js", "register": "node src/register.js",
"prettier": "prettier --write ." "prettier": "prettier --write .",
"lint:eslint": "eslint --max-warnings=0 src"
}, },
"author": "dangered wolf", "author": "dangered wolf",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@cloudflare/workers-types": "^3.14.1", "@cloudflare/workers-types": "^3.14.1",
"@types/service-worker-mock": "^2.0.1", "@types/service-worker-mock": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"dotenv": "^16.0.1", "dotenv": "^16.0.1",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-typescript": "^3.0.0",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"service-worker-mock": "^2.0.5", "service-worker-mock": "^2.0.5",
"ts-loader": "^9.3.1", "ts-loader": "^9.3.1",