Skip to content

Commit

Permalink
chore: several package updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mindrunner committed Oct 12, 2024
1 parent c2b7e27 commit 1bcd510
Show file tree
Hide file tree
Showing 59 changed files with 1,661 additions and 1,728 deletions.
4 changes: 0 additions & 4 deletions .eslintrc.js → .eslint.old
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ module.exports = {
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#supported-rules
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'warn',
'@typescript-eslint/member-delimiter-style': [
'error',
{ multiline: { delimiter: 'none' } },
],
'@typescript-eslint/naming-convention': ['error', ...namingConventions],
'@typescript-eslint/no-shadow': 'error',
'@typescript-eslint/no-unused-vars': [
Expand Down
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

45 changes: 45 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import tsPlugin from '@typescript-eslint/eslint-plugin'
import tsParser from '@typescript-eslint/parser'
import recommendedConfig from 'eslint-plugin-prettier/recommended'
import globals from 'globals'

export default [
{
ignores: ['node_modules/', 'build/'],
},
{
files: ['src/**/*.ts', 'test/**/*.ts'],
languageOptions: {
parser: tsParser,
globals: {
...globals.node,
...globals.jest,
},
},
plugins: {
'@typescript-eslint': tsPlugin,
},
rules: {
...tsPlugin.configs.recommended.rules,
'no-console': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
args: 'all',
argsIgnorePattern: '^_',
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'no-negated-condition': 'error',
},
},
recommendedConfig,
]
61 changes: 31 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": "tsc",
"build:docker": "docker build -t fleetbot -f docker/app/Dockerfile .",
"db:migrate": "npm run typeorm -- migration:run",
"lint": "eslint --ext .ts .",
"lint": "eslint .",
"lint:docker": "docker run --rm -i hadolint/hadolint < cicd/docker/app/Dockerfile",
"lint:yaml": "yamllint .",
"clean": "rm -rf build",
Expand All @@ -26,58 +26,59 @@
"homepage": "https://github.com/mindrunner/fleetbot#readme",
"dependencies": {
"@coral-xyz/anchor": "^0.29.0",
"@faker-js/faker": "^8.4.1",
"@faker-js/faker": "^9.0.3",
"@sentry/integrations": "^7.114.0",
"@sentry/node": "^8.11.0",
"@sentry/node": "^8.34.0",
"@sentry/tracing": "^7.114.0",
"@solana/spl-token": "^0.4.8",
"@solana/web3.js": "^1.95.3",
"@staratlas/atlas-prime": "^0.13.1",
"@staratlas/cargo": "^1.1.0",
"@staratlas/claim-stake": "^0.11.6",
"@staratlas/claim-stake": "^0.12.0",
"@staratlas/crafting": "^1.1.0",
"@staratlas/data-source": "^0.8.0",
"@staratlas/factory": "^0.7.0",
"@staratlas/player-profile": "^0.9.1",
"@staratlas/points": "^1.0.5",
"@staratlas/profile-faction": "^0.4.1",
"@staratlas/data-source": "^0.8.1",
"@staratlas/factory": "^0.7.1",
"@staratlas/player-profile": "^0.11.0",
"@staratlas/points": "^1.1.0",
"@staratlas/profile-faction": "^0.6.0",
"@staratlas/sage": "^1.4.0",
"big.js": "^6.2.1",
"big.js": "^6.2.2",
"bip39": "^3.1.0",
"bn.js": "^5.2.1",
"bs58": "^5.0.0",
"bs58": "^6.0.0",
"chance": "^1.1.12",
"cron": "^3.1.7",
"dayjs": "^1.11.11",
"dayjs": "^1.11.13",
"dotenv": "^16.4.5",
"ed25519-hd-key": "^1.3.0",
"pg": "^8.11.5",
"pg": "^8.13.0",
"pretty-error": "^4.0.0",
"superagent": "^9.0.2",
"superagent": "^10.1.0",
"telegraf": "^4.16.3",
"typeorm": "^0.3.20",
"undici": "^6.19.2",
"winston": "^3.13.0"
"undici": "^6.20.0",
"winston": "^3.15.0"
},
"devDependencies": {
"@types/big.js": "^6.2.2",
"@types/bn.js": "^5.1.5",
"@types/chance": "^1.1.6",
"@types/bn.js": "^5.1.6",
"@types/bs58": "^4.0.4",
"@types/pg": "^8.11.6",
"@types/superagent": "^8.1.7",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"eslint": "^8.57.0",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-promise": "^6.2.0",
"eslint-plugin-prettier": "^5.1.3",
"@types/chance": "^1.1.6",
"@types/pg": "^8.11.10",
"@types/superagent": "^8.1.9",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"eslint": "^9.12.0",
"eslint-config-prettier": "^9.1.0",
"prettier": "^3.2.5",
"ts-jest": "^29.1.5",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^7.1.0",
"globals": "^15.11.0",
"prettier": "^3.3.3",
"ts-jest": "^29.2.5",
"ts-node-dev": "^2.0.0",
"typescript": "^5.4.5"
"typescript": "^5.6.3"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 1bcd510

Please sign in to comment.