],
"parserOptions": {
"project": [
- "tsconfig.json",
- "e2e/tsconfig.json"
+ "tsconfig.eslint.json"
],
- "createDefaultProgram": true
+ "createDefaultProgram": false
},
"extends": [
"../.eslintrc.json",
}
private handleError (err: Error, translations?: { [ id: string ]: string }) {
- if (err.message.indexOf('from xs param') !== -1) {
+ if (err.message.includes('from xs param')) {
this.player.dispose()
this.playerElement = null
this.displayError('This video is not available because the remote instance is not responding.', translations)
const isPlaylist = window.location.pathname.startsWith('/video-playlists/')
- const elementId = lastPart.indexOf('?') === -1 ? lastPart : lastPart.split('?')[0]
+ const elementId = !lastPart.includes('?') ? lastPart : lastPart.split('?')[0]
const iframe = document.createElement('iframe')
iframe.src = isPlaylist
--- /dev/null
+{
+ "extends": "./tsconfig.json",
+ "include": [
+ // adjust "includes" to what makes sense for you and your project
+ "src/**/*.ts",
+ "e2e/**/*.ts"
+ ]
+}