Chore: Update build files

This commit is contained in:
Archangel 2024-07-15 20:25:07 +02:00
parent a6d1b8ef80
commit 38c55e0b62
3 changed files with 106 additions and 89 deletions

View File

@ -1,7 +1,8 @@
# Exclude these folders from linting
node_modules
dist/
types/
**/node_modules
/tmp
/dist
/types
# Exclude these filetypes from linting
*.json

View File

@ -19,37 +19,49 @@
"@typescript-eslint/quotes": 1,
"@typescript-eslint/brace-style": [
"warn",
"1tbs"
"allman"
],
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "default",
"format": ["camelCase"],
"format": [
"camelCase"
],
"leadingUnderscore": "allow"
},
{
"selector": "typeLike",
"format": ["PascalCase"]
"format": [
"PascalCase"
]
},
{
"selector": "objectLiteralProperty",
"format": ["PascalCase", "camelCase"],
"format": [
"PascalCase",
"camelCase"
],
"leadingUnderscore": "allow"
},
{
"selector": "typeProperty",
"format": ["PascalCase", "camelCase"],
"format": [
"PascalCase",
"camelCase"
],
"leadingUnderscore": "allow"
},
{
"selector": "enumMember",
"format": ["UPPER_CASE"]
"format": [
"UPPER_CASE"
]
}
],
"@typescript-eslint/indent": [
"warn",
2
4
],
"@typescript-eslint/no-unused-expressions": [
"warn",
@ -71,5 +83,16 @@
"allowArgumentsExplicitlyTypedAsAny": true
}
]
},
"overrides": [
{
"files": [
"*.mjs",
"*.ts"
],
"env": {
"node": true
}
}
]
}

View File

@ -1,25 +1,18 @@
{
"compilerOptions": {
"allowJs": true,
"module": "CommonJS",
"target": "es2020",
"moduleResolution": "node",
"module": "NodeNext",
"target": "ES2022",
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"downlevelIteration": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"resolveJsonModule": true,
"outDir": "tmp",
"baseUrl": ".",
"paths": {
"@spt-aki/*": ["./types/*"]
}
"@spt/*": ["./types/*"],
},
"lib": [
"es2020"
],
"include": [
"src/*",
"src/**/*"
]
},
"exclude": ["node_modules", "dist", "tmp"],
}