add eslint config (#53)

* eslint

* workflow

* lint main
This commit is contained in:
Ven 2022-10-06 00:42:58 +02:00 committed by GitHub
parent e563521416
commit 74c3930e0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 141 additions and 87 deletions

View file

@ -3,8 +3,11 @@
"@types/node": "^18.7.13",
"@types/react": "^18.0.17",
"@types/yazl": "^2.4.2",
"@typescript-eslint/parser": "^5.39.0",
"electron": "^20.1.0",
"esbuild": "^0.15.5",
"eslint": "^8.24.0",
"typescript": "^4.8.4",
"yazl": "^2.5.1"
},
"dependencies": {
@ -17,6 +20,8 @@
"build": "node build.mjs",
"watch": "node build.mjs --watch",
"inject": "node scripts/patcher/install.js",
"uninject": "node scripts/patcher/uninstall.js"
"uninject": "node scripts/patcher/uninstall.js",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "pnpm lint --fix"
}
}