Chore: Update build files
This commit is contained in:
parent
a6d1b8ef80
commit
38c55e0b62
@ -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
|
||||||
|
163
.eslintrc.json
163
.eslintrc.json
@ -1,75 +1,98 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"parser": "@typescript-eslint/parser",
|
"parser": "@typescript-eslint/parser",
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@typescript-eslint"
|
"@typescript-eslint"
|
||||||
],
|
|
||||||
"extends": [
|
|
||||||
"eslint:recommended",
|
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended"
|
|
||||||
],
|
|
||||||
"rules": {
|
|
||||||
"@typescript-eslint/no-explicit-any": 0,
|
|
||||||
"@typescript-eslint/no-unused-vars": 1,
|
|
||||||
"@typescript-eslint/no-empty-interface": 0,
|
|
||||||
"@typescript-eslint/no-namespace": 0,
|
|
||||||
"@typescript-eslint/comma-dangle": 1,
|
|
||||||
"@typescript-eslint/func-call-spacing": 2,
|
|
||||||
"@typescript-eslint/quotes": 1,
|
|
||||||
"@typescript-eslint/brace-style": [
|
|
||||||
"warn",
|
|
||||||
"1tbs"
|
|
||||||
],
|
],
|
||||||
"@typescript-eslint/naming-convention": [
|
"extends": [
|
||||||
"warn",
|
"eslint:recommended",
|
||||||
{
|
"plugin:@typescript-eslint/eslint-recommended",
|
||||||
"selector": "default",
|
"plugin:@typescript-eslint/recommended"
|
||||||
"format": ["camelCase"],
|
|
||||||
"leadingUnderscore": "allow"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"selector": "typeLike",
|
|
||||||
"format": ["PascalCase"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"selector": "objectLiteralProperty",
|
|
||||||
"format": ["PascalCase", "camelCase"],
|
|
||||||
"leadingUnderscore": "allow"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"selector": "typeProperty",
|
|
||||||
"format": ["PascalCase", "camelCase"],
|
|
||||||
"leadingUnderscore": "allow"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"selector": "enumMember",
|
|
||||||
"format": ["UPPER_CASE"]
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"@typescript-eslint/indent": [
|
"rules": {
|
||||||
"warn",
|
"@typescript-eslint/no-explicit-any": 0,
|
||||||
2
|
"@typescript-eslint/no-unused-vars": 1,
|
||||||
],
|
"@typescript-eslint/no-empty-interface": 0,
|
||||||
"@typescript-eslint/no-unused-expressions": [
|
"@typescript-eslint/no-namespace": 0,
|
||||||
"warn",
|
"@typescript-eslint/comma-dangle": 1,
|
||||||
{
|
"@typescript-eslint/func-call-spacing": 2,
|
||||||
"allowShortCircuit": false,
|
"@typescript-eslint/quotes": 1,
|
||||||
"allowTernary": false
|
"@typescript-eslint/brace-style": [
|
||||||
}
|
"warn",
|
||||||
],
|
"allman"
|
||||||
"@typescript-eslint/keyword-spacing": [
|
],
|
||||||
"warn",
|
"@typescript-eslint/naming-convention": [
|
||||||
{
|
"warn",
|
||||||
"before": true,
|
{
|
||||||
"after": true
|
"selector": "default",
|
||||||
}
|
"format": [
|
||||||
],
|
"camelCase"
|
||||||
"@typescript-eslint/explicit-module-boundary-types": [
|
],
|
||||||
"warn",
|
"leadingUnderscore": "allow"
|
||||||
{
|
},
|
||||||
"allowArgumentsExplicitlyTypedAsAny": true
|
{
|
||||||
}
|
"selector": "typeLike",
|
||||||
|
"format": [
|
||||||
|
"PascalCase"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "objectLiteralProperty",
|
||||||
|
"format": [
|
||||||
|
"PascalCase",
|
||||||
|
"camelCase"
|
||||||
|
],
|
||||||
|
"leadingUnderscore": "allow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "typeProperty",
|
||||||
|
"format": [
|
||||||
|
"PascalCase",
|
||||||
|
"camelCase"
|
||||||
|
],
|
||||||
|
"leadingUnderscore": "allow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "enumMember",
|
||||||
|
"format": [
|
||||||
|
"UPPER_CASE"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@typescript-eslint/indent": [
|
||||||
|
"warn",
|
||||||
|
4
|
||||||
|
],
|
||||||
|
"@typescript-eslint/no-unused-expressions": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"allowShortCircuit": false,
|
||||||
|
"allowTernary": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@typescript-eslint/keyword-spacing": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"before": true,
|
||||||
|
"after": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@typescript-eslint/explicit-module-boundary-types": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"allowArgumentsExplicitlyTypedAsAny": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"*.mjs",
|
||||||
|
"*.ts"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"node": true
|
||||||
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
|
||||||
}
|
}
|
@ -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": [
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
"es2020"
|
|
||||||
],
|
|
||||||
"include": [
|
|
||||||
"src/*",
|
|
||||||
"src/**/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user