Add bs linter and enable github job

This commit is contained in:
Neil Burrows 2021-06-14 21:43:36 +01:00
parent c60dd3c500
commit fa75a11d27
4 changed files with 647 additions and 339 deletions

13
.github/workflows/bslint.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: linter
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: "14.12.0"
- run: npm ci
- run: npx bslint

View File

@ -6,5 +6,6 @@
"images/**/*.*",
"resources/**/*.*",
"locale/**/*.*"
]
],
"plugins": [ "@rokucommunity/bslint" ]
}

962
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,12 +7,14 @@
"test": "tests"
},
"devDependencies": {
"brighterscript": "^0.30.1",
"@rokucommunity/bslint": "^0.4.0",
"brighterscript": "^0.30.9",
"rooibos-cli": "^1.0.1"
},
"scripts": {
"validate": "npx bsc --copy-to-staging=false --create-package=false",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "bslint"
},
"repository": {
"type": "git",
@ -28,4 +30,4 @@
"url": "https://github.com/jellyfin/jellyfin-roku/issues"
},
"homepage": "https://github.com/jellyfin/jellyfin-roku#readme"
}
}