2019-03-16 01:55:47 -07:00
|
|
|
env:
|
|
|
|
amd: true
|
2020-04-02 11:35:08 -07:00
|
|
|
browser: true
|
|
|
|
es6: true
|
|
|
|
es2017: true
|
|
|
|
es2020: true
|
2019-11-22 08:29:38 -07:00
|
|
|
|
2020-03-01 00:40:57 -07:00
|
|
|
parserOptions:
|
2020-04-02 11:35:08 -07:00
|
|
|
ecmaVersion: 2020
|
2020-03-01 00:40:57 -07:00
|
|
|
sourceType: module
|
|
|
|
ecmaFeatures:
|
|
|
|
impliedStrict: true
|
|
|
|
|
2020-04-02 14:46:00 -07:00
|
|
|
plugins:
|
|
|
|
- promise
|
|
|
|
- import
|
|
|
|
- eslint-comments
|
|
|
|
|
|
|
|
extends:
|
|
|
|
- eslint:recommended
|
|
|
|
- plugin:promise/recommended
|
|
|
|
- plugin:import/errors
|
|
|
|
- plugin:import/warnings
|
|
|
|
- plugin:eslint-comments/recommended
|
|
|
|
|
2020-02-25 16:33:38 -07:00
|
|
|
globals:
|
2020-04-02 11:35:08 -07:00
|
|
|
# Browser globals
|
2020-02-25 16:33:38 -07:00
|
|
|
MediaMetadata: readonly
|
|
|
|
# Tizen globals
|
|
|
|
tizen: readonly
|
|
|
|
webapis: readonly
|
|
|
|
# WebOS globals
|
|
|
|
webOS: readonly
|
|
|
|
# Dependency globals
|
|
|
|
$: readonly
|
|
|
|
jQuery: readonly
|
|
|
|
requirejs: readonly
|
|
|
|
# Jellyfin globals
|
|
|
|
ApiClient: writable
|
|
|
|
AppInfo: writable
|
|
|
|
chrome: writable
|
|
|
|
ConnectionManager: writable
|
|
|
|
DlnaProfilePage: writable
|
|
|
|
Dashboard: writable
|
|
|
|
DashboardPage: writable
|
|
|
|
Emby: readonly
|
|
|
|
Events: writable
|
|
|
|
getParameterByName: writable
|
|
|
|
getWindowLocationSearch: writable
|
|
|
|
Globalize: writable
|
|
|
|
Hls: writable
|
2020-04-02 11:03:59 -07:00
|
|
|
dfnshelper: writable
|
2020-02-25 16:33:38 -07:00
|
|
|
LibraryMenu: writable
|
|
|
|
LinkParser: writable
|
|
|
|
LiveTvHelpers: writable
|
|
|
|
MetadataEditor: writable
|
|
|
|
pageClassOn: writable
|
|
|
|
pageIdOn: writable
|
|
|
|
PlaylistViewer: writable
|
|
|
|
UserParentalControlPage: writable
|
|
|
|
Windows: readonly
|
|
|
|
|
2019-11-22 08:29:38 -07:00
|
|
|
rules:
|
|
|
|
block-spacing: ["error"]
|
|
|
|
brace-style: ["error"]
|
|
|
|
comma-dangle: ["error", "never"]
|
|
|
|
comma-spacing: ["error"]
|
2020-02-22 09:55:57 -07:00
|
|
|
eol-last: ["error"]
|
2019-11-22 08:29:38 -07:00
|
|
|
indent: ["error", 4, { "SwitchCase": 1 }]
|
|
|
|
keyword-spacing: ["error"]
|
|
|
|
max-statements-per-line: ["error"]
|
|
|
|
no-floating-decimal: ["error"]
|
|
|
|
no-multi-spaces: ["error"]
|
|
|
|
no-multiple-empty-lines: ["error", { "max": 1 }]
|
|
|
|
no-trailing-spaces: ["error"]
|
|
|
|
one-var: ["error", "never"]
|
2020-02-26 08:49:53 -07:00
|
|
|
semi: ["warn"]
|
2019-11-22 08:29:38 -07:00
|
|
|
space-before-blocks: ["error"]
|
2020-02-26 08:49:53 -07:00
|
|
|
# TODO: Fix warnings and remove these rules
|
|
|
|
no-redeclare: ["warn"]
|
|
|
|
no-unused-vars: ["warn"]
|
|
|
|
no-useless-escape: ["warn"]
|
2020-04-02 14:46:00 -07:00
|
|
|
promise/catch-or-return: ["warn"]
|
|
|
|
promise/always-return: ["warn"]
|
|
|
|
promise/no-return-wrap: ["warn"]
|
|
|
|
# TODO: Remove after ES6 migration is complete
|
|
|
|
import/no-unresolved: ["warn"]
|