Server/project/.eslintrc.json

66 lines
2.0 KiB
JSON
Raw Normal View History

2023-03-03 16:23:46 +01:00
{
2023-11-10 17:29:56 +01:00
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
2023-03-03 16:23:46 +01:00
],
2023-11-10 17:29:56 +01:00
"env": {
"node": true
},
"extends": [
"plugin:@typescript-eslint/eslint-recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/explicit-module-boundary-types": ["error", { "allowArgumentsExplicitlyTypedAsAny": true }],
"@typescript-eslint/naming-convention": ["error", {
"selector": "import",
"format": ["camelCase", "PascalCase", "UPPER_CASE"]
}, {
"selector": "default",
"format": ["camelCase"],
"leadingUnderscore": "allow"
}, {
"selector": "typeLike",
"format": ["PascalCase"]
}, {
"selector": "objectLiteralProperty",
"format": ["PascalCase", "camelCase", "snake_case"],
"leadingUnderscore": "allow"
}, {
"selector": "typeProperty",
"format": ["PascalCase", "camelCase"],
"leadingUnderscore": "allow"
}, {
"selector": "enumMember",
"format": ["UPPER_CASE"]
}, {
"selector": "property",
"modifiers": ["readonly", "static"],
"format": ["UPPER_CASE"]
}]
},
"overrides": [{
"files": [
"src/callbacks/**/*.js",
"src/controllers/**/*.js"
2023-03-03 16:23:46 +01:00
],
2023-11-10 17:29:56 +01:00
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off"
}
}, {
"files": [
"src/loaders/**/*.ts"
2023-03-03 16:23:46 +01:00
],
2023-11-10 17:29:56 +01:00
"rules": {
"no-var-requires": "off",
"@typescript-eslint/no-var-requires": "off",
}
}]
}