refactor: typescript migration #24
3 changed files with 904 additions and 93 deletions
|
@ -1,13 +1,16 @@
|
||||||
{
|
{
|
||||||
"extends": "eslint:recommended",
|
|
||||||
"env": {
|
"extends": [
|
||||||
"node": true,
|
"eslint:recommended",
|
||||||
"es6": true
|
"plugin:@typescript-eslint/recommended"
|
||||||
},
|
],
|
||||||
|
"parser": "@typescript-eslint/parser",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 2021,
|
"project": ["./tsconfig.json"]
|
||||||
"sourceType": "module"
|
|
||||||
},
|
},
|
||||||
|
"plugins": [
|
||||||
|
"@typescript-eslint"
|
||||||
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"arrow-spacing": ["warn", { "before": true, "after": true }],
|
"arrow-spacing": ["warn", { "before": true, "after": true }],
|
||||||
"brace-style": ["error"],
|
"brace-style": ["error"],
|
||||||
|
|
961
package-lock.json
generated
961
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -5,7 +5,8 @@
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"main": "tsc && node ./dist/src/index.js",
|
"main": "tsc && node ./dist/src/index.js",
|
||||||
"debug": "tsnd --respawn ./src/index.ts"
|
"debug": "tsnd --respawn ./src/index.ts",
|
||||||
|
"lint": "npx eslint src"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -19,8 +20,10 @@
|
||||||
"discord.js": "^13.8.1"
|
"discord.js": "^13.8.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@typescript-eslint/eslint-plugin": "^5.30.7",
|
||||||
|
"@typescript-eslint/parser": "^5.30.7",
|
||||||
"dotenv": "^16.0.1",
|
"dotenv": "^16.0.1",
|
||||||
"eslint": "^8.13.0",
|
"eslint": "^8.20.0",
|
||||||
"ts-node-dev": "^2.0.0",
|
"ts-node-dev": "^2.0.0",
|
||||||
"typescript": "^4.7.4"
|
"typescript": "^4.7.4"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue