Files
playlet-piped/config/bslint.jsonc
T
Brahim Hadriche e53ad785c6 Refresh lint rules (#238)
* Lint

* Color rules

* Update sponsorblock config file

* Small tweak

* Color adjustments
2023-12-22 19:36:36 -05:00

36 lines
1013 B
JSON

{
"globals": [],
"ignores": [
"**/roku_modules/**/*",
"**/bslib.brs"
],
"rules": {
// Code style
"inline-if-style": "never",
"block-if-style": "no-then",
"condition-style": "no-group",
"named-function-style": "no-sub",
"anon-function-style": "no-sub",
"aa-comma-style": "never",
"no-print": "warn",
"no-todo": "off",
"no-stop": "error",
"eol-last": "always",
// Strictness
"type-annotations": "all",
// Color
"color-format": "hash-hex",
"color-case": "upper",
"color-alpha": "always",
"color-alpha-defaults": "allowed",
"color-cert": "always",
// Code flow
"assign-all-paths": "error",
"unsafe-path-loop": "error",
"unsafe-iterators": "error",
"unreachable-code": "warn",
"case-sensitivity": "error",
"unused-variable": "error",
"consistent-return": "error"
}
}