This commit is contained in:
Danya H 2024-06-11 16:25:41 +01:00
parent e1450397ab
commit 828d74dad9
3 changed files with 6051 additions and 7412 deletions

31
.eslintrc.yaml Normal file
View File

@ -0,0 +1,31 @@
env:
node: true
es6: true
es2019: true
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
# - 'prettier'
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: '2019'
sourceType: 'script'
plugins:
- '@typescript-eslint'
ignorePatterns:
- 'node_modules'
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
"argsIgnorePattern": '^_',
"varsIgnorePattern": '^_',
"caughtErrorsIgnorePattern": '^_'
}
],
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'consistent-return': 'warn',
'no-empty': 'off',
}

View File

@ -2,18 +2,25 @@
"private": true, "private": true,
"scripts": { "scripts": {
"publish": "pnpm build && lerna publish --force-publish", "publish": "pnpm build && lerna publish --force-publish",
"build": "lerna run build" "build": "lerna run build",
"lint": "eslint --c .eslintrc.yaml --ext .ts client/ server/ shared-types/"
}, },
"dependencies": { "dependencies": {
"@microsoft/api-extractor": "^7.47.0",
"@ragempcommunity/types-cef": "^2.1.8", "@ragempcommunity/types-cef": "^2.1.8",
"@ragempcommunity/types-client": "^2.1.8", "@ragempcommunity/types-client": "^2.1.8",
"@ragempcommunity/types-server": "^2.1.8", "@ragempcommunity/types-server": "^2.1.8",
"@microsoft/api-extractor": "^7.47.0", "@typescript-eslint/eslint-plugin": "^7.13.0",
"tsup": "^8.1.0", "@typescript-eslint/parser": "^7.13.0",
"eslint": "^8.56.0",
"lerna": "^8.1.3", "lerna": "^8.1.3",
"prettier": "^3.3.1", "prettier": "^3.3.1",
"rage-rpc": "^0.4.0", "rage-rpc": "^0.4.0",
"tsup": "^8.1.0",
"typescript": "^5.4.5" "typescript": "^5.4.5"
}, },
"type": "module" "type": "module",
"devDependencies": {
}
} }

File diff suppressed because it is too large Load Diff