jellyfin-to-m3u/.eslintrc

41 lines
1 KiB
Text
Raw Normal View History

2024-08-20 06:19:59 +00:00
{
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {},
"plugins": ["@typescript-eslint"],
"root": true,
"rules": {
"camelcase": "error",
"no-console": ["error", { "allow": ["warn", "error"]}],
"no-empty-function": "error",
"no-empty": "error",
"no-irregular-whitespace": "warn",
"no-unneeded-ternary": "warn",
"no-var": "warn",
"spaced-comment": "warn",
"no-lonely-if": "warn",
"space-before-blocks": ["warn", "always"],
"prefer-destructuring": [
"warn",
{
"AssignmentExpression": {
"array": false,
"object": false
},
"VariableDeclarator": {
"array": false,
"object": true
}
},
{
"enforceForRenamedProperties": false
}
],
"prefer-template": "warn",
"prefer-spread": "warn",
"prefer-arrow-callback": "warn",
"arrow-spacing": "warn",
"arrow-parens": ["warn", "as-needed"]
}
}