Skip to content

Commit a5c56e3

Browse files
committed
updates for tsconfigs and typescript-eslint
1 parent 3d6c786 commit a5c56e3

File tree

8 files changed

+24
-28
lines changed

8 files changed

+24
-28
lines changed

.eslintignore

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
node_modules
2-
dist
3-
build/*
1+
node_modules/*
2+
dist/*
3+
build/*
4+
.vscode
5+
.github
6+
.astro/*
7+
.nuxt/*
8+
.eslintrc.js

.eslintrc.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ module.exports = {
77
parser: "vue-eslint-parser",
88
parserOptions: {
99
parser: "@typescript-eslint/parser",
10+
sourceType: "module",
11+
project: "./tsconfig.json",
12+
extraFileExtensions: [ ".vue" ],
1013
},
1114
plugins: [
1215
"@typescript-eslint",
@@ -15,10 +18,12 @@ module.exports = {
1518
extends: [
1619
"eslint:recommended",
1720
"plugin:@typescript-eslint/eslint-recommended",
18-
"plugin:@typescript-eslint/recommended",
21+
"plugin:@typescript-eslint/recommended-type-checked",
22+
"plugin:@typescript-eslint/stylistic-type-checked",
1923
"plugin:vue/recommended",
2024
],
2125
rules: {
26+
"@typescript-eslint/no-misused-promises": "off",
2227
"@typescript-eslint/no-explicit-any": "off",
2328
"@typescript-eslint/no-non-null-assertion": "off",
2429
"@typescript-eslint/explicit-function-return-type": "off",

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ Build/
66
tmp/
77
temp/
88
dist/
9-
*.js
109
!.eslintrc.js
1110
centrifugo

BanchoBot/tsconfig.json

-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,4 @@
77
"files": [
88
"index.ts"
99
],
10-
"include": [
11-
"../config/Config.d.ts"
12-
],
1310
}

DiscordBot/tsconfig.json

-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "./dist",
5-
"sourceMap": true,
65
},
76
"files": [
87
"index.ts"
98
],
10-
"include": [
11-
"../config/Config.d.ts"
12-
],
139
}

Docs/tsconfig.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": true
5+
}
6+
}

Server/tsconfig.json

-8
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@
22
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "./dist",
5-
"sourceMap": true,
65
},
76
"files": [
87
"index.ts",
98
"cron-runner.ts"
109
],
11-
"include": [
12-
"../config/Config.d.ts",
13-
"../Typing/passport.d.ts"
14-
],
15-
"ts-node": {
16-
"files": true
17-
}
1810
}

tsconfig.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2022",
4-
"module": "commonjs",
5-
"moduleResolution": "node",
6-
"outDir": "Build",
3+
"target": "ESNext",
4+
"module": "CommonJS",
5+
"moduleResolution": "Node",
76
"emitDecoratorMetadata": true,
87
"esModuleInterop": true,
98
"experimentalDecorators": true,
109
"resolveJsonModule": true,
1110
"strict": true,
12-
"noImplicitAny": false,
11+
"noImplicitAny": true,
1312
"types": [
1413
"@types/node",
1514
"@nuxt/types",
@@ -23,7 +22,4 @@
2322
],
2423
"sourceMap": true,
2524
},
26-
"include": [
27-
"./config/Config.d.ts"
28-
],
2925
}

0 commit comments

Comments
 (0)