Refactor project
This commit is contained in:
1 parent
9c1a2b987b
commit
2f2516eade
115 files changed
+12522
No files matched your search
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"autoImportComponentScript": true,
|
||||
"createPackage": false,
|
||||
"diagnosticFilters": [
|
||||
{
|
||||
"src": "**/roku_modules/**/*.*"
|
||||
}
|
||||
],
|
||||
"diagnosticLevel": "error",
|
||||
"files": [
|
||||
"source/**/*",
|
||||
"components/**/*",
|
||||
"images/**/*",
|
||||
"fonts/**/*",
|
||||
"config/**/*",
|
||||
"www/**/*.*",
|
||||
"manifest"
|
||||
],
|
||||
"lintConfig": "config/bslint.jsonc",
|
||||
"plugins": [
|
||||
"roku-log-bsc-plugin",
|
||||
"@rokucommunity/bslint"
|
||||
],
|
||||
"retainStagingFolder": true,
|
||||
"rokuLog": {
|
||||
"insertPkgPath": true,
|
||||
"removeComments": false,
|
||||
"strip": false
|
||||
},
|
||||
"rootDir": "../src/",
|
||||
"sourceMap": true,
|
||||
"stagingFolderPath": "dist/build"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"createPackage": false,
|
||||
"deploy": false,
|
||||
"extends": "bsconfig.base.json",
|
||||
"retainStagingFolder": false,
|
||||
"sourceMap": false
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
// Forces all composite keywords (i.e. `elseif`, `endwhile`, etc...) to be consistent.
|
||||
// If "split", they are split into their alternatives (`else if`, `end while`).
|
||||
"compositeKeywords": "split",
|
||||
// For multi-line objects and arrays, move everything after
|
||||
// the `{` or `[` and everything before the `}` or `]` onto a new line.
|
||||
"formatMultiLineObjectsAndArrays": true,
|
||||
"formatSingleLineCommentType": "original",
|
||||
// The number of spaces to use when `indentStyle` is "spaces".
|
||||
"indentSpaceCount": 4,
|
||||
// The type of whitespace to use when indenting the beginning of lines.
|
||||
"indentStyle": "spaces",
|
||||
// Ensure exactly 1 space after leading and before trailing curly braces.
|
||||
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
|
||||
// Ensure exactly 1 space between an associative array literal key and its colon.
|
||||
"insertSpaceBetweenAssociativeArrayLiteralKeyAndColon": false,
|
||||
// Enforces all keywords and types to be lowercase.
|
||||
"keywordCase": "lower",
|
||||
// Remove trailing whitespace at the end of each line.
|
||||
"removeTrailingWhiteSpace": true
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"globals": [],
|
||||
"ignores": [
|
||||
"**/roku_modules/**/*",
|
||||
"components/lib/**/*",
|
||||
"source/lib/**/*",
|
||||
"**/bslib.brs"
|
||||
],
|
||||
"rules": {
|
||||
"aa-comma-style": "no-dangling",
|
||||
"anon-function-style": "no-sub",
|
||||
"assign-all-paths": "warn",
|
||||
"block-if-style": "no-then",
|
||||
"case-sensitivity": "warn",
|
||||
"condition-style": "no-group",
|
||||
"consistent-return": "error",
|
||||
"eol-last": "always",
|
||||
"inline-if-style": "never",
|
||||
"named-function-style": "no-sub",
|
||||
"no-print": "off",
|
||||
"no-stop": "error",
|
||||
"no-todo": "off",
|
||||
"type-annotations": "all",
|
||||
"unreachable-code": "warn",
|
||||
"unsafe-iterators": "error",
|
||||
"unsafe-path-loop": "warn",
|
||||
"unused-variable": "warn"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user