Skip to content

Commit 679135f

Browse files
committed
Eslint & TS changes
1 parent 839646b commit 679135f

File tree

5 files changed

+2636
-24
lines changed

5 files changed

+2636
-24
lines changed

.eslintrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"extends": "airbnb",
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint"
6+
],
37
"parserOptions": {
48
"ecmaVersion": 2022
59
},
@@ -20,7 +24,8 @@
2024
"arrow-parens": "off",
2125
"global-require": "off",
2226
"no-plusplus": "off",
23-
"comma-dangle": "off"
27+
"comma-dangle": "off",
28+
"quotes": ["error", "single"]
2429
},
2530
"ignorePatterns": [
2631
"src/sequelize/**"

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build:tests": "tsc -p ./tsconfig.test.json",
99
"clean": "rimraf ./dist && rimraf ./dist.tests",
1010
"predev": "yarn run clean && yarn run build",
11-
"dev": "yarn run start",
11+
"dev": "DISCORD_TOKEN=MTAxNDA3MjA2OTAyMzA4ODY1MA.G6B1UR.Rez2fWA39fjCLL8sutUWQk23Mu4e94u1y5GQnc yarn run start",
1212
"start": "node ./dist/index.js",
1313
"pretest": "yarn run clean && yarn run build:tests",
1414
"test": "mocha ./dist.tests/tests/**/**/*.test.js"
@@ -33,8 +33,10 @@
3333
"@types/sharp": "^0.31.0",
3434
"@types/sinon": "^10.0.13",
3535
"@types/uuid": "^8.3.4",
36+
"@typescript-eslint/eslint-plugin": "^5.38.0",
37+
"@typescript-eslint/parser": "^5.38.0",
3638
"chai": "^4.3.6",
37-
"eslint": "^8.23.0",
39+
"eslint": "^8.24.0",
3840
"eslint-config-airbnb": "^19.0.4",
3941
"eslint-plugin-import": "^2.26.0",
4042
"mocha": "^10.0.0",

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"esModuleInterop": true,
77
"skipLibCheck": true,
88
"forceConsistentCasingInFileNames": true,
9+
"removeComments": true,
910
"outDir": "dist"
1011
},
1112
"include": ["src/**/*"],

0 commit comments

Comments
 (0)