pokemon-showdown/package.json
Guangcong Luo 78439b4a02
Update to ESLint 9 (#10926)
ESLint has a whole new config format, so I figure it's a good time to
make the config system saner.

- First, we no longer have separate eslint-no-types configs. Lint
  performance shouldn't be enough of a problem to justify the
  relevant maintenance complexity.

- Second, our base config should work out-of-the-box now. `npx eslint`
  will work as expected, without any CLI flags. You should still use
  `npm run lint` which adds the `--cached` flag for performance.

- Third, whatever updates I did fixed style linting, which apparently
  has been bugged for quite some time, considering all the obvious
  mixed-tabs-and-spaces issues I found in the upgrade.

Also here are some changes to our style rules. In particular:

- Curly brackets (for objects etc) now have spaces inside them. Sorry
  for the huge change. ESLint doesn't support our old style, and most
  projects use Prettier style, so we might as well match them in this way.
  See https://github.com/eslint-stylistic/eslint-stylistic/issues/415

- String + number concatenation is no longer allowed. We now
  consistently use template strings for this.
2025-02-25 20:03:46 -08:00

85 lines
2.4 KiB
JSON

{
"name": "pokemon-showdown",
"description": "The server for the Pokémon Showdown battle simulator",
"version": "0.11.9",
"main": "dist/sim/index.js",
"dependencies": {
"esbuild": "^0.16.10",
"mysql2": "^3.9.7",
"preact": "^10.5.15",
"preact-render-to-string": "^5.1.19",
"probe-image-size": "^7.2.3",
"sockjs": "^0.3.21",
"source-map-support": "^0.5.21",
"ts-chacha20": "^1.2.0"
},
"optionalDependencies": {
"better-sqlite3": "^7.6.2",
"cloud-env": "^0.2.3",
"githubhook": "^1.9.3",
"node-static": "^0.7.11",
"nodemailer": "^6.4.6",
"permessage-deflate": "^0.1.7",
"pg": "^8.11.3",
"sql-template-strings": "^2.2.2",
"sqlite": "^3.0.6",
"sucrase": "^3.15.0"
},
"secretDependencies": {
"node-oom-heapdump": "^1.2.0"
},
"engines": {
"node": ">=16.0.0"
},
"scripts": {
"start": "node pokemon-showdown start",
"build": "node build",
"tsc": "tsc",
"lint": "eslint --cache",
"fix": "eslint --cache --fix",
"full-lint": "npm run lint",
"pretest": "npm run lint",
"test": "mocha",
"posttest": "npm run tsc",
"full-test": "npm run lint && npm run tsc && mocha --timeout 8000 --forbid-only -g \".*\"",
"full-test-ci": "eslint --max-warnings 0 && tsc && (([ \"$SKIPSIMTESTS\" = true ] && mocha --timeout 8000 --forbid-only -g \".*\" --exclude \"test/{sim,random-battles}/**\") || mocha --timeout 8000 --forbid-only -g \".*\")",
"postinstall": "npm run build postinstall"
},
"bin": "./pokemon-showdown",
"homepage": "http://pokemonshowdown.com",
"repository": {
"type": "git",
"url": "https://github.com/smogon/pokemon-showdown.git"
},
"author": {
"name": "Guangcong Luo",
"email": "guangcongluo@gmail.com",
"url": "http://guangcongluo.com"
},
"contributors": [
{
"name": "Bill Meltsner",
"email": "bill@meltsner.com",
"url": "http://www.meltsner.com"
}
],
"license": "MIT",
"devDependencies": {
"@stylistic/eslint-plugin": "^4.0.1",
"@types/better-sqlite3": "^7.6.2",
"@types/cloud-env": "^0.2.2",
"@types/node": "^14.18.63",
"@types/node-static": "^0.7.7",
"@types/nodemailer": "^6.4.4",
"@types/pg": "^8.6.5",
"@types/sockjs": "^0.3.33",
"@types/sodium-native": "^2.3.9",
"eslint": "^9.21.0",
"globals": "^16.0.0",
"mocha": "^8.2.0",
"smogon": "^3.0.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.24.1"
}
}