66 lines
2.0 KiB
JSON
66 lines
2.0 KiB
JSON
{
|
|
"root": true,
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"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"
|
|
],
|
|
"rules": {
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": "off"
|
|
}
|
|
}, {
|
|
"files": [
|
|
"src/loaders/**/*.ts"
|
|
],
|
|
"rules": {
|
|
"no-var-requires": "off",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
}
|
|
}]
|
|
}
|