71 lines
2.2 KiB
JSON
71 lines
2.2 KiB
JSON
{
|
|
"autoImportComponentScript": true,
|
|
"createPackage": false,
|
|
"diagnosticFilters": [
|
|
{
|
|
"src": "**/roku_modules/**/*.*"
|
|
},
|
|
1090
|
|
],
|
|
"diagnosticLevel": "error",
|
|
"validation": [
|
|
{
|
|
"code": "NO_SET_FOCUS",
|
|
"regex": "\\.SetFocus\\(.+\\)",
|
|
"regexFlags": "ig",
|
|
"message": "SetFocus() is not allowed. Use NodeSetFocus() instead."
|
|
},
|
|
{
|
|
"code": "NO_OBSERVE_STRING_CALLBACK",
|
|
"regex": "\\.observeField(scoped)?\\s*\\(\\s*\"\\w+\"\\s*,\\s*\"\\w+\"\\s*\\)",
|
|
"regexFlags": "ig",
|
|
"message": "observeField(\"field\", \"callback\") is not allowed. Use observeField(\"field\", FuncName(callback)) instead."
|
|
},
|
|
{
|
|
"code": "NO_INVALID_CALLFUNC_ARG",
|
|
"regex": "@\\.\\w+\\(invalid\\)",
|
|
"regexFlags": "ig",
|
|
"message": "the arg invalid in @.func(invalid) is not needed. Just use @.func() instead."
|
|
}
|
|
],
|
|
"files": [
|
|
"source/**",
|
|
"components/**",
|
|
"images/**",
|
|
"!**/*.svg",
|
|
"!**/*.svg.meta.json5",
|
|
"fonts/**",
|
|
"config/**",
|
|
"lib/**",
|
|
"www/**",
|
|
"manifest",
|
|
"!**/*.transpiled/**",
|
|
"!**/*.transpiled.*",
|
|
"!**/*.spec.bs",
|
|
"!**/tests/**"
|
|
],
|
|
"lintConfig": "./config/bslint.jsonc",
|
|
"plugins": [
|
|
"@rokucommunity/bslint",
|
|
"../tools/bs-plugins/asynctask-plugin.ts",
|
|
"../tools/bs-plugins/manifest-edit-plugin.ts",
|
|
"../tools/bs-plugins/component-includes-plugin.ts",
|
|
"../tools/bs-plugins/bindings-plugin.ts",
|
|
"../tools/bs-plugins/oninit-plugin.ts",
|
|
"../tools/bs-plugins/track-transpiled-plugin.ts",
|
|
"../tools/bs-plugins/json-yaml-plugin.ts",
|
|
"../tools/bs-plugins/validation-plugin.ts",
|
|
"../tools/bs-plugins/logger-plugin.ts",
|
|
"../tools/bs-plugins/image-gen-plugin.ts"
|
|
],
|
|
"retainStagingDir": true,
|
|
"require": [
|
|
"ts-node/register"
|
|
],
|
|
"rokuLog": {
|
|
"insertPkgPath": true,
|
|
"removeComments": false,
|
|
"strip": false
|
|
},
|
|
"sourceMap": true
|
|
} |