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 # Exclude these folders from linting
node_modules **/node_modules
dist/ /tmp
types/ /dist
/types
# Exclude these filetypes from linting # Exclude these filetypes from linting
*.json *.json

View File

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

View File

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