chore(resources/deps): Upgrade deps & configure eslint for TS

This commit is contained in:
Taso committed 2021-06-08 12:35:39 -04:00
1 parent dcb7556edc
commit 457926263d
4 files changed
+1072 -1052

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
node_modules
html
babel.config.js
webpack.config.js
+20
View File
@@ -0,0 +1,20 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/ban-types":["error", {
"types": {
"Function": false
}
}],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0
}
}
+8 -9
View File
@@ -9,7 +9,8 @@
"scripts": {
"build": "webpack --mode production",
"watch": "webpack --mode development --watch",
"test": "jest"
"test": "jest",
"lint": "eslint . --ext .ts"
},
"dependencies": {
"@discordjs/collection": "^0.1.6",
@@ -28,22 +29,20 @@
"@babel/core": "^7.12.16",
"@babel/preset-env": "^7.12.1",
"@babel/preset-typescript": "^7.12.1",
"@citizenfx/client": "^1.0.3534-1",
"@citizenfx/server": "^1.0.3534-1",
"@citizenfx/client": "^2.0.4035-1",
"@citizenfx/server": "^2.0.4035-1",
"@types/jest": "^26.0.14",
"@types/md5": "^2.2.1",
"@types/node": "^14.11.10",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^3.8.0",
"@typescript-eslint/parser": "^4.4.0",
"eslint": "^7.6.0",
"eslint-config-prettier": "^6.11.0",
"eslint-loader": "^4.0.2",
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1",
"eslint": "^7.28.0",
"jest": "^26.5.3",
"remove-files-webpack-plugin": "^1.4.3",
"ts-jest": "^26.4.1",
"ts-loader": "^8.0.2",
"typescript": "^3.9.7",
"typescript": "^4.3.2",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12"
}
+1040 -1043
View File
File diff suppressed because it is too large. Load diff